Agent Skills
› iii-experimental/agentos
› lifecycle
lifecycle
GitHub管理 Agent 会话的生命周期,支持状态转换、状态查询及事件反应配置。涵盖从启动到完成或失败的全流程状态机控制。
Trigger Scenarios
需要管理 Agent 会话状态时
查询当前 Agent 运行状态时
配置状态变更通知机制时
Install
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.
Version History
- caca2b4 Current 2026-07-25 09:41


