Compare
Whiplash Driven Development vs the Ralph loop
The Ralph loop and WDD are close relatives: both keep a coding agent working far longer than one prompt would. The Ralph loop is a bare shell loop that runs the same prompt again and again; WDD wraps that persistence in a verifier that decides when to stop, pushes that carry the failing output, and rules that stop the agent from gaming the check.
What the Ralph loop is
The Ralph loop (named after the Simpsons character and popularised in 2025) is a shell loop that feeds one prompt file to a coding agent forever: while true; do cat PROMPT.md | agent; done. The agent picks up its own state from the files and git history each time.
Side by side
| Whiplash Driven Development | The Ralph loop | |
|---|---|---|
| When it stops | When the verifier passes, or the budget is spent | When you stop it |
| What each round sees | The goal, plus a push and the last verifier output | The same prompt every time |
| Definition of done | A command that exits successfully | Whatever the prompt says; judged by the agent or a person |
| Cheating | Forbidden in standing orders, detected by the verifier | Up to the prompt |
| Tone | Escalating pushes ("not quite my tempo") | Neutral, repeated |
| Best for | A specific goal with a checkable finish line | Open-ended building from a spec, overnight |
Using them together
Many WDD loop scripts are a Ralph loop with a verifier bolted on: run the agent, run the check, stop if green, otherwise push with the output and go again. The prompt kit builder on this site writes exactly that.
Which to choose
- Choose WDD when you can state done as a command that passes, and you want the loop to end itself.
- Choose the Ralph loop when you are building something open-ended from a long spec and are happy to stop it by hand and review.
Questions people ask
Is WDD a Ralph loop?
A WDD loop usually contains one. WDD is the wider practice: the verifier, the pushes, the rules and the budget around the loop.
Can I turn my Ralph loop into a WDD loop?
Yes: add a verifier command after the agent runs, exit when it passes, append its output and a push line to the prompt when it fails, and cap the rounds.