How this command is triggered — by the user, by Claude, or both
Slash command
/ralph-loop:helpThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Ralph Loop Plugin Help Please explain the following to the user: ## What is Ralph Loop? Ralph Loop implements the Ralph Wiggum technique - an iterative development methodology based on continuous AI loops, pioneered by Geoffrey Huntley. **Core concept:** The same prompt is fed to Claude repeatedly. The "self-referential" aspect comes from Claude seeing its own previous work in the files and git history, not from feeding output back as input. **Each iteration:** 1. Claude receives the SAME prompt 2. Works on the task, modifying files 3. Tries to exit 4. Stop hook intercepts and feed...
Please explain the following to the user:
Ralph Loop implements the Ralph Wiggum technique - an iterative development methodology based on continuous AI loops, pioneered by Geoffrey Huntley.
Core concept:
while :; do
cat PROMPT.md | claude-code --continue
done
The same prompt is fed to Claude repeatedly. The "self-referential" aspect comes from Claude seeing its own previous work in the files and git history, not from feeding output back as input.
Each iteration:
The technique is described as "deterministically bad in an undeterministic world" - failures are predictable, enabling systematic improvement through prompt tuning.
Start a Ralph loop in your current session.
Usage:
/ralph-loop "Refactor the cache layer" --max-iterations 20
/ralph-loop "Add tests" --completion-promise "TESTS COMPLETE"
Options:
--max-iterations <n> - Max iterations before auto-stop--completion-promise <text> - Promise phrase to signal completion--verify <command> - Shell command the hook runs before accepting the promiseHow it works:
.claude/.ralph-loop.local.md state fileCancel an active Ralph loop (removes the loop state file).
Usage:
/cancel-ralph
How it works:
.claude/.ralph-loop.local.mdTo signal completion, Claude must output a <promise> tag:
<promise>TASK COMPLETE</promise>
The stop hook looks for this specific tag. Without it (or --max-iterations), Ralph runs infinitely.
When a completion promise is set, the stop hook automatically enforces verification:
Use --verify to make this even stricter — the hook runs your command itself and rejects the promise if it exits non-zero.
The "loop" doesn't mean Claude talks to itself. It means:
/ralph-loop "Fix the token refresh logic in auth.ts. Output <promise>FIXED</promise> when all tests pass." --completion-promise "FIXED" --max-iterations 10
You'll see Ralph:
Good for:
Not good for:
/helpExplains Ralph Loop plugin for iterative AI development via repeated Claude prompts with file self-reference, and lists commands /ralph-loop to start loops and /cancel-ralph to cancel.
/helpDisplays categorized overview of Task Master AI commands including setup, tasks, status, analysis. Accepts arguments for specific command help.
/helpDisplays Hookify plugin help: hook events, markdown config files with regex patterns, creation via /hookify or manual files, subcommands, and examples for safe behaviors.
/helpDisplays full reference guide for Ouroboros commands and agents by rendering the dedicated SKILL.md file.
/helpDisplays the GSD help reference at the requested tier — one-line summary, one-page tour, full reference, or a single topic section.
/helpDisplays a complete table of all available SuperClaude (/sc) commands with their descriptions and functionality.
npx claudepluginhub rsun19/ralph-loop --plugin ralph-loop