Skip to content
Automation
Command

/cancel-team

Cancel any active agent team

From plugin
essentials-claude-code
9125 skills8 agents25 commands
Install
$ npx -y skills add GantisStorm/essentials-claude-code --agent claude-code

How 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-team

Context preview

What this command does when you run it.

Cancel any active agent team

Command definition

cancel-team.md
allowed-tools: ["Bash", "TaskList"]
argument-hint: ""
description: Cancel any active agent team
model: opus

Cancel Team

Stop any active agent team and terminate tmux panes.

Works with all team commands: `/implement-team`, `/plan-team`.

Note: Use `/cancel-team` for teams, `/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 task subjects (agent assignments)
  • Agents may still be running in tmux panes

3. Terminate agent tmux panes by running: `tmux kill-session -t claude-team 2>/dev/null || true` 4. Report:

  • Completed tasks: N
  • In-progress (interrupted): N
  • Pending (not started): N

If no in-progress tasks found:

  • Say "No active team found."

After Cancellation

Task progress is preserved:

  • Completed tasks remain completed
  • In-progress agent work may be partially saved (agents are full Claude Code instances)
  • Pending tasks remain pending

To check task status:

TaskList

Note

Unlike swarm cancellation (which stops lightweight subagents), team cancellation terminates full Claude Code instances running in tmux panes. Work completed by agents before cancellation is saved to disk.

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.

Get the whole plugin, auto-invoked
Stats
91
Stars
1
Views
9
Forks
Maintained
Maintenance
Unlicense
License
5mo ago
Last commit
7mo ago
Created

Repo: GantisStorm/essentials-claude-code