How this command is triggered — by the user, by Claude, or both
Slash command
/autonomous-dev:cancel [--force] [--discard]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /cancel - Cancel Execution and Cleanup Stops the current autonomous execution and cleans up state. ## What It Does 1. **Stops orchestrator** if running 2. **Creates checkpoint** of current progress 3. **Updates state** to cancelled 4. **Cleans up** temporary files 5. **Shows summary** of what was completed ## Output ## Confirmation For safety, asks for confirmation: ## Options ## No Active Execution ## Implementation Uses: - `bin/claude-agi --cancel` - Stop orchestrator - `scripts/state-manager.sh` - Update state - `scripts/checkpoint-manager.sh` - Save checkpoint Cle...
Stops the current autonomous execution and cleans up state.
/cancel
═══════════════════════════════════════════════════════════════════
Cancelling Execution
═══════════════════════════════════════════════════════════════════
⚠ Stopping autonomous execution...
Progress preserved:
✓ Phase 1: ThemeProvider [completed]
✓ Phase 2: useTheme hook [completed]
○ Phase 3: Toggle component [cancelled]
○ Phase 4: Integration [not started]
Checkpoint: chk-20250126-153000
To resume later: /do --continue
Cleanup:
• Orchestrator stopped
• Temporary files removed
• State updated to cancelled
═══════════════════════════════════════════════════════════════════
For safety, asks for confirmation:
⚠ Cancel autonomous execution?
Current progress: Phase 2 of 4 (50%)
Uncommitted changes: 3 files modified
[Cancel & Save Progress] [Cancel & Discard] [Continue Execution]
/cancel # Cancel with confirmation
/cancel --force # Cancel immediately without confirmation
/cancel --discard # Cancel and discard all changes
Nothing to cancel - no active execution.
Uses:
bin/claude-agi --cancel - Stop orchestratorscripts/state-manager.sh - Update statescripts/checkpoint-manager.sh - Save checkpointCleanup steps:
.claude/auto-execution/.handoff-requested.claude/auto-execution/.claude-agi.pidstate.yaml status to "cancelled"npx claudepluginhub adiomas/claude-code-adiomas-plugins --plugin autonomous-dev/cancelCancels stuck or orphaned executions in the session. Invoke also via /kill or /abort aliases.
/cancelCancels the active dev workflow loop, archiving artifacts by default or wiping them with --hard. Stops any in-flight subagents to prevent post-cancel writes.
/buidl-cancelCancels the currently running loop by marking its state as cancelled. Preserves worktree, branch, session directory, and PR (if created) for manual resumption or cleanup.
/cancelCancels active execution loop for a specified or current feature, shows phase/progress/iterations before cleanup, deletes state file, keeps progress history.
/cancelCancels an active background Codex job in this repository using the provided job ID.
/cancelCancels execution loop for spec by name/path or current, cleans up state files, removes spec directory, clears markers, and updates index.