Home / Commands / anthropics/claude-plugins-official

cancel-ralph

Cancel active Ralph Loop

commandLicense: Apache-2.0 Source: anthropics/claude-plugins-official

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/cancel-ralph.md https://raw.githubusercontent.com/anthropics/claude-plugins-official/HEAD/plugins/ralph-loop/commands/cancel-ralph.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/cancel-ralph.md https://raw.githubusercontent.com/anthropics/claude-plugins-official/HEAD/plugins/ralph-loop/commands/cancel-ralph.md

File content

Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗

---
description: "Cancel active Ralph 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