Skip to content
Automation
Command

/cancel-swarm

Cancel any active swarm

From plugin
essentials-claude-code
9025 skills8 agents25 commands
> /plugin marketplace add GantisStorm/essentials-claude-code
> /plugin install essentials@essentials-claude-code

Command definition

cancel-swarm.md
allowed-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.

@gantisstorm
Ships withessentials-claude-code

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.

905 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
90
Star history of GantisStorm/essentials-claude-code on GitHub, a chart by star-history.com

Other commands on essentials-claude-code.

More commands from other plugins.

plan

plan

Command

Plan n8n Linear ticket implementation

n8n2w209k
@n8n-io@n8n-ioInstall Command
setup

setup

Command

One-time setup after installing ARIS as a Claude Code plugin — registers the Codex reviewer MCP server from the plugin directory…

aris2w18k
@wanshuiyin@wanshuiyinInstall Command
agent
Auto-invoked

agent

Command

name: sc:agent description: SC Agent — session controller that orchestrates investigation, implementation, and review category:…

@galaxy-dawn@galaxy-dawnInstall Command