Files
claude-plugins-official/plugins/ralph-wiggum/commands/ralph-loop.md
Anthony Morris 822396ba6a fix(ralph-wiggum): move multi-line bash from command to setup script
Fixes anthropics/claude-code#12170

The ralph-wiggum slash commands had multi-line bash scripts in their
\`\`\`! blocks. Claude Code's security check blocks commands with
newlines to prevent command injection, causing the error:

  "Command contains newlines that could separate multiple commands"

Changes:

ralph-loop.md:
- Remove multi-line bash from code block
- Keep single-line call to setup script
- Keep scoped allowed-tools for security

cancel-ralph.md:
- Replace multi-line bash with step-by-step instructions
- Add Read tool to allowed-tools (needed to read iteration count)

setup-ralph-loop.sh:
- Add completion promise display logic (moved from ralph-loop.md)
- Uses COMPLETION_PROMISE variable directly instead of reading from file
2026-01-04 22:41:17 -08:00

921 B

description, argument-hint, allowed-tools, hide-from-slash-command-tool
description argument-hint allowed-tools hide-from-slash-command-tool
Start Ralph Wiggum loop in current session PROMPT [--max-iterations N] [--completion-promise TEXT]
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh)
true

Ralph Loop Command

Execute the setup script to initialize the Ralph loop:

"${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh" $ARGUMENTS

Please work on the task. When you try to exit, the Ralph loop will feed the SAME PROMPT back to you for the next iteration. You'll see your previous work in files and git history, allowing you to iterate and improve.

CRITICAL RULE: If a completion promise is set, you may ONLY output it when the statement is completely and unequivocally TRUE. Do not output false promises to escape the loop, even if you think you're stuck or should exit for other reasons. The loop is designed to continue until genuine completion.