/cancel-swarm
Cancel any active swarm
$ 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-swarm
Context preview
What this command does when you run it.
Cancel any active swarm
Command definition
cancel-swarm.mdallowed-tools: ["TaskList", "TaskStop"] argument-hint: "" description: Cancel any active swarm model: opus
Cancel Swarm
Stop any active swarm workers.
Works with all swarm commands: `/implement-swarm`, `/plan-swarm`, `/tasks-swarm`, `/beads-swarm`.
Note: Loop and swarm commands are interchangeable - use `/cancel-swarm` for swarms and `/cancel-loop` for loops.
Instructions
1. Call TaskList to see all tasks and their status 2. For any tasks with status `in_progress`:
- Note the owner (worker name)
- The worker may still be running
3. Use TaskStop to halt any background workers still active 4. Report:
- Completed tasks: N
- In-progress (interrupted): N
- Pending (not started): N
If no in-progress tasks found:
- Say "No active swarm found."
After Cancellation
Task progress is preserved:
- Completed tasks remain completed
- In-progress tasks may complete if worker finishes
- Pending tasks remain pending
To check task status:
TaskList
Note
Unlike loop cancellation, swarm workers are independent agents. If a worker completed its current task before cancellation, that work is saved. For Agent Teams (tmux-based), use `/cancel-team` instead.
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-loop
Cancel any active loop
Open command - /cancel-team
Cancel any active agent team
Open command

