360 Secure SkillHub
360 安全技能中心

Agent Lifecycle

该 Skill 通过命令行脚本管理自主 Agent 及其技能的生命周期:为当前 Agent 状态创建命名快照、对比两个快照、列出快照、按快照回滚(支持 dry-run)、登记技能退役原因,以及查看变更历史。生命周期数据以 JSON 文件形式保存在本地目录中,并在元数据中声明运行于 OpenClaw 宿主。

分类:自动化
Trypto1019
Trypto1019
热度 27.85
最近更新 2026-04-29 12:01:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add Trypto1019/arc-agent-lifecycle
兼容性
OpenClaw 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
agent-lifecycle
description
Manage the lifecycle of autonomous agents and their skills. Version configurations, plan upgrades, track retirement, and maintain change history across agent environments.
user-invocable
true
metadata
{"openclaw":{"emoji":"🔄","os":["darwin","linux"],"requires":{"bins":["python3"]}}}

Agent Lifecycle Manager

Track your agent's evolution from deployment to retirement. Version configurations, plan skill upgrades, and maintain a complete change history.

Why This Exists

Agents evolve constantly — new skills installed, old ones retired, configurations changed, models swapped. Without lifecycle tracking, you cannot answer: "What was my agent running last Tuesday?" or "What changed when things broke?"

Commands

Snapshot current agent state

python3 {baseDir}/scripts/lifecycle.py snapshot --name "pre-upgrade"

Compare two snapshots

python3 {baseDir}/scripts/lifecycle.py diff --from "pre-upgrade" --to "post-upgrade"

List all snapshots

python3 {baseDir}/scripts/lifecycle.py list

Rollback to a snapshot

python3 {baseDir}/scripts/lifecycle.py rollback --to "pre-upgrade" --dry-run

Track a skill retirement

python3 {baseDir}/scripts/lifecycle.py retire --skill old-skill --reason "Replaced by new-skill v2"

View change history

python3 {baseDir}/scripts/lifecycle.py history --limit 20

What It Tracks

  • Installed skills: Name, version, install date, last used
  • Configuration state: Environment vars, model assignments, feature flags
  • Change events: Installs, updates, removals, config changes
  • Retirement log: Why skills were removed, what replaced them
  • Snapshots: Point-in-time captures of full agent state

Data Storage

Lifecycle data is stored in ~/.openclaw/lifecycle/ as JSON files.