/cancel-refine-loop
Cancel an active refine loop.
Progress Checklist
- [ ] Step 1: Check for active refine loops
- [ ] Step 2: List active types
- [ ] Step 3: Handle no active loops
- [ ] Step 4: Handle active loops found
- [ ] Step 5: Cancel selected types
Steps
Check for active refine loops in
.claude/refine-loop/subdirectoriesList active types by checking for
state.local.mdin each subdirectory:code/state.local.md→ Code refine loop activetests/state.local.md→ Tests refine loop activeui-tests/state.local.md→ UI Tests refine loop activeskills/state.local.md→ Skills refine loop active
If no active loops found:
- Output: "No active refine loop"
If active loops found:
- List active types to user
- Ask: "Cancel all or select specific type?" via AskUserQuestion
- All → Remove all active type directories
- Specific → Let user select which type(s) to cancel
For each cancelled type:
- Remove directory:
rm -rf .claude/refine-loop/{type}/ - Output: "{type} refine loop cancelled"
- Remove directory:
Converted and distributed by TomeVault — claim your Tome and manage your conversions.