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
26 lines · 633 BPreviewCodeRaw

description: "Cancel active Ralph Wiggum loop" allowed-tools: ["Bash"]

hide-from-slash-command-tool: "true"

Cancel Ralph

if [[ -f .claude/ralph-loop.local.md ]]; then
  ITERATION=$(grep '^iteration:' .claude/ralph-loop.local.md | sed 's/iteration: *//')
  echo "FOUND_LOOP=true"
  echo "ITERATION=$ITERATION"
else
  echo "FOUND_LOOP=false"
fi

Check the output above:

  1. If FOUND_LOOP=false:
  2. Say "No active Ralph loop found."
  1. If FOUND_LOOP=true:
  2. Use Bash: rm .claude/ralph-loop.local.md
  3. Report: "Cancelled Ralph loop (was at iteration N)" where N is the ITERATION value from above.