spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / plugins / ralph-wiggum / commands / cancel-ralph.md
18 lines · 745 BPreviewCodeRaw
1---
2description: "Cancel active Ralph Wiggum loop"
3allowed-tools: ["Bash(test -f .claude/ralph-loop.local.md:*)", "Bash(rm .claude/ralph-loop.local.md)", "Read(.claude/ralph-loop.local.md)"]
4hide-from-slash-command-tool: "true"
5---
6
7# Cancel Ralph
8
9To cancel the Ralph loop:
10
111. Check if `.claude/ralph-loop.local.md` exists using Bash: `test -f .claude/ralph-loop.local.md && echo "EXISTS" || echo "NOT_FOUND"`
12
132. **If NOT_FOUND**: Say "No active Ralph loop found."
14
153. **If EXISTS**:
16 - Read `.claude/ralph-loop.local.md` to get the current iteration number from the `iteration:` field
17 - Remove the file using Bash: `rm .claude/ralph-loop.local.md`
18 - Report: "Cancelled Ralph loop (was at iteration N)" where N is the iteration value