/ralph-loop:ralph-loop-helpfrom Ralph Loop
Explain the Ralph Loop plugin, how it works, and available skills. Use when the user asks for help with ralph loop, wants to understand the technique, or needs usage examples.
Ships in Ralph Loop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user asks what Ralph Loop is, how it works, or needs usage guidance.
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 the agent repeatedly. The "self-referential" aspect comes from the agent seeing its own previous work in the files and git history, not from feeding output back as input.
Each iteration:
Claude Code stops honouring Stop-hook continuations after 8 consecutive continuations in one turn. This is enforced by Claude Code and cannot be raised or disabled.
What that means in practice:
max_iterations: 50 is not wrong, it just takes several turns to get there.continue works fine) resets the per-turn counter and runs up to 8 more iterations.If the user wants genuinely long unattended iteration, point them at /loop, the Claude Code native alternative: it re-runs a prompt or slash command on an interval (or self-paced) with no continuation ceiling. Ralph is still the better tool when the point is to replay the same prompt against the agent's own accumulating work inside a single turn.
Tell the agent your task along with options:
Start a ralph loop: "Build a REST API for todos" --max-iterations 20 --completion-promise "COMPLETE"
Options:
--max-iterations N — max iterations before auto-stop--completion-promise "TEXT" — phrase to signal completionHow it works:
.claude/ralph/scratchpad.md state fileAsk the agent to cancel the ralph loop. It will remove the state file and report the iteration count. A paused loop is still an active loop — cancel it if you do not want the next message to resume it.
To signal completion, the agent outputs a <promise> tag in its final message:
<promise>TASK COMPLETE</promise>
The Stop hook reads the agent's final message directly (Claude Code hands it to the hook as last_assistant_message) and looks for that specific tag. Because it matches the first promise tag in the message, the agent should never write the tag speculatively — only when the statement is genuinely true.
Without a promise (or --max-iterations), Ralph keeps going until it hits the per-turn ceiling, and resumes on every subsequent message until cancelled.
Good for:
Not good for:
/loop insteadPresent the above information clearly to the user, tailored to their specific question.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub seangsisg/cstack --plugin ralph-loop3 skills in this plugin
/cancel-ralphCancel an active Ralph Loop. Use when the user wants to stop, cancel, or abort a running ralph loop./ralph-loopStart a Ralph Loop for iterative self-referential development. Use when the user asks to run a ralph loop, start an iterative loop, or wants repeated autonomous iteration on a task until completion.