Skip to content
AI & Agents
Command

/cancel-ralph

Cancel active Ralph Wiggum loop

From plugin
claude-code
145k16 skills14 agents16 commands
Install
> /plugin marketplace add anthropics/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-ralph

Context preview

What this command does when you run it.

Cancel active Ralph Wiggum loop

Command definition

cancel-ralph.md
description: "Cancel active Ralph Wiggum loop"
allowed-tools: ["Bash(test -f .claude/ralph-loop.local.md:*)", "Bash(rm .claude/ralph-loop.local.md)", "Read(.claude/ralph-loop.local.md)"]
hide-from-slash-command-tool: "true"

Cancel Ralph

To cancel the Ralph loop:

1. Check if `.claude/ralph-loop.local.md` exists using Bash: `test -f .claude/ralph-loop.local.md && echo "EXISTS" || echo "NOT_FOUND"`

2. **If NOT_FOUND**: Say "No active Ralph loop found."

3. **If EXISTS**:

  • Read `.claude/ralph-loop.local.md` to get the current iteration number from the `iteration:` field
  • Remove the file using Bash: `rm .claude/ralph-loop.local.md`
  • Report: "Cancelled Ralph loop (was at iteration N)" where N is the iteration value
Ships withclaude-code

[![npm]]( Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows -- all through natural language commands.

Get the whole plugin

Other commands on claude-code.