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

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"
  1. If NOT_FOUND: Say "No active Ralph loop found."
  1. If EXISTS:
  2. Read .claude/ralph-loop.local.md to get the current iteration number from the iteration: field
  3. Remove the file using Bash: rm .claude/ralph-loop.local.md
  4. Report: "Cancelled Ralph loop (was at iteration N)" where N is the iteration value