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


