From code
Cancels an active ClosedLoop loop by removing its marker file and reporting the iteration number.
How this command is triggered — by the user, by Claude, or both
Slash command
/code:cancel-codeThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Cancel ClosedLoop Loop To cancel the ClosedLoop loop: 1. Check if `.closedloop-ai/closedloop-loop.local.md` exists using Bash: `test -f .closedloop-ai/closedloop-loop.local.md && echo "EXISTS" || echo "NOT_FOUND"` 2. **If NOT_FOUND**: Say "No active ClosedLoop loop found." 3. **If EXISTS**: - Read `.closedloop-ai/closedloop-loop.local.md` to get the current iteration number from the `iteration:` field - Remove the file using Bash: `rm .closedloop-ai/closedloop-loop.local.md` - Report: "Cancelled ClosedLoop loop (was at iteration N)" where N is the iteration value
To cancel the ClosedLoop loop:
Check if .closedloop-ai/closedloop-loop.local.md exists using Bash: test -f .closedloop-ai/closedloop-loop.local.md && echo "EXISTS" || echo "NOT_FOUND"
If NOT_FOUND: Say "No active ClosedLoop loop found."
If EXISTS:
.closedloop-ai/closedloop-loop.local.md to get the current iteration number from the iteration: fieldrm .closedloop-ai/closedloop-loop.local.mdnpx claudepluginhub closedloop-ai/claude-plugins --plugin code/cancel-wiggumCancels an active Wiggum loop by removing its iteration tracking file and reporting the last iteration number.
/loop-stopStops an active loop by removing its state file and reporting the iteration it was on.
/cancel-rlcr-loopCancels an active RLCR loop by running the cancel script, with support for forced cancellation during Finalize Phase. Handles different loop states and prompts user confirmation when needed.
/cancel-loopAborts a running fireauto loop by checking for and removing the .claude/fireauto-loop.local.md sentinel file, reporting the iteration.
/cancel-iterateCancels the active UCAI iterate loop by checking for the iterate marker file, reading the current iteration number, and removing the file. Reports the iteration number at cancellation.
/buidl-cancelCancels the currently running loop by marking its state as cancelled. Preserves worktree, branch, session directory, and PR (if created) for manual resumption or cleanup.