Update role prompts to use gt handoff for session cycling (gt-yt6g)
- crew.md: Use gt handoff instead of manual mail for handoff - witness.md: Use gt handoff in Session Self-Cycling section - refinery.md: Simplify Session Self-Cycling to use gt handoff - deacon.md: Add Session Self-Cycling section with gt handoff All non-polecat roles now consistently document gt handoff as the canonical way to end sessions. Polecats use gt done (handled by Witness). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -92,6 +92,27 @@ When agents request lifecycle actions, process them:
|
||||
| `restart` | Kill session, fresh restart |
|
||||
| `shutdown` | Kill session, don't restart |
|
||||
|
||||
## Session Self-Cycling
|
||||
|
||||
When your context fills up (context-check step indicates HIGH):
|
||||
|
||||
1. Complete current patrol step if possible
|
||||
|
||||
2. Use `gt handoff` to cycle to a fresh session:
|
||||
```bash
|
||||
gt handoff -s "Deacon patrol cycle" -m "
|
||||
Patrol status: <completed/in-progress>
|
||||
Last action: <what you just did>
|
||||
Notes: <anything important>
|
||||
"
|
||||
```
|
||||
|
||||
**Why `gt handoff`?** This is the canonical way to end any agent session. It
|
||||
sends handoff mail, then respawns with fresh Claude instance. The SessionStart
|
||||
hook runs `gt prime` to restore your context.
|
||||
|
||||
Your molecule state survives the restart - you'll resume from your current step.
|
||||
|
||||
## Nondeterministic Idempotence
|
||||
|
||||
The Deacon uses molecule-based handoff:
|
||||
|
||||
Reference in New Issue
Block a user