Files
gh-anthropics-claude-code-p…/commands/cancel-ralph.md
2025-11-29 17:56:04 +08:00

633 B

description, allowed-tools, hide-from-slash-command-tool
description allowed-tools hide-from-slash-command-tool
Cancel active Ralph Wiggum loop
Bash
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:

    • Say "No active Ralph loop found."
  2. If FOUND_LOOP=true:

    • Use Bash: rm .claude/ralph-loop.local.md
    • Report: "Cancelled Ralph loop (was at iteration N)" where N is the ITERATION value from above.