Skip to content
Automation
Command

/cancel-loop

Cancel any active loop

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-loop.md
allowed-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
@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

n8n11d209k
@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…

aris11d18k
@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