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 DevelopmentThe Ralph loop
When it stopsWhen the verifier passes, or the budget is spentWhen you stop it
What each round seesThe goal, plus a push and the last verifier outputThe same prompt every time
Definition of doneA command that exits successfullyWhatever the prompt says; judged by the agent or a person
CheatingForbidden in standing orders, detected by the verifierUp to the prompt
ToneEscalating pushes ("not quite my tempo")Neutral, repeated
Best forA specific goal with a checkable finish lineOpen-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.

Other comparisons: WDD vs vibe coding · WDD vs test-driven development · WDD vs agentic coding · WDD vs spec-driven development