Agent Skills
› iii-experimental/agentos
› lifecycle
lifecycle
GitHub管理Agent会话的生命周期,支持状态转换、查询及反应配置。涵盖从生成到完成或失败的多种状态流转,用于维护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


