/cancel-loop
Cancel any active loop
$ npx -y skills add GantisStorm/essentials-claude-code --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/cancel-loop
Context preview
What this command does when you run it.
Cancel any active loop
Command definition
cancel-loop.mdallowed-tools: ["Bash", "TaskList"] argument-hint: "" description: Cancel any active loop model: opus context: fork
Cancel Loop
Gracefully stop any active loop while preserving progress.
Works with all loop commands: `/implement-loop`, `/plan-loop`, `/tasks-loop`, `/beads-loop`.
Note: Use `/cancel-loop` for loops, `/cancel-swarm` for swarms, and `/cancel-team` for Agent Teams.
Instructions
Check for any active loop state file and cancel it:
1. Check for `.claude/implement-loop.local.md` 2. Check for `.claude/plan-loop.local.md` 3. Check for `.claude/tasks-loop.local.md` 4. Check for `.claude/beads-loop.local.md`
For each found:
- Read iteration info from the file
- Remove the file
- Report: "Cancelled [type] loop at iteration N"
If none found:
- Say "No active loop found."
After Cancellation
Task progress is preserved:
- Completed tasks remain completed
- In-progress/pending tasks remain in their current state
To check task status:
TaskList
Loops, swarms, and teams powered by Claude Code's built-in Task System. Loop, swarm, and team are three execution modes. Loop runs sequentially. Swarm runs parallel subagents. Team spawns full Claude Code instances with shared contracts via Agent Teams.
Repo: GantisStorm/essentials-claude-code
Other commands on essentials-claude-code.
- /beads-converter
Convert plans to Beads - works with /beads-loop, /beads-swarm, or RalphTUI
Open command - /beads-loop
Execute beads iteratively until all tasks complete
Open command - /beads-swarm
Execute beads with parallel agent swarm (dependency-aware)
Open command - /bug-plan-creator
Deep bug investigation with architectural fix plan generation - works with any executor (loop or swarm)
Open command - /cancel-swarm
Cancel any active swarm
Open command - /cancel-team
Cancel any active agent team
Open command

