
Ralph Loop Help
- 219 installs
- 2.5k repo stars
- Updated August 5, 2026
- cursor/plugins
Explain how to start, tune, and recover a Ralph loop session—prompt shape, stop conditions, and common failure modes—for teams adopting iterative agent workflows.
About
Companion help skill for Ralph loop in cursor/plugins: onboarding, troubleshooting, and parameter guidance so users can run iterative agent sessions reliably without guessing termination rules or recovery steps.
- Documents loop entry commands
- Clarifies stop and retry rules
- Lists typical stall patterns
- Shows minimal starter prompts
- Links expectations to Ralph loop runtime
Ralph Loop Help by the numbers
- 219 all-time installs (skills.sh)
- Ranked #2,752 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cursor/plugins --skill ralph-loop-helpAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 219 |
|---|---|
| repo stars | ★ 2.5k |
| Last updated | August 5, 2026 |
| Repository | cursor/plugins ↗ |
What it does
Explain how to start, tune, and recover a Ralph loop session—prompt shape, stop conditions, and common failure modes—for teams adopting iterative agent workflows.
Files
Ralph Loop Help
Trigger
The user asks what Ralph Loop is, how it works, or needs usage guidance.
What to Explain
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 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: 1. The agent receives the SAME prompt 2. Works on the task, modifying files 3. Tries to exit 4. Stop hook intercepts and feeds the same prompt again 5. The agent sees its previous work in the files 6. Iteratively improves until completion
Starting a Ralph Loop
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 completion
How it works: 1. Creates .cursor/ralph/scratchpad.md state file 2. Agent works on the task 3. Stop hook intercepts exit and feeds the same prompt back 4. Agent sees its previous work and iterates 5. Continues until promise detected or max iterations reached
Cancelling a Ralph Loop
Ask the agent to cancel the ralph loop. It will remove the state file and report the iteration count.
Completion Promises
To signal completion, the agent outputs a <promise> tag:
<promise>TASK COMPLETE</promise>The stop hook looks for this specific tag. Without it (or --max-iterations), Ralph runs indefinitely.
When to Use Ralph
Good for:
- Well-defined tasks with clear success criteria
- Tasks requiring iteration and refinement
- Iterative development with self-correction
- Greenfield projects
Not good for:
- Tasks requiring human judgment or design decisions
- One-shot operations
- Tasks with unclear success criteria
Learn More
- Original technique: https://ghuntley.com/ralph/
- Ralph Orchestrator: https://github.com/mikeyobrien/ralph-orchestrator
Output
Present the above information clearly to the user, tailored to their specific question.