Provides a /loop command that keeps re-sending prompts until a breakout condition is met. Essential for TDD and iterative workflows.
| Command | Description |
|---|---|
/loop |
Interactive preset selector |
/loop tests |
Loop until tests pass |
/loop custom <condition> |
Loop until custom condition |
/loop self |
Agent decides when done |
| Tool | Description |
|---|---|
signal_loop_success |
Called by the agent to break the loop |
- Until tests pass: Runs all tests, loops until green
- Until custom condition: User-defined breakout condition
- Self-driven: Agent calls
signal_loop_successwhen finished
- Status widget showing loop turn count and condition summary
- Survives compaction (preserves loop state in compaction instructions)
- Survives session resume (persists state via custom entries)
- Uses Haiku for summarizing breakout conditions in the status widget
Based on mitsuhiko/agent-stuff.