Agent Skills
› iii-experimental/agentos
› lifecycle
lifecycle
GitHub管理 Agent 会话的生命周期,包括状态流转、查询及事件反应配置。支持从生成到终止的多种状态切换,用于维护会话一致性与自动化流程控制。
触发场景
需要查看或更改 Agent 会话当前状态时
配置会话状态变更时的自动反应逻辑时
安装
npx skills add iii-experimental/agentos --skill lifecycle -g -y
SKILL.md
Frontmatter
{
"name": "lifecycle",
"effort": "normal",
"toolScope": [
"Bash",
"Read"
],
"description": "Session lifecycle management — transitions, state tracking, reactions"
}
Manage agent session lifecycle:
- Transition:
curl -X POST http://localhost:3111/api/lifecycle/transition -H 'Content-Type: application/json' -d '{"agentId": "claude-code", "newState": "working"}' - Get state:
curl http://localhost:3111/api/lifecycle/state/claude-code - Add reaction:
curl -X POST http://localhost:3111/api/lifecycle/reactions -H 'Content-Type: application/json' -d '{"agentId": "claude-code", "from": "blocked", "to": "working", "action": "notify"}'
States: spawning -> working -> blocked -> pr_open -> review -> merged -> done | failed -> recovering | terminated.
版本历史
- caca2b4 当前 2026-07-25 09:41


