Agent skill

lifecycle

Session lifecycle management — transitions, state tracking, reactions

Stars 113
Forks 16

Install this agent skill to your Project

npx add-skill https://github.com/iii-hq/agentos/tree/main/plugin/skills/lifecycle

SKILL.md

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.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results