Agent Skills
› iii-experimental/agentos
› lifecycle
lifecycle
GitHub管理智能体会话的生命周期,包括状态转换、当前状态查询及状态反应机制。支持从生成到终止的多种状态流转,用于维护 Agent 运行时的状态一致性。
Trigger Scenarios
需要切换智能体工作阶段时
查询智能体当前运行状态时
配置状态变更触发事件时
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


