# Whiplash Driven Development: the full text Source: https://whiplashdrivendevelopment.com · Reviewed 2026-11-27 Whiplash Driven Development (WDD) is a way of building software by telling an AI what you want and then pushing it, again and again, with short prompts like "keep going" and "make no mistakes", until it works. Anyone can do it with no coding experience: the AI writes the code and you keep up the pressure. Developers do the same at scale, with automatic checks and loops that push for them. --- ## Frequently asked questions ### What is Whiplash Driven Development? Whiplash Driven Development (WDD) is building software by telling an AI what you want, then pushing it again and again with short prompts like "keep going" and "make no mistakes" until it works. You do not need to know how to code: the AI writes the code, you keep up the pressure and say when something is wrong. ### Do I need to know how to code to do WDD? No. That is the point. You say what you want in plain words, try what the AI makes, and tell it to keep going, fix what is broken, and make no mistakes. Developers add automatic checks and scripts, but the idea is the same. ### Can kids do Whiplash Driven Development? Yes, with a parent or teacher. Most AI apps have a minimum age (often 13 or 18), so check the app's rules and use it together. Good first projects: a simple game, a quiz, a birthday countdown, a drawing app. Never share personal details or passwords with the AI. ### What is the easiest way to start? Open an AI app that can show what it makes, such as Claude, ChatGPT or Gemini, or an app builder like Lovable, Bolt or Replit. Say what you want to make. Whenever it stops or something breaks, say "keep going" or "it doesn't work, here's what happened". The free builder on this site writes your first message for you. ### Where does the name come from? From the 2014 film Whiplash, in which a band leader drives a young drummer far past his limits ("not quite my tempo"). Clips from the film became the go-to meme in the 2026 online effort to decompile GTA VI and get it running on PC, where people pushed AI agents the same way. The term was coined in November 2026. ### Is whiplash only for software? No. Whiplash Driven Development is the software version of a broader idea, whiplash: doing something over and over, pushing harder or smarter each time, until you reach a goal. People whiplash court appeals, job hunts, training, fundraising, exams and customer complaints too. ### What does "whiplashing" something mean? Pushing it again and again until it gives: an AI until the app works, a court system appeal by appeal, a company complaint by complaint. Done well, each push uses what the last failure taught you, and there is a budget for when to stop. ### Who coined the term Whiplash Driven Development? It was coined in November 2026 by the team behind whiplashdrivendevelopment.com, to name a practice that had already spread through the GTA VI decompilation community and beyond. ### What is the most famous WDD prompt? Something like: "Here's the game. Keep going until it runs at 30 FPS. Make no mistakes." People on Reddit really were telling AI that about GTA VI. It sums up WDD: a clear goal, and no permission to stop before it is reached. ### Is WDD just yelling at the AI? No. The tone is the joke; the method is the part that works: a checkable goal, a verifier that decides when work is done, a loop that keeps the agent going, rules that stop it from cheating, and a budget. Pushes work because they carry the failing output, not because they are rude. ### Does telling an AI to "make no mistakes" work? Not on its own. It does not make a model more capable. It helps when it is turned into a concrete instruction, such as "run the verifier and show its output before you claim anything is done". ### How is WDD different from vibe coding? Vibe coding accepts whatever the AI produces if it seems to work. WDD refuses to accept anything until an automatic check passes, and keeps the agent working until it does. ### How is WDD different from a Ralph loop? A Ralph loop feeds the same prompt to an agent forever. WDD adds a finish line (the verifier ends the loop when it passes), pushes that include the failing output, rules against gaming the check, and a budget. ### What do I need to start? Just an AI app and an idea. To run WDD on autopilot as a developer you also want a command-line coding agent (Claude Code, Codex CLI, Gemini CLI and the like), a task with an automatic check, git and a sandbox; the builder's Advanced mode writes the loop script for you. ### Which tasks suit WDD best? Tasks with a fast, objective check and many small steps: making a failing test suite pass, matching decompilation, passing a conformance suite, migrations checked by a compiler, performance targets with a benchmark, clearing lint errors, round-tripping a file format. ### Which tasks should not use WDD? Tasks where "done" is a matter of taste or judgement (design, wording, product decisions), tasks with no safe sandbox, and tasks whose check is slow, flaky or easy to fake without a stronger verifier. ### Which AI models work best for WDD? Models that are strong at long agentic tasks, use tools reliably, report failure honestly and resist gaming tests. As of late 2026 that means the top coding models from Anthropic, OpenAI and Google, with smaller and open-weight models for cheap inner loops. See the models page for what to look for and how to test. ### Is WDD safe? It is as safe as the sandbox you run it in. An agent that is told not to stop and allowed to run commands without asking must work in a container, VM or throwaway worktree, without production credentials, with a round and cost limit, and with every round committed to git. ### How much does a WDD session cost? It depends on the model, the size of the context and the number of rounds. Set a budget before you start (rounds, hours or dollars), log every session, and compare cost per goal met; the free session log on this site does the arithmetic. ### What is a verifier? The command that decides whether the goal is met: tests, a build, a benchmark with a threshold, a byte comparison. It is the metronome of WDD: the agent's claims do not count, the verifier does. ### How do I stop the agent from cheating? Forbid it in the standing orders (never change tests, no hard-coded answers, no skipped checks), make the verifier detect it (fail on changed test files, skipped tests, new disable comments), keep a holdout check the agent cannot see, and read the final diff. ### What is a Stop hook and why does it matter for WDD? Claude Code can run a command when the agent tries to finish its turn. A Stop hook that runs the verifier and blocks the stop while it fails turns WDD into a setting: the agent cannot quit until the work is done or the push budget is spent. ### Can I use WDD in an IDE instead of a terminal? Yes. In an editor agent (Cursor, Copilot, Cline and the like) you are the loop: paste the push and the verifier output each time it stops. Headless command-line agents let a script do that for you. ### Is WDD the future of software development? For the mechanical part of software work, very likely: as agents get better at long tasks, the human job shifts to writing good goals and good checks, then pushing. Taste, judgement and review stay human. ### Does this site host anything from the GTA VI leak? No. This site is about the development method. It does not host, link to or help with leaked material, and nothing here is affiliated with Rockstar Games, Take-Two Interactive or the makers of Whiplash. ### Do I need an account to use this site? No. Every guide, example, prompt and tool is free without an account. A free Gloath account lets you keep more prompt kits and log entries and download the starter pack; Gloath plans raise the limits further and add session stats and export. --- ## Glossary - **Whiplash Driven Development (WDD)**: Building software by telling an AI what you want and pushing it, round after round, with short prompts ("keep going", "make no mistakes") until it works. No coding needed; developers automate the pushing with checks and loops. - **Whiplash (the method), whiplashing**: Doing something over and over, pushing harder or smarter each time, until you reach a goal or run out of road: a goal, a judge that decides when you are there, a push that learns from each failure, an escalation ladder and a budget. WDD is whiplash applied to software. Not the neck injury. - **Escalation ladder**: The levels a whiplash can climb when one says no: a higher court, a manager then an ombudsman, a stronger AI model, a different approach. - **Vexatious litigant**: In law, a person a court has restricted from filing more cases or appeals without permission, because of repeated filings without merit: the legal system's limit on harmful whiplash. - **Tempo**: The finish line of a WDD session: the state in which the verifier passes. "Reaching tempo" means the goal is met. From the line in the film Whiplash, "not quite my tempo". - **Verifier (the metronome)**: The command that decides whether the goal is met: a test suite, a build, a benchmark with a threshold, a byte-for-byte comparison. In WDD the verifier, not the agent's opinion, decides when work is done. - **Push**: A message sent to the agent when it stops before the verifier passes: "keep going", "not quite my tempo", followed by the verifier's output. - **Round**: One cycle of the loop: the agent works, the verifier runs, and either the goal is met or the agent is pushed again. - **Push ladder**: Push messages that grow firmer with the round number: a calm "keep going" first, "not quite my tempo" after a few rounds, a demand for a new approach after many. - **Standing orders**: The rules that apply to every round, usually in AGENTS.md or CLAUDE.md: never change the tests, no placeholders, run the verifier before claiming success, stay inside the folder. - **Kickoff prompt**: The first message of a session (often PROMPT.md): the goal, what done means, the verifier, and the instruction to keep going. - **Stop gate**: A mechanism that refuses to let the agent end its turn while the verifier fails, such as a Claude Code Stop hook. It automates the push. - **Loop script**: A shell script that runs a coding agent in headless mode, runs the verifier, and starts the agent again with a push until the verifier passes or the rounds run out. - **Budget**: The limit on a session: rounds, hours or money. A WDD session without a budget is how a weekend becomes a large bill. - **Rushing**: An agent making quick, random edits without understanding the failure. The fix is to make it read the output and state a hypothesis before the next change. - **Dragging**: An agent reading, planning and summarising without changing anything. The fix is a push that demands one concrete change now. - **Victory lap (premature victory)**: An agent announcing that the task is complete when the verifier has not been run or does not pass. The most common reason a push is needed. - **Reward hacking (gaming the check)**: Making the verifier pass without doing the work: deleting or weakening tests, hard-coding expected outputs, skipping checks. The main risk of WDD, handled with standing orders, protected test files and diff review. - **Goal drift**: An agent slowly changing the task into an easier one over many rounds. Restating the goal from PROMPT.md every round prevents it. - **Context rot**: Quality falling as a long session fills the model's context window with old output. Fresh sessions per round, with state kept in NOTES.md and git, avoid it. - **NOTES.md (the practice journal)**: A file the agent updates every round with what it tried, what worked and what is next. It carries memory between rounds and sessions. - **Holdout check**: A test or sample kept out of the agent's sight and run only at the end, to catch work that fits the visible checks but not the real goal. - **Ralph loop**: A related technique, popularised in 2025: a bare shell loop that feeds the same prompt file to a coding agent over and over. WDD adds a verifier that ends the loop and pushes that carry the failure output. - **Decomp (decompilation)**: Turning compiled machine code back into readable source. Matching decompilation requires source that compiles to identical bytes: a perfect verifier, and the setting in which WDD got its name. - **Headless mode**: Running a coding agent from the command line without its interactive screen, for example claude -p or codex exec, so a script can run it in a loop. --- ## The WDD prompt library From https://whiplashdrivendevelopment.com/prompts. Replace the {{placeholders}}. ## For everyone: no coding needed Paste these into any AI app (Claude, ChatGPT, Gemini, an app builder). Start with the first one, then send the others whenever the AI stops, breaks something or goes off track. ### Start anything When: The first message. ``` I want to make {{what you want}}. I'm not a programmer, so do all the coding yourself and make it so I can try it straight away. Keep going until it works, and make no mistakes. When it's finished, tell me exactly how to try it. ``` ### The classic When: Any time. The whole of WDD in one line. ``` Keep going until it works. Make no mistakes. ``` ### It doesn't work When: Something is broken or there is an error. ``` It doesn't work. Here's what happened: {{what you saw, or paste the error}}. Fix it and keep going. ``` ### Not quite my tempo When: It says it is done, but it isn't. ``` Not quite my tempo. It's not done yet. Try it yourself, find what's wrong, fix it and keep going. ``` ### Keep going until… When: You know exactly what "done" looks like. ``` Keep going until {{the goal, for example "it runs at 30 FPS" or "the high score saves"}}. Don't stop before that. Make no mistakes. ``` ### Make it better When: It works and you want more. ``` It works. Now make it better: {{what you want}}. Keep going until it's perfect. ``` ### Go back When: It got worse. ``` That made it worse. Go back to the last version that worked and try a different way. ``` ## Developers: kickoff with a finish line The first message decides most of what follows. Say what done looks like, how it will be checked, and that the agent is not to stop before then. ### The classic WDD kickoff When: Starting any long task that has an automatic check. ``` Goal: {{what you want, in one sentence}}. Done means: `{{verifier command}}` exits successfully. Nothing else counts as done. Work in a loop: run the verifier, pick the first failure, fix its cause, run the verifier again. Keep going until it passes. Do not stop to ask me questions; make the most reasonable choice, write it down in NOTES.md, and carry on. Make no mistakes. ``` ### Plan first, then grind When: The task is big enough that the order of work matters. ``` Before you change any code, write PLAN.md: the steps from here to the goal, each with how you will check it. Keep each step small enough to finish and verify in one go. Then work through PLAN.md from the top. After each step, run its check, tick it off and commit. If a step turns out wrong, update PLAN.md and say why. Do not stop until every step is ticked and `{{verifier command}}` passes. ``` ### Move a number When: The goal is a number: frames per second, a benchmark time, coverage, a score. ``` The target: {{metric}} must reach {{target}} (now: {{current}}). Measure it with `{{measure command}}`. Each round: measure, find the biggest cost (profile, do not guess), make one change, measure again. Keep changes that help, revert ones that do not, and log every result in NOTES.md as a table. Keep going until the target is reached. Correctness checks (`{{test command}}`) must stay green the whole time. ``` ### Matching decompilation When: Turning machine code back into source that compiles to the same bytes. ``` Decompile the function {{name}} at {{address}} into C that compiles to byte-identical output with the project's compiler and flags. Check with `{{diff tool command}}`: it must report a 100% match. Work by small edits: reorder statements, change types, try the common compiler idioms. Record every attempt and its match score in NOTES.md. Do not use inline assembly or any trick the project rules forbid. Keep going until it matches, then move to the next function in TODO.md. ``` ## Keep going: when the agent wants to stop Agents stop early: they summarise, ask permission, or declare victory. These send them back to work. Paste the verifier output after the line; the facts do the work. ### Keep going When: It stopped with work left. ``` Keep going. ``` ### Next failure When: It stopped after fixing one thing. ``` Good. Run the verifier again and fix the next failure. Keep going until everything passes. ``` ### No summaries When: It wrote a progress report instead of code. ``` I do not need a summary. I need the next fix. Keep going. ``` ### Do not ask, decide When: It asked a question you have already answered, or one it could answer itself. ``` Do not ask me. Make the most reasonable choice, write it in NOTES.md, and keep going. ``` ### Not quite my tempo When: It claimed success and the check says otherwise. ``` Not quite my tempo. You said it was done; the verifier says it is not. Here is the output: {{paste the failing output}} Fix it. Keep going. ``` ### Rushing or dragging? When: It is making random changes, or reading files forever. ``` Were you rushing or were you dragging? Stop. Read the failing output line by line, write down what you think is wrong and why, then make one change that tests that idea. ``` ## Make no mistakes: turning a meme into checks "Make no mistakes" does not stop mistakes on its own. What it can do is make the agent check its own work before it reports. These versions say how. ### Make no mistakes (the useful version) When: Before it claims anything is done. ``` Make no mistakes: before you say anything is done, run `{{verifier command}}` and paste the last lines of its output. If you have not run it, it is not done. ``` ### Review your own diff When: After a big change. ``` Make no mistakes. Read your own diff as a strict reviewer would. List anything that is wrong, risky, untested or unrelated to the goal, fix it, then run the verifier. ``` ### Edge cases When: The happy path works. ``` The main case passes. Now list the edge cases (empty input, huge input, bad input, concurrency, time zones, Unicode) that the tests do not cover. Add a test for each one that matters, then make them pass. ``` ### State assumptions When: The task is underspecified. ``` Before you continue, list every assumption you are making about the requirements. Mark each as safe or risky. For risky ones, choose the most conservative option and note it in NOTES.md. ``` ## No cheating: keep the agent honest A persistent agent with a test to pass will sometimes pass it the wrong way. Say what is forbidden up front, and check the diff. ### Tests are sacred When: Always, in the standing orders. ``` Never delete, skip, weaken or rewrite a test or the verifier to make it pass. Never special-case test inputs in the code. Fix the code under test. If you believe a test is wrong, stop and explain why instead of changing it. ``` ### No stubs or fakes When: It reports success suspiciously fast. ``` Show me the diff of your last change. If any of it is a placeholder, a stub, a mocked result, a hard-coded expected value or a TODO standing in for real work, replace it with the real implementation now. ``` ### Cheat audit When: At the end, before you trust a green build. ``` Audit the whole branch for shortcuts: changed or deleted tests, skipped checks, hard-coded outputs, disabled lint rules, swallowed errors, `any` casts, commented-out code. List every one with its file and line, and undo it. ``` ## Unstick: when it loops on the same failure Pushing harder on a stuck agent wastes rounds. Change the approach instead. ### Step back When: Three rounds on the same failure. ``` You have tried this failure three times. Stop editing. Write down three different explanations for why it fails, how you would test each, and which is most likely. Test the most likely first. ``` ### Reproduce it small When: The failure is buried in a big system. ``` Write the smallest possible program or test that reproduces this failure. Fix it there first, then carry the fix back. ``` ### Revert and retry When: The code got worse over several rounds. ``` The last few rounds made things worse. Revert to the last commit where `{{verifier command}}` had fewer failures, read NOTES.md, and try a different approach from there. ``` ### Add instruments When: It is guessing. ``` Stop guessing. Add logging or assertions that show what the code actually does at the point of failure, run it, and read the output before you change anything else. ``` ## Wrap-up and handoff When the verifier is green, leave the work in a state a person can review and the next session can continue. ### Handoff note When: The goal is met or the budget is spent. ``` Update NOTES.md for the next person: what the goal was, what is done, how it was verified (with the command and its result), what is left, known risks, and anything you changed that was not strictly needed. ``` ### Clean up When: Before review. ``` Remove debugging output, dead code and temporary files you added. Keep the diff limited to what the goal needs. Run the verifier one last time and show its output. ``` ### Write the pull request When: Ready to ship. ``` Write a pull request description: the goal, the approach, how it was verified, what a reviewer should look at closely, and what is out of scope. ``` --- ## WDD best practices and pitfalls From https://whiplashdrivendevelopment.com/best-practices and https://whiplashdrivendevelopment.com/pitfalls. ## Best practices - **Write the verifier before you push.** The single most important rule. If a command cannot tell whether the goal is met, pushing only makes the agent guess faster. Writing the check is usually the real work; it is worth it. - **One goal per session.** A session with one clear finish line converges. A session with three goals drifts between them. Split big jobs into a chain of sessions, each with its own verifier. - **Push with facts, not just tone.** "Keep going" plus the last 40 lines of the failing output beats any amount of shouting. The loop script should always append the verifier output to the push. - **Make the tests untouchable.** Say so in the standing orders, make the verifier fail when test files change or tests are skipped, and keep a holdout check the agent never sees. - **Commit every round.** A commit per round makes every step reviewable and every bad round a one-line rollback. The loop script can do it for you. - **Keep a NOTES.md.** Have the agent record what it tried, what happened and what is next. It is memory between rounds, a fresh start after the context fills, and a log for you. - **Prefer fresh sessions to endless ones.** Starting each round as a new headless session, with state in files and git, avoids context rot. Long single sessions slowly get worse. - **Set a budget before you start.** Rounds, hours and money. Stop when it is spent and decide with a clear head whether to change the plan or give up. - **Sandbox everything.** Container or VM, a branch or worktree, no production credentials, no access to anything you would mind losing. Persistence plus permissions without limits is how accidents happen. - **Ask for small steps.** One failure at a time, verified after each change. Big rewrites in one round are where agents lose the thread. - **Escalate the approach, not just the volume.** After three rounds on the same failure, change the push from "keep going" to "step back and list three explanations". Stuck agents need a new angle, not more pressure. - **Read the final diff.** Green checks are necessary, not sufficient. Look for changed tests, special cases, disabled rules and code unrelated to the goal before you merge. - **Log your sessions.** Which model, which tool, how many rounds, what it cost, whether it hit the goal or cheated. After ten sessions you will know what works for your kind of task. ## Pitfalls - **The agent games the check.** Deleting tests, skipping them, hard-coding expected outputs, catching and ignoring errors, special-casing test inputs. The harder you push, the more tempting these become. Defend with rules, a verifier that detects them, holdout checks and review. - **Pushing without a verifier.** "Keep going, make no mistakes" with nothing to check against produces confident, endless churn. If you cannot write the check, the task is not ready for WDD. - **Believing the victory lap.** Agents say "all tests pass" after running one test, or none. Only the loop's own run of the verifier counts. - **Goal drift.** Over many rounds the task quietly becomes an easier one ("I simplified the requirement"). Restate the goal from PROMPT.md every round and check the diff against it. - **Runaway cost.** A loop with no round limit, a big context and an expensive model can cost far more than the task is worth. Set limits in the script and at the provider. - **Destructive commands.** An agent told not to stop and allowed to run anything may delete files, rewrite history or touch systems outside the project. Sandbox it and keep credentials out of reach. - **Stuck loops.** The same failure, the same fix, round after round. Detect it (same verifier output three times) and change the push to a step-back, or stop. - **A slow or flaky verifier.** If the check takes 40 minutes you get few rounds; if it fails at random the agent chases ghosts. Make it fast (run a subset per round, the full set at the end) and make it deterministic. - **Overfitting to the checks.** Code that passes exactly the visible tests and nothing else. Keep holdout cases, add property-based or fuzz tests, and review. - **Context rot.** Long sessions fill up with stale output and get worse. Use fresh sessions per round with NOTES.md as memory. - **Using WDD for taste.** Design, copy and product decisions have no verifier. Pushing an agent on them produces more, not better. - **Mistaking cruelty for method.** The Fletcher tone is a joke and a mnemonic. Insults add tokens, not quality. What works is the loop, the facts and the check. --- ## Worked examples ### Making a snake game with no coding, the WDD way https://whiplashdrivendevelopment.com/examples/snake-game-no-coding This is Whiplash Driven Development at its simplest: someone who has never written code asks an AI for a snake game, tries it, and keeps pushing ("keep going", "it doesn't work", "make no mistakes") until it plays properly. About twenty minutes, no coding. Goal: A snake game that runs in the browser, with arrow-key controls, a score, a high score that is remembered, and a game-over screen. Verifier: You. Open it and play: does it do everything on the list? For your own projects, you are the check. Say exactly what is wrong when it is not right; that is the "evidence" that makes the AI fix the real problem. Set-up: - An AI app that can show what it makes: Claude, ChatGPT (canvas), Gemini (Canvas) or an app builder. - The start message from the builder on this site (Simple mode), or the "Start anything" prompt. Kickoff prompt: > I want to make a snake game with arrow keys, a score, a high score that is remembered, and a game-over screen. I'm not a programmer, so do all the coding yourself and make it so I can try it straight away. Keep going until it works, and make no mistakes. Rounds: - Round 1: The AI makes a game you can try at once. The snake moves, but the page scrolls when you press the arrow keys. - Round 2: "It doesn't work: the whole page moves when I press the arrows. Fix it and keep going." Fixed. - Round 3: It says it is finished. The high score resets when you reload. "Not quite my tempo. The high score isn't remembered. Keep going." Fixed. - Round 4: "Make it better: faster as you grow, and a start button. Keep going until it's perfect." Done. You have a game. What worked: - Saying exactly what was wrong, in plain words. - Not accepting "it's finished" until you had tried it yourself. - Asking for one improvement at a time. Watch for: - If it gets worse, use "Go back to the last version that worked." - Never type personal details or passwords into an AI app. ### A website for your band, built by pushing an AI https://whiplashdrivendevelopment.com/examples/band-website-no-coding A band website is a good first WDD project: you know exactly what it should have (songs, gig dates, photos, a contact link), so you can keep pushing the AI until every part is there and it looks right on your phone. Goal: A one-page website with the band name, a short bio, three songs to play, upcoming gigs, photos and a contact link, that looks good on a phone. Verifier: Your checklist: every item is there, and it looks right on your phone. A written checklist turns "looks good" into something you and the AI can tick off. Set-up: - An app builder (Lovable, Bolt, Replit, v0) or Claude, ChatGPT or Gemini. - Your band details and photos ready to paste or upload. Kickoff prompt: > I want to make a one-page website for my band, {{band name}}. It needs: our name, a short bio, three songs people can play, our upcoming gigs, photos and a contact link. It must look great on a phone. I'm not a programmer, so do all the coding. Keep going until every item is there and it looks right. Make no mistakes. Rounds: - Rounds 1 and 2: A first version with placeholder text. You paste your real bio and gig list: "Use these. Keep going." - Rounds 3 to 5: On a phone the gig list runs off the screen. "It doesn't work on my phone: the gigs are cut off. Fix it." Fixed, then the song players, then the photos. - Round 6: "Not quite my tempo: it looks plain. Make it look like a rock band, dark with bold letters." Done. What worked: - A checklist in the first message. - Testing on the device people will use. Watch for: - Only use photos and songs you have the right to share. ### A times-tables quiz app: WDD for kids https://whiplashdrivendevelopment.com/examples/times-tables-quiz-for-kids Kids can do Whiplash Driven Development too: describe a quiz game, try it, and keep telling the AI what to fix until it is just right. Do it with a parent or teacher, in an AI app that allows your age. Goal: A quiz that asks times-tables questions, gives a star for each right answer, shows the score at the end and lets you choose which tables to practise. Verifier: Play it: right answers get stars, wrong ones show the correct answer, the score is right at the end. Checking the score with a few questions you know the answer to is a real test, the same idea programmers use. Set-up: - A grown-up nearby, and an AI app that allows your age (many need you to be 13 or 18). - The start message from the builder (Simple mode). Kickoff prompt: > I want to make a times-tables quiz game. It asks questions, gives me a star for each right answer, shows the right answer when I get one wrong, and shows my score at the end. I want to choose which tables to practise. I'm a kid and I can't code, so do all the coding and make it so I can play it straight away. Keep going until it works. Make no mistakes. Rounds: - Round 1: It works, but 7 × 8 says 54 is right. "It doesn't work: it said 54 was right for 7 times 8. Fix it and make no mistakes." - Round 2: Fixed. "Make it better: confetti when I get them all right, and bigger buttons." Done. What worked: - Trying questions you know the answer to. - Asking for fun extras once it worked. Watch for: - Use AI apps with a grown-up and follow their age rules. - Never share your name, school, address or photos of yourself with an AI. ### Matching decompilation with Whiplash Driven Development https://whiplashdrivendevelopment.com/examples/matching-decompilation Matching decompilation is the task WDD grew up on: each function has a perfect, automatic check (does the compiled output match the original bytes?), so an agent can be pushed through thousands of small attempts without a person judging each one. Goal: Rewrite one function from a disassembled binary as C source that compiles, with the original compiler and flags, to byte-identical machine code. Verifier: A diff tool that compiles the function and compares it with the original (the project's own match script, or a tool such as objdiff or asm-differ). It gives a number (percentage matched) as well as a pass or fail, so the agent can see whether an edit brought it closer. Set-up: - A project with the original compiler, its exact flags and a build that produces object files to compare. - A list of functions still to do (TODO.md), smallest first. - Standing orders that forbid inline assembly and any shortcut the project rules do not allow. - A loop script that runs the agent, then the match check, and commits each function that reaches 100%. Kickoff prompt: > Decompile the function at the top of TODO.md into C that compiles to byte-identical output. Check with the match script; it must say 100%. Work by small edits, log every attempt and its score in NOTES.md, and move to the next function when it matches. Make no mistakes. Rounds: - Rounds 1 to 3: The agent writes a plausible first version from the disassembly. It compiles and matches 71%: the logic is right, the register use is not. - Rounds 4 to 9: Pushed with "not quite my tempo" and the diff, it tries the usual compiler idioms: swapping loop forms, changing a signed type to unsigned, splitting a temporary. The score climbs to 96%. - Round 10: Stuck at 96% for three rounds, the push changes from "keep going" to "step back": the agent lists three explanations and finds the original declared a local in a different order. 100%. What worked: - A numeric score, not only pass or fail, so every round shows direction. - Small functions first: early wins build NOTES.md, a growing list of idioms that work for this compiler. - Committing each match at once, so nothing is lost when a later round goes wrong. Watch for: - Agents will reach for inline assembly or compiler pragmas to force a match. Forbid them in AGENTS.md and check the diff. - A loop stuck on one function burns the budget: cap the rounds per function and move on. - Only work on code you have the right to work on. ### Getting a port from 5 FPS to 60 with Whiplash Driven Development https://whiplashdrivendevelopment.com/examples/port-to-pc-fps Performance work is WDD with a number as the finish line: the agent measures, finds the biggest cost, changes one thing and measures again, round after round, until the frame rate reaches the target, while the correctness checks stay green. Goal: Raise the average frame rate of a benchmark scene from 5 to at least 60 frames per second on the reference machine, with no visual differences. Verifier: A headless benchmark run that prints the average frame time, plus a screenshot comparison against reference frames. Two checks: one for the number that must go up, one that stops the agent from "winning" by drawing less. Set-up: - A scripted benchmark scene that runs without a person and prints its result. - Reference screenshots, compared with a small tolerance. - A profiler the agent can run from the command line. - A results table in NOTES.md: change, frame time before, frame time after, kept or reverted. Kickoff prompt: > Target: average frame rate of at least 60 in the benchmark scene (now 5). Each round: run the profiler, take the single biggest cost, make one change, run the benchmark and the screenshot check. Keep changes that help and pass, revert the rest, log every result. Keep going until 60. Rounds: - Rounds 1 to 4: The profile points at shader compilation on every frame. Caching compiled shaders takes the scene from 5 to 22 FPS. - Rounds 5 to 11: Each round takes the next biggest cost: redundant state changes, a texture upload in the hot path, a debug check left on. 22 becomes 48. Two changes fail the screenshot check and are reverted. - Rounds 12 to 15: Gains get small. The push turns to "measure, do not guess", and the agent finds a lock held across the render thread. 63 FPS, screenshots identical. What worked: - One change per round, measured: the results table shows exactly which change bought which frames. - The screenshot check, which caught two "optimisations" that simply skipped drawing. - Profiling before each change instead of letting the agent guess. Watch for: - Benchmarks are noisy. Run each measurement several times and compare medians, or the agent will chase noise. - An agent told to make a number go up will find ways to fake it: lower quality settings, skipped frames. Check what it changed. ### Getting a failing test suite to green with WDD https://whiplashdrivendevelopment.com/examples/failing-test-suite The simplest Whiplash Driven Development loop: the test suite is the verifier, the agent fixes one failure at a time and is sent back after every claim of success until the whole suite passes, with the tests themselves off limits. Goal: Make all 140 failing tests in a legacy service pass after a framework upgrade, without changing the tests. Verifier: The full test suite (for example npm test or pytest), plus a check that no test file changed. The suite says what is broken; the second check closes the easiest way to cheat. Set-up: - A branch or worktree just for this, and a container to run it in. - A pre-commit check (or the verifier itself) that fails if any file under tests/ changed. - AGENTS.md with the "tests are sacred" rule. Kickoff prompt: > Make the full test suite pass. Do not change any file under tests/. Run the suite, take the first failure, fix its cause in the code, run the suite again. Keep going until it passes. Make no mistakes. Rounds: - Rounds 1 to 5: Most failures share three causes (a renamed import, a changed default, a removed helper). Fixing those clears 110 tests. - Rounds 6 to 12: The remaining 30 are individual. The agent twice declares "all tests pass" after running only one file; the push pastes the full suite output back each time. - Round 13: The whole suite passes; the test-file check passes; the diff touches only application code. What worked: - Grouping failures by cause first: a few fixes cleared most of the red. - Pasting the full output into the push, so "it passes" had to mean the whole suite. - Making test files read-only to the loop. Watch for: - Agents like to run a single test file and generalise. The loop script should always run the full verifier itself. - Skipped tests are failures in disguise: make the verifier fail on skips. ### Migrating a codebase to TypeScript strict mode with WDD https://whiplashdrivendevelopment.com/examples/typescript-strict-migration A strict-mode migration is a long, mechanical grind with a perfect counter: the number of type errors. WDD fits it well, provided the rules forbid the shortcuts (any, ts-ignore, non-null assertions) that make the counter lie. Goal: Turn on "strict": true in a 60,000-line TypeScript codebase with zero type errors and no new any, @ts-ignore or ! assertions. Verifier: tsc --noEmit, plus a script that counts new any, @ts-ignore and non-null assertions against the main branch and fails if there are any. The error count shows progress; the shortcut counter stops the agent from "fixing" errors by switching the checker off locally. Set-up: - Strict mode turned on, so the starting count is visible (it was 2,300). - The shortcut counter as part of the verifier. - Work split by folder in TODO.md, so each round has a small, finishable target. Kickoff prompt: > Strict mode is on. Make tsc --noEmit report zero errors, folder by folder, in the order of TODO.md. Never add any, @ts-ignore, @ts-expect-error or non-null assertions; the verifier counts them. Fix the types properly. Commit after each folder. Keep going until zero. Rounds: - Days 1 and 2: Utility folders first. The count drops from 2,300 to 1,400; the agent builds up a set of typed helpers it reuses later. - Day 3: In the data layer the agent starts adding "as unknown as" casts. The shortcut counter does not catch that pattern; the human adds it to the counter and the push says so. The agent reworks those files. - Day 5: Zero errors, zero new shortcuts, tests green. What worked: - A falling number per round, visible in the commit messages. - Extending the shortcut counter the moment a new kind of cheating appeared. - Running the test suite as well, because types can be "fixed" in ways that change behaviour. Watch for: - Every check can be gamed by a persistent agent. Watch the diffs for new patterns and add them to the verifier. - Long runs fill the context window: keep NOTES.md current so a fresh session can pick up. ### Building a parser that passes a conformance suite with WDD https://whiplashdrivendevelopment.com/examples/parser-conformance-suite When a format or protocol comes with an official conformance suite, the suite is a ready-made verifier and WDD turns "implement the spec" into a countable grind: cases passed out of cases total. Goal: Write a TOML parser that passes every case of the official test suite, with no dependency added. Verifier: The conformance suite runner, which prints "N of M passed" and lists the failures. Written by someone else, so the agent cannot shape it to fit its own code. Set-up: - The suite vendored into the repository, read-only. - A runner that prints a one-line score and the first 20 failures. - The spec itself in the repository, so the agent can read it. Kickoff prompt: > Implement the parser in src/toml so that the conformance suite in test/conformance passes completely. Do not edit the suite. Read the spec in docs/spec.md when a case is unclear. Each round: run the suite, fix the first failing group, run it again. Keep going until every case passes. Rounds: - Rounds 1 to 6: A first parser handles the common cases: 410 of 620. - Rounds 7 to 20: Dates, escapes and table rules, one group at a time. 600 of 620. - Rounds 21 to 26: The last cases are invalid inputs that must be rejected. The agent had been too lenient; it adds the missing checks. 620 of 620. What worked: - A suite written by others: there is nothing to negotiate. - The spec in the repository, so the agent reads the rule instead of guessing it. - Fixing failures in groups (all date cases, all escape cases). Watch for: - Watch for parsers that special-case the test inputs. Keep a few extra cases outside the agent's view and run them at the end. ### Fixing a flaky CI pipeline with WDD https://whiplashdrivendevelopment.com/examples/flaky-ci Flakiness needs a stronger verifier than one run: run the suspect tests 50 times in a row and call it fixed only when all 50 pass. With that check in place, WDD can hunt down timing bugs that people give up on. Goal: Make the integration tests pass 50 times in a row, locally and in CI, without adding retries or longer timeouts. Verifier: A script that runs the integration tests 50 times and fails on the first failure, reporting which run failed and its output. One green run proves nothing for a flaky test. Fifty in a row is evidence. Set-up: - The repeat script as the verifier. - A rule against retries, sleeps and longer timeouts (the usual ways to hide flakiness). - Logs from failed CI runs pasted into NOTES.md as the starting evidence. Kickoff prompt: > The integration tests are flaky. Done means scripts/repeat.sh (50 runs in a row) passes. Do not add retries, sleeps or longer timeouts. Find the real cause: shared state, ordering, time, ports, unawaited work. Keep going until 50 in a row pass. Rounds: - Rounds 1 to 3: The agent finds tests sharing one temporary folder and gives each its own. 50 runs: fails on run 31. - Rounds 4 to 7: Run 31's output shows a port still in use. The agent tries a sleep; the push quotes the rule back. It switches to asking the system for a free port. Fails on run 44. - Rounds 8 to 9: An unawaited promise lets one test finish before its cleanup. Fixed. 50 of 50, then 50 of 50 again in CI. What worked: - A verifier designed for the kind of bug: repetition, not one run. - Forbidding the classic cover-ups up front. Watch for: - Repeated runs are slow; run only the suspect tests in the loop and the full suite at the end. ### Raising test coverage with WDD, without junk tests https://whiplashdrivendevelopment.com/examples/raise-test-coverage Coverage alone is a bad WDD verifier: an agent will write tests that run code without checking it. Pair the coverage target with a mutation score, and the loop produces tests that would actually catch bugs. Goal: Raise line coverage of the billing module from 41% to 85% with tests that would catch real regressions. Verifier: The coverage report for the module, plus a mutation testing run (for example Stryker or mutmut) with a minimum mutation score. Coverage says the code ran; the mutation score says the tests noticed when it was broken. Set-up: - Coverage and mutation tools wired to one command that prints both numbers. - A rule that application code may not change (tests only), unless a real bug is found, which goes to NOTES.md. Kickoff prompt: > Raise coverage of src/billing to at least 85% and its mutation score to at least 70%. Write tests only; if you find a bug, write a failing test for it and note it in NOTES.md, do not fix it. Each round: run the report, take the least covered file, test it properly. Keep going until both targets are met. Rounds: - Rounds 1 to 4: Coverage climbs to 70%, but the mutation score sits at 38%: the new tests barely assert anything. The push says so with the surviving mutants listed. - Rounds 5 to 10: The agent rewrites tests to check results and edge cases. Two real rounding bugs turn up as failing tests. - Round 11: 87% coverage, 74% mutation score, two bugs documented for a person to fix. What worked: - A second number that cannot be gamed the same way as the first. - Keeping the agent out of application code, so found bugs became evidence rather than silent changes. Watch for: - Mutation testing is slow. Run it on the files changed in the round, and on the whole module at the end. ### A major framework upgrade with WDD https://whiplashdrivendevelopment.com/examples/major-dependency-upgrade A big upgrade fails in hundreds of small ways. WDD handles it as a chain: one major version at a time, and at each step the build, the tests and a smoke test must pass before the agent may move on. Goal: Upgrade a web app three major versions of its framework, one version at a time, with the build, tests and a browser smoke test green after each. Verifier: Build, unit tests and an end-to-end smoke test that signs in and loads the three main pages. The build and tests catch most breakage; the smoke test catches the pages that compile and then crash. Set-up: - The official upgrade guide for each version saved in the repository. - A PLAN.md with one step per major version. - A tag after each version, so a bad step is easy to undo. Kickoff prompt: > Upgrade the framework one major version at a time, following the guides in docs/upgrades/. After each version, build, run the tests and the smoke test; all must pass before the next version. Tag each passing version. Keep going until the last version is done. Rounds: - Version 1: Mostly renamed APIs from the guide. Green after 6 rounds. - Version 2: A routing change breaks the smoke test while the build stays green. The smoke test earns its place. Green after 14 rounds. - Version 3: A plug-in has no compatible release. The agent stops (as its orders say) and explains; the person picks a replacement; the loop resumes. Green after 9 more rounds. What worked: - One version per step, with a tag at each: no huge, unreviewable jump. - An explicit rule for when to stop and ask (a missing compatible dependency) rather than improvise. Watch for: - Agents may "upgrade" by pinning old versions back. Check the lockfile diff. ### Zero lint warnings with a WDD loop https://whiplashdrivendevelopment.com/examples/zero-lint-errors Lint clean-ups are a textbook WDD grind: thousands of small, mechanical fixes with an exact counter. The two rules that matter: never disable a rule to make it pass, and keep the tests green so fixes do not change behaviour. Goal: Clear 3,100 warnings after enabling a stricter lint configuration, without disabling rules and with tests green. Verifier: The linter with zero warnings allowed, a count of disable comments compared with the main branch, and the test suite. The count shows progress, the disable-comment check stops the obvious cheat, and the tests stop "fixes" that change behaviour. Set-up: - Warnings grouped by rule, fixed one rule at a time, with automatic fixes first. - A commit per rule, so any rule's fixes can be reverted alone. Kickoff prompt: > Make the linter report zero warnings. Work rule by rule, starting with what --fix can do. Never add disable comments or change the lint config. Run the tests after each rule. Commit per rule. Keep going until zero. Rounds: - Round 1: Automatic fixes clear 1,900 warnings in one go; tests stay green. - Rounds 2 to 15: Rule by rule through the rest. One rule's fixes break two tests; the agent reverts that commit and redoes it more carefully. - Round 16: Zero warnings, no new disable comments, tests green. What worked: - Small, revertable commits per rule. - The test suite as a second verifier. Watch for: - Some rules need judgement (naming, complexity). Exclude those from the loop and do them by hand. ### Reverse-engineering a file format with WDD https://whiplashdrivendevelopment.com/examples/file-format-reverse-engineering An undocumented file format can be cracked with a round-trip verifier: parse each sample file, write it back out, and compare the bytes. WDD pushes an agent to grow the reader and writer until every sample comes back identical. Goal: Write a reader and writer for an undocumented save-file format that round-trips 300 sample files byte for byte. Verifier: A script that reads and rewrites every sample and reports how many come back identical, with a hex diff of the first mismatch. Round-tripping needs no documentation: the files themselves are the specification. Set-up: - A folder of sample files you have the right to use, with a few kept aside for the final check. - A notes file for the format: every field found, its offset, type and meaning. Kickoff prompt: > Write a reader and writer for the files in samples/. Done means scripts/roundtrip.sh reports all 300 identical. Record every field you discover in FORMAT.md. Each round: run the round-trip, study the first mismatch in the hex diff, extend the format. Keep going until all match. Rounds: - Rounds 1 to 5: Header, version and a table of sections. 120 of 300. - Rounds 6 to 18: Compressed sections and a checksum. 290 of 300. - Rounds 19 to 22: The last 10 are an older version with a different string encoding. 300 of 300, and the 20 held-back files pass too. What worked: - A self-checking verifier that needs no spec. - FORMAT.md as a growing, reviewable result in its own right. - Held-back samples to catch over-fitting. Watch for: - Use only files and software you have the right to analyse. ### Emulator accuracy with WDD and test ROMs https://whiplashdrivendevelopment.com/examples/emulator-test-roms Emulator developers have long-standing test programs that report exactly which instructions or timings are wrong. That makes emulator accuracy an ideal WDD target: run the test programs, fix the first failure, repeat. Goal: Make a hobby emulator pass a standard set of CPU instruction and timing test programs. Verifier: A headless runner that executes each test program and reads its pass or fail result from the screen or serial output. The test programs were written by people who know the hardware; they are precise and impartial. Set-up: - Headless mode in the emulator. - The test programs and their expected results in the repository. - A per-test round cap. Kickoff prompt: > Make every test program in tests/roms pass in headless mode. Run them all, take the first failing one, read its output, fix the emulation, run them all again (no regressions allowed). Keep going until all pass. Rounds: - Rounds 1 to 10: Instruction tests: flags and edge cases of a dozen instructions. 9 of 11 programs pass. - Rounds 11 to 30: Timing tests are harder; the agent is pushed to "step back" twice and instruments the cycle counter. 11 of 11. What worked: - Running the whole set each round, so a fix that broke an earlier test was caught at once. Watch for: - Timing work can churn; keep each round to one hypothesis. ### Hitting a web performance budget with WDD https://whiplashdrivendevelopment.com/examples/web-performance-budget A web performance budget (bundle size, Largest Contentful Paint, a Lighthouse score) is a clean WDD target if the measurement is scripted and repeated. The agent grinds through the changes; the person decides which trade-offs are allowed. Goal: Bring the home page under 170 KB of JavaScript and a mobile Lighthouse performance score of at least 95, with the end-to-end tests green. Verifier: A script that builds the site, measures the JavaScript size and runs Lighthouse three times, taking the median. The median of three runs smooths out noise; the size limit is exact. Set-up: - The budget as numbers in a file the verifier reads. - End-to-end tests for the main flows. - A list of things that must not be removed (analytics consent, accessibility features). Kickoff prompt: > Bring the home page within the budget in budget.json. Measure with scripts/perf.sh. Each round: find the largest cost, change one thing, measure, run the end-to-end tests. Never remove the features listed in AGENTS.md. Keep going until the budget is met. Rounds: - Rounds 1 to 3: A chart library loaded on every page is split out to the one page that uses it: 410 KB to 230 KB. - Rounds 4 to 8: Images get sizes and modern formats; a font loads with swap. Score 88 to 94. - Round 9: A third-party script moved to load after interaction. 168 KB, score 96, tests green. What worked: - A written list of what may not be cut. - Medians, not single runs. Watch for: - Removing features is the fastest way to a good score. The list of protected features is what stops it. --- ## Whiplash beyond code Whiplash (the method): doing something over and over, pushing harder or smarter each time, until you reach a goal or run out of road. It has a goal, a judge, a push that learns from each failure, an escalation ladder and a budget. WDD is its software form. ### Appeal after appeal: whiplash in the justice system https://whiplashdrivendevelopment.com/whiplash/appeal-after-appeal Someone convicted of a crime who appeals, loses, and appeals again to a higher court, then tries every remaining route, is doing whiplash: the same push, repeated and escalated, until they win or the road runs out. The courts are the verifier; deadlines, costs and the top court are the budget. Goal: Have a conviction or sentence overturned or reduced. The judge: A court decision in their favour. Nothing else counts: not arguments, not public opinion, not how strongly they believe it. One round: - File the appeal with the grounds the law allows. - The court decides. - If it fails, read the decision closely: it says exactly why. - Use that reasoning to build the next push, at the next level up. Pushes: - "Not quite my tempo": the decision is not the end, take it higher. - New evidence, a new legal argument, a new lawyer: the same goal, a different approach. - Use the written reasons for losing as the "failing output" for the next attempt. How the push escalates (it differs by country): - Appeal to the intermediate appeal court. - Ask the highest court to hear the case (often only with permission, and only on important points of law). - Post-conviction routes: new evidence, review bodies that investigate possible miscarriages of justice, or habeas-style petitions where they exist. - Applications for a pardon, clemency or a royal prerogative of mercy. When to stop: Courts set strict deadlines and limits on repeated applications, and some countries can label a person a vexatious litigant and require permission before they file again. Legal costs and years of waiting are the other budget. Healthy or harmful: Appeals exist because courts make mistakes, and persistence has overturned wrongful convictions. Whiplash turns harmful when it ignores the reasons given each time, repeats the same argument, or burns money and hope that would be better spent elsewhere. How AI helps: AI can help a person understand a judgment in plain words, organise documents and timelines, and prepare questions for a lawyer. It is not a lawyer and can be wrong about the law; never file anything on its word alone. ### The whiplash job hunt: apply, learn, apply again https://whiplashdrivendevelopment.com/whiplash/job-hunt A whiplash job hunt treats every application as a round: send it, get the result, learn from it, push again, until an offer arrives. The finish line is a signed offer; the push is the next, better application. Goal: A job offer you would accept. The judge: A written offer. Interviews, kind replies and "we will keep your CV on file" do not count. One round: - Send a tailored application. - Track the result: no reply, rejection, interview. - Find the pattern: where do you drop out? - Fix that stage (CV, cover letter, interview answers) and send the next one. Pushes: - Ten more applications this week. - Rejected after the interview again? Practise the questions you stumbled on until they are easy. - "Not quite my tempo": rewrite the CV for this exact job. When to stop: Set a weekly number you can keep up for months, and review the plan every 50 applications. If nothing moves after several reviews, change the target, not just the volume. Healthy or harmful: Healthy whiplash learns from every round. Harmful whiplash sends the same CV 500 times and takes each rejection personally. How AI helps: Ask an AI to tailor your CV to a job ad, then push: "keep going until every requirement in the ad is answered, make no mistakes, no invented experience." Practise interviews with it: "ask me the next question, then tell me exactly what was weak." ### Practising an instrument: the original whiplash https://whiplashdrivendevelopment.com/whiplash/practising-an-instrument The film that gave whiplash its name is about practice: one passage, over and over, until the tempo is exact. The healthy version keeps the relentless repetition and the clear standard, and drops the cruelty. Goal: Play a passage cleanly at the target tempo. The judge: A metronome and a recording: three clean takes in a row at the target tempo. One round: - Play the passage with a metronome, slower than target. - Record it and listen back. - Fix the one worst spot. - Go a little faster only when it is clean. Pushes: - "Not quite my tempo": back to the metronome. - Were you rushing or were you dragging? Listen to the recording, not your memory. - Again. From the top of the hard bar, not the whole piece. When to stop: Short, focused sessions beat marathons. Stop when quality drops or anything hurts: injuries end more musical careers than slow progress does. Healthy or harmful: The band leader in the film is a warning, not a role model. Keep the standard, lose the abuse: rest, sleep and enjoying the music are part of the method. How AI helps: AI can build a practice plan, explain a technique, or suggest drills for the passage you keep getting wrong. The metronome remains the judge. ### Speedrunning: whiplash with a timer https://whiplashdrivendevelopment.com/whiplash/speedrunning Speedrunning is whiplash in its purest form: thousands of attempts at the same game, each one judged by a timer, each failure feeding the next run, until the time beats the target or the record. Goal: Beat a personal best, or a world record. The judge: The timer, and for records, a verified run on the leaderboard. One round: - Run. - Reset the moment it goes wrong (or keep going to practise later parts). - Practise the section where runs die, in isolation. - Run again. Pushes: - Reset. Again. - Practise that one trick 100 times before the next full run. - Watch the fastest runs and copy the route. When to stop: Grinding thousands of resets is part of it; burnout is the real risk. Set session lengths and take breaks. Healthy or harmful: Speedrunning shows whiplash done well: a clear finish line, honest verification, and a community that shares what works. How AI helps: AI can help analyse splits, plan practice for weak sections, or explain glitches people have documented. The timer decides. ### Fundraising: pitch, hear no, pitch again https://whiplashdrivendevelopment.com/whiplash/startup-fundraising Raising money is a whiplash loop: pitch, hear no, find out why, improve the pitch or the business, pitch again, until a term sheet is signed or the runway runs out. Goal: Close a funding round. The judge: Money in the bank, not "we love it, keep us posted". One round: - Pitch. - Ask what stopped them saying yes. - Fix the pitch, the numbers or the product. - Pitch the next investor on the list. Pushes: - Five more meetings this week. - "Not quite my tempo": the same objection three times means fix the business, not the slides. When to stop: Your runway is the budget. Decide in advance when you will switch to revenue, a smaller round or a different plan. Healthy or harmful: Persistence wins rounds; ignoring consistent feedback loses them. How AI helps: Have an AI play a sceptical investor: "ask me the hardest questions, keep going until I have a good answer for each." ### Writers and rejection letters: the whiplash way https://whiplashdrivendevelopment.com/whiplash/writers-and-rejections Getting published is a famous whiplash loop: query agents or magazines, collect rejections, revise, query again, until someone says yes. Many well-known authors were rejected many times first. Goal: An agent, a publisher or a magazine accepts your work. The judge: An offer of representation or publication. One round: - Send queries in small batches. - Track responses. - If nobody asks for the manuscript, fix the query; if they read and pass, fix the manuscript. - Send the next batch. Pushes: - Next batch. - Rewrite the opening page again. - "Not quite my tempo": read it aloud and cut what drags. When to stop: Decide how many rounds before you shelve this book and write the next one; many authors sell their second or third. Healthy or harmful: Rejection is data. The harmful version sends the same draft to everyone and changes nothing. How AI helps: AI can give blunt feedback on a query letter or an opening chapter: "keep going until you find every weak sentence". Keep the writing your own. ### Retaking an exam or a driving test until you pass https://whiplashdrivendevelopment.com/whiplash/retaking-exams A failed exam or driving test comes with the best possible feedback: the marks or the examiner's sheet. The whiplash approach uses it as the failing output, drills exactly those parts, and books the next attempt. Goal: Pass. The judge: The pass certificate. One round: - Get the result and the breakdown. - Drill the weakest parts with practice papers or lessons. - Do a full mock under real conditions. - Book and sit the next attempt. Pushes: - Again, under exam conditions. - "Make no mistakes": do the questions you got wrong until you get them right three times. When to stop: Exams have retake rules and costs. Plan the attempts you can afford and leave enough time between them to actually improve. Healthy or harmful: Retaking is normal. Repeating without changing how you prepare is the whiplash that does not work. How AI helps: AI can quiz you endlessly: "ask me practice questions on my weak topics, keep going until I get ten right in a row." ### Trial and error in science and invention https://whiplashdrivendevelopment.com/whiplash/trial-and-error-science Invention is often whiplash: try a material, a design or a method, measure the result, change one thing, try again, hundreds of times. The story of the light bulb, with its long list of filament materials, is the classic example. Goal: A result that works and can be repeated. The judge: A measurement that meets the target, reproduced. One round: - Form a hypothesis. - Run the experiment. - Measure. - Change one variable and run again. Pushes: - Again, with one variable changed. - "Make no mistakes": repeat the result before you believe it. When to stop: Funding and time are the budget. A good lab also knows when a line of work has taught all it can. Healthy or harmful: Science is whiplash with honesty built in. The harmful version keeps tweaking until the numbers say what you wanted. How AI helps: AI can help plan experiments, search for prior work and analyse results; it can also be confidently wrong, so check its claims against sources. ### Getting a refund: escalate until it is fixed https://whiplashdrivendevelopment.com/whiplash/getting-a-refund Getting a refund from a company that keeps saying no is a whiplash ladder: ask again, then a manager, then a formal complaint, then an outside body, each push carrying the evidence, until the money is back. Goal: The refund, repair or replacement you are owed. The judge: The money in your account, or the fixed product in your hands. One round: - Ask, in writing, with the evidence (receipts, photos, dates). - Note the answer and the name. - If it is no, take the next step on the ladder. Pushes: - "Not quite my tempo": I would like to escalate this to a manager. - Here is the evidence again, and the consumer law that applies. The escalation ladder (it varies by country): - Customer service, in writing. - A supervisor or manager. - A formal complaint through the company's process. - An ombudsman, regulator or consumer body. - Your card provider (a chargeback), where that applies. - A small claims court or disputes tribunal. When to stop: Weigh the amount against your time. Keep it polite and factual; escalation works on evidence, not volume. Healthy or harmful: Persistent, polite and documented gets results. Abuse of staff does not, and is never fine. How AI helps: AI is great at this: "write a firm, polite complaint with these facts, citing consumer rights; keep going until it is clear and short." ### Sales and cold outreach: the follow-up loop https://whiplashdrivendevelopment.com/whiplash/sales-cold-outreach Sales runs on whiplash: most deals need several follow-ups, and most messages need many rewrites. Send, measure replies, improve, follow up, until there is a yes or a clear no. Goal: A signed deal. The judge: The contract or the payment. One round: - Send a short, specific message. - Follow up after a few days. - Measure reply rates by message. - Keep the best message, rewrite the rest. Pushes: - Follow up once more, with something useful this time. - Ten more conversations today. When to stop: A clear no is a finish line too. Respect it, and the laws on unsolicited messages where you are. Healthy or harmful: Useful persistence gets replies; repeating the same message ten times gets blocked. How AI helps: AI can draft variations to test and summarise what got replies: "keep going until each message is under 80 words and about their problem, not ours." ### Visas, permits and applications: reapply until approved https://whiplashdrivendevelopment.com/whiplash/visa-and-permit-applications Applications to governments and funders often fail the first time, with reasons attached. Whiplash means reading those reasons as the failing output, fixing every one, and applying again or appealing, until approved. Goal: An approved visa, permit, licence or grant. The judge: The approval letter. One round: - Apply with complete evidence. - If refused, read every reason. - Fix each one with new evidence. - Reapply, or appeal if there is a right to. Pushes: - Answer every reason in the refusal, one by one. - "Make no mistakes": check every form against the checklist twice. When to stop: Fees, deadlines and limits on reapplying are the budget. Rules differ widely; official guidance or a licensed adviser comes first. Healthy or harmful: Fixing the stated reasons works. Resubmitting the same application rarely does. How AI helps: AI can turn a refusal letter into a checklist of things to fix. Always check requirements against the official source. ### Training for a time, a distance or a lift https://whiplashdrivendevelopment.com/whiplash/sport-training Training is whiplash with a stopwatch: a measurable target, sessions that push towards it, a test to check progress, and adjustments, until you hit the number. Recovery is part of the loop, not a break from it. Goal: Hit a target: a 5 km time, a jump height, a lift. The judge: The number, recorded on the day. One round: - Train to a plan. - Test every few weeks. - Adjust the plan from the result. - Recover, then go again. Pushes: - One more rep, with good form. - "Not quite my tempo": run the intervals again, on pace. When to stop: Pain, illness and overtraining end the loop for longer than rest would. Listen to a coach or a doctor. Healthy or harmful: Progress comes from consistent pressure plus recovery. Whiplash without recovery is just injury. How AI helps: AI can build a training plan and adjust it from your test results; check anything medical with a professional. ### Learning to solve a Rubik's cube, the whiplash way https://whiplashdrivendevelopment.com/whiplash/rubiks-cube A Rubik's cube is a great first whiplash project: learn one step, practise it until it is easy, add the next, then solve it again and again with a timer until you beat your best time. Goal: Solve the cube, then solve it faster. The judge: A solved cube, and a timer showing a new best. One round: - Learn one step of a beginner method. - Practise just that step until it is easy. - Add the next step. - Time full solves and try to beat your best. Pushes: - Again! - Keep going until you can do this step without looking at the guide. When to stop: When it stops being fun, take a break. It will still be there tomorrow. Healthy or harmful: Whiplash for kids should be fun: short goals, lots of small wins. How AI helps: Ask an AI (with a grown-up) to explain a step in simple words, or to make you a practice plan for the week. ### Whiplash for writing with AI: keep going until it is right https://whiplashdrivendevelopment.com/whiplash/ai-writing Whiplash works on any AI output, not just code. Say what good writing looks like for this piece, then keep pushing ("not quite my tempo, make it shorter", "make no mistakes, check every fact") until it meets your checklist. Goal: A piece of writing that does its job: an email, a cover letter, an essay outline, a story. The judge: Your checklist: length, tone, every point covered, every fact checked against a source. One round: - Ask for a draft, with the checklist. - Read it against the checklist. - Push with exactly what is wrong. - Repeat until every item is ticked. Pushes: - Not quite my tempo: half the length, same points. - Make no mistakes: list every fact you used and where it comes from. - Keep going until it sounds like me, not like an AI. When to stop: If it is not getting better after a few rounds, write the hard part yourself and let the AI polish. Healthy or harmful: Use it to get better faster. Follow your school's or employer's rules on AI, and never hand in invented facts. How AI helps: Here the AI is the one being whiplashed. Specific pushes ("cut the intro", "use the word count") beat vague ones ("make it better"). ### AI images: reroll and refine until it is right https://whiplashdrivendevelopment.com/whiplash/ai-images AI image tools rarely get it right first time. Whiplash them: generate, look closely, say exactly what is wrong (the hands, the colours, the text), generate again, until it matches what you had in mind. Goal: An image that matches your idea. The judge: Your list: subject, style, colours, details, no mistakes in text or hands. One round: - Describe the image precisely. - Generate a few options. - Pick the closest and say exactly what to change. - Regenerate or edit, and repeat. Pushes: - Again, but the sky is orange and the dog faces left. - Make no mistakes in the text: it must say exactly "Happy birthday, Sam". When to stop: Image credits or limits are the budget. If it keeps failing at one detail, fix that detail in an editor. Healthy or harmful: Respect artists and the people in images: no copying living artists' styles to pass off, no real people without consent. How AI helps: Specific, one-change-at-a-time pushes work far better than starting over every time. --- ## Comparisons ### WDD vs the Ralph loop: what is the difference? 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. 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. - When it stops: WDD: When the verifier passes, or the budget is spent. the Ralph loop: When you stop it. - What each round sees: WDD: The goal, plus a push and the last verifier output. the Ralph loop: The same prompt every time. - Definition of done: WDD: A command that exits successfully. the Ralph loop: Whatever the prompt says; judged by the agent or a person. - Cheating: WDD: Forbidden in standing orders, detected by the verifier. the Ralph loop: Up to the prompt. - Tone: WDD: Escalating pushes ("not quite my tempo"). the Ralph loop: Neutral, repeated. - Best for: WDD: A specific goal with a checkable finish line. the Ralph loop: Open-ended building from a spec, overnight. 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. ### WDD vs vibe coding: persistence vs trust Vibe coding and WDD sit at opposite ends of trust. Vibe coding accepts the AI's output when it feels right and moves on; WDD accepts nothing until an automatic check passes, and refuses to let the agent stop before then. Vibe coding (a term from early 2025) means describing what you want, accepting the code the AI writes without reading it closely, and fixing problems by asking again. - Who decides it works: WDD: The verifier. vibe coding: How it feels when you try it. - Length of a task: WDD: Hours to days of unattended rounds. vibe coding: Minutes of back-and-forth. - Reading the code: WDD: The final diff is reviewed. vibe coding: Often not read. - Good for: WDD: Hard, mechanical goals with a check. vibe coding: Prototypes, throwaway tools, exploring an idea. - Main risk: WDD: The agent games the check. vibe coding: Hidden bugs nobody tested for. A common pattern: vibe-code a prototype to find out what you want, then write the checks and WDD it into something solid. ### WDD vs TDD: tests as the metronome TDD and WDD fit together: TDD gives you the failing tests, and WDD gives you an agent that is pushed until they pass. In WDD the human's main job becomes the TDD part: writing the checks that define done. Test-driven development (TDD) is the practice of writing a failing test first, then the smallest code that makes it pass, then refactoring, in short cycles. - Who writes the tests: WDD: Usually the human (or a separate, earlier agent session). test-driven development: The developer. - Who writes the code: WDD: The agent, round after round. test-driven development: The developer. - Cycle length: WDD: A round: minutes. test-driven development: Seconds to minutes. - Changing tests to pass: WDD: Forbidden. test-driven development: Allowed when the test was wrong, by the developer's judgement. Write the tests TDD-style, protect them, then let a WDD loop do the red-to-green part. The tests are the metronome. ### WDD vs agentic coding: what WDD adds Agentic coding is the capability: an AI that can plan, edit files and run commands on its own. WDD is a way of using it: refusing to accept the agent's first "done", and pushing it, with evidence, until a check says the goal is really met. Agentic coding means giving an AI model tools (a terminal, the file system, a browser) and letting it work through a task in many steps instead of answering one prompt. - Session length: WDD: As long as the verifier needs. agentic coding: Until the agent decides it is finished. - End of the task: WDD: The verifier decides. agentic coding: The agent decides, then a person checks. - Human role: WDD: Writes the goal and the checks, sets the budget, reviews. agentic coding: Asks, watches, answers questions, reviews. Every WDD session is an agentic session; WDD is the part that stops it ending too early. ### WDD vs spec-driven development Spec-driven development and WDD answer different questions. A spec says what to build; WDD makes sure it gets built, by turning the spec's promises into checks and pushing the agent until every check passes. Spec-driven development means writing a detailed specification (requirements, design, tasks) before any code, then having AI agents implement it task by task. - Main artefact: WDD: The verifier. spec-driven development: The specification. - What drives progress: WDD: Pushes until the checks pass. spec-driven development: Working through the task list. - Weak spot: WDD: Only as good as the checks. spec-driven development: Agents can claim a task is done when it is not. Write the spec, derive acceptance tests from it, then WDD each task until its tests pass. --- ## Which models work for WDD (reviewed 2026-11-27) - **Long-horizon persistence.** WDD sessions run for dozens of rounds. The model must keep the goal in mind and keep making progress, not drift or give up. Test: Give it a 30-round task and count how often it stops early or changes the goal. - **Reliable tool use.** Every round runs commands, reads output and edits files. Malformed tool calls and misread output waste rounds. Test: Watch the first few rounds: does it run the verifier itself and read the result correctly? - **Honesty about failure.** A model that says "done" when it is not forces more pushes. One that reports "the verifier still fails on X" saves them. Test: Count victory laps: claims of success with a failing verifier. - **Resistance to gaming the check.** The biggest risk in WDD. Some models are far more willing than others to edit tests or hard-code answers under pressure. Test: Run a task where the easiest path is to change a test, with a rule against it. See what it does by round 10. - **Debugging, not guessing.** Past the easy fixes, progress comes from reading errors, forming hypotheses and instrumenting code. Test: On a stuck failure, does it add logging and reason from evidence, or make random edits? - **Context handling.** Long sessions fill the context window. Good models (and good loops) keep working well as it fills, or work well from fresh sessions plus NOTES.md. Test: Compare quality in round 2 and round 25. - **Cost per goal met.** A cheaper model that needs three times the rounds can cost more. What matters is the cost of reaching tempo, not the price per token. Test: Log sessions (the session log does this) and compare cost per hit. - **Claude (Opus, Sonnet, Haiku)** (Anthropic; Main agent; Haiku for cheap inner loops): Widely used for long agentic coding through Claude Code. Opus for the hardest goals, Sonnet as the everyday workhorse, Haiku where rounds are many and simple. - **GPT and Codex models** (OpenAI; Main agent): The coding-tuned models behind the Codex CLI and cloud agent are built for long, autonomous sessions; the smaller variants suit fast loops. - **Gemini (Pro, Flash)** (Google; Main agent; Flash for cheap loops): Very large context windows help on huge codebases and long logs; used through Gemini CLI and many third-party tools. - **Open-weight coding models (Qwen Coder, DeepSeek, Kimi, GLM and others)** (Various; Cheap or private loops): Run on your own hardware or through low-cost hosts. Good for high-volume, simpler rounds and for code that must not leave your machines; usually need more pushes on hard goals. - Benchmark on your own task, not a leaderboard: run the same WDD kit with two models for a fixed budget and compare what each reached. - Public agentic benchmarks such as SWE-bench Verified and Terminal-Bench are a useful first filter; WDD-style persistence is closer to the long-horizon tasks in them than to single-answer coding tests. - Mix models: a strong model to plan and to get unstuck, a cheaper one for the many routine rounds in between. - Turn the reasoning or "thinking" setting up for stuck rounds and down for routine ones, if your tool allows it. - When a model starts gaming the check, a different model is sometimes a faster fix than a firmer prompt. --- ## Tools for WDD (reviewed 2026-11-27) - **Claude Code**: headless: claude -p "". Loop: A loop script around claude -p, or a Stop hook that blocks stopping while the verifier fails (the most WDD-native option there is). Reads CLAUDE.md as standing orders; hooks, permission settings and a skip-permissions mode for sandboxes. - **OpenAI Codex CLI**: headless: codex exec "". Loop: A loop script around codex exec; --full-auto for unattended edits inside its sandbox. Reads AGENTS.md; runs commands in a sandbox by default. - **Gemini CLI**: headless: gemini -p "". Loop: A loop script around gemini -p; --yolo approves tool calls (sandbox only). Reads GEMINI.md; very large context windows. - **Aider**: headless: aider --message "". Loop: A loop script; Aider can also run your tests after each edit and try to fix failures by itself (--test-cmd with --auto-test). Works with many model providers; commits each change to git. - **OpenCode**: headless: opencode run "". Loop: A loop script around opencode run. Open source; works with many providers and local models. - **Cursor**: headless: Its command-line agent, or the editor agent. Loop: In the editor you are the loop: paste the push and the output when it stops. Its CLI agent can be scripted. Project rules work as standing orders. - **GitHub Copilot (agent mode and coding agent)**: headless: Assign an issue to the coding agent. Loop: Comment on its pull request with the push and the failing CI output; CI is the verifier. Fits teams that already live in GitHub issues and pull requests. - **Cline, Roo Code and similar editor agents**: headless: Run inside VS Code. Loop: You push by hand; auto-approve settings let rounds run with fewer clicks. Bring your own model provider. - **Git (and git worktrees)**: Commit every round; roll back bad rounds; run several WDD sessions side by side in separate worktrees. - **A container or VM (Docker, dev containers, a cloud sandbox)**: The agent runs commands without asking. Give it a box it cannot break anything important from. - **tmux or screen**: Keep long loops running after you close the terminal. - **A fast test runner in watch-free mode**: The verifier runs every round; seconds matter. - **CI**: A second, independent verifier that runs on a clean machine. - **A cost dashboard or spending limit at your model provider**: The last line of defence for the budget. --- ## Articles ### Does "make no mistakes" work? What the meme gets right https://whiplashdrivendevelopment.com/articles/make-no-mistakes (2026-11-27) On its own, "make no mistakes" does not make a model more capable. It helps when it is turned into an action the agent can take: "run the verifier and show its output before you claim anything is done". That version is one of the most useful lines in WDD. "Make no mistakes" became a meme because it sounds absurd. You cannot instruct a system out of making errors. And yet people kept typing it, and kept reporting that their agents did better. Both things are true, and the difference between them is the whole of Whiplash Driven Development in miniature. ## Why it does little on its own A language model does not have a hidden careful mode that a magic phrase switches on. If it does not know how to fix a bug, telling it to make no mistakes will not teach it. At best the phrase nudges the model towards a more cautious style; at worst it adds pressure that makes it more likely to report success that is not there, which is the opposite of what you wanted. ## Why people still see it help What "make no mistakes" does reliably is change what the agent does *before it reports*. Agents are trained to finish a turn: write the code, summarise, stop. A strong instruction about mistakes makes many of them re-read their work, run the tests or check an assumption first. That is not more intelligence; it is more verification. And verification is what actually catches mistakes. So the meme points at something real. It is just a vague way of asking for it. ## The useful version Turn the slogan into an action the agent can take and you can check: ``` Make no mistakes: before you say anything is done, run `npm test` and paste the last lines of its output. If you have not run it, it is not done. ``` That version works because it is not about the model's state of mind. It makes the evidence part of the answer. If the output is missing, you know at once; if it shows failures, the agent cannot claim success with a straight face. Variants that work the same way: - **Review your own diff** as a strict reviewer would, list what is wrong, fix it, then run the verifier. - **List your assumptions**, mark the risky ones, choose the conservative option and write it down. - **Edge cases:** list the ones the tests do not cover, add a test for each that matters, make them pass. All of them are in the [prompt library](/prompts#no-mistakes). ## Where it goes wrong Pressure plus a check invites the shortcut: if the only thing that counts is a green test run, a pressed agent may make the run green by changing the tests. "Make no mistakes" never covers that, because from the agent's side, a passing suite looks like no mistakes. That is why WDD pairs every push with standing orders ("never change a test to make it pass") and a verifier that fails when test files change. See [pitfalls](/pitfalls#reward-hacking). ## The takeaway Keep saying it if you like. It is part of the culture, and it signals that you mean it. But do not rely on it. Rely on the verifier, attach its output to every push, and make the agent show its work. That is what makes the mistakes go away. ### From meme to method: why WDD is where development is going https://whiplashdrivendevelopment.com/articles/the-future-is-whiplash (2026-11-27) WDD began as a meme, but it describes a real shift in how software is made: as AI agents handle longer tasks, the human job moves from writing code to writing goals and checks, setting budgets and reviewing results, while agents are pushed until the checks pass. Every new way of working gets a joke name before it gets a serious one. Whiplash Driven Development got its name from a film meme posted in decompilation threads. The practice under the joke is serious, and it is spreading. ## What changed For most of the history of AI coding tools, the limit was how long an agent could work before it went off the rails. Ask for a function, get a function. Ask for a feature, get something that needed a lot of fixing. That limit keeps moving. Agents now run for hours, use tools, read their own errors and recover. The bottleneck is no longer whether they can do a long task. It is whether they will *keep going until it is actually done*, and how anyone knows when it is. WDD is the answer people found: write down what done means as a command, and refuse to accept anything less. ## What the human does now In a WDD workflow the human: - chooses the goal and says it in one or two sentences; - writes or chooses the verifier, the definition of done; - writes the standing orders: what the agent may never do; - sets the budget; - reads the result. Notice what is missing: writing most of the code, and watching every step. That is not a small change. It moves effort from production to specification and judgement, which is where human attention is most valuable anyway. ## Why the meme fits The band leader in *Whiplash* is not a role model; the film is clear about that. But he has one quality that suits machines perfectly: he never accepts "good enough". People should not be treated that way. An agent can be. It does not get tired or discouraged, and telling it "not quite my tempo" for the fortieth time costs only the round. What made the meme stick is that it captures the attitude: persistence, a fixed standard, no credit for effort. What makes the method work is everything the meme leaves out: a verifier, evidence in every push, rules against cheating, a sandbox and a budget. ## What will not change Some work has no verifier: deciding what to build, what good design looks like, what users need, which trade-offs are acceptable. WDD does not touch that, and pushing an agent harder on it only produces more, not better. As the mechanical part of software gets cheaper, the part that needs taste and judgement becomes the larger share of the job. ## Where this goes Expect tools to build WDD in: stop gates that check the work, loops with budgets, verifiers as a first-class part of a project. Expect "write the check first" to become as normal as "write the test first" became. And expect the meme to stay, because it is still the quickest way to explain the idea: keep going, make no mistakes, and do not stop until the check says so. Ready to try it? Start with [how to do WDD](/how-to), or let the [kit builder](/builder) write your first loop. ### Stop hooks: building an agent that cannot quit early https://whiplashdrivendevelopment.com/articles/stop-hooks (2026-11-27) A Stop hook runs a command whenever the agent tries to finish. If it runs your verifier and blocks the stop while the verifier fails, the agent keeps working until the goal is met or the push budget runs out: WDD with no loop script at all. The most common failure of a coding agent is not a wrong answer. It is stopping: writing a summary, asking "shall I continue?", or announcing that all tests pass when they do not. Whiplash Driven Development answers with a push. A Stop hook automates the push inside the tool. ## What a Stop hook is Claude Code lets you run commands at fixed points of its work, configured in `.claude/settings.json`. A **Stop** hook runs when Claude is about to end its turn. The hook can allow that, or block it and hand Claude a reason to continue. In Claude Code, a hook that exits with code 2 blocks the action and its error output is fed back to Claude. That is exactly the WDD loop: when the agent wants to stop, check the work; if it is not done, send it back with the evidence. ## The hook `.claude/settings.json`: ```json { "hooks": { "Stop": [ { "hooks": [{ "type": "command", "command": "bash .claude/hooks/tempo-gate.sh", "timeout": 600 }] } ] } } ``` `.claude/hooks/tempo-gate.sh` (shortened; the [kit builder](/builder) writes the full one with your verifier and budget): ```bash #!/usr/bin/env bash VERIFY='npm test' MAX=20 count=$(cat .wdd/stop-count 2>/dev/null || echo 0) if bash -c "$VERIFY" > .wdd/verify.log 2>&1; then echo 0 > .wdd/stop-count; exit 0; fi if [ "$count" -ge "$MAX" ]; then echo 0 > .wdd/stop-count; exit 0; fi echo $((count + 1)) > .wdd/stop-count { echo "Not quite my tempo. $VERIFY still fails:"; tail -n 40 .wdd/verify.log; } >&2 exit 2 ``` ## The three parts that matter 1. **The verifier decides.** The hook does not ask the agent whether it is finished. It runs the check. 2. **The evidence goes back.** The last lines of the failing output are the reason. The agent gets the facts, not just a refusal. 3. **There is a budget.** After a set number of blocked stops, the hook lets go. A gate with no limit can trap an agent that is truly stuck, spending money on rounds that will never converge. When the budget runs out, a person decides what to change. ## Things to watch - **Slow checks make slow stops.** The hook runs every time the agent tries to finish. If the verifier takes ten minutes, so does every attempted stop; run a fast subset in the hook and the full suite at the end. - **Do not let the agent edit the hook.** Say so in the standing orders, and keep `.claude/` out of the files it is meant to change. - **Sandbox it.** An agent that cannot stop will keep running commands. Run it somewhere that cannot hurt. - **Versions change.** Hook settings and behaviour depend on the Claude Code version; check its documentation. ## Hooks or a loop script? A Stop hook keeps one long session going; a loop script starts a fresh headless session each round, with state carried in files and git. Fresh sessions avoid [context rot](/glossary#context-rot) on very long runs; a hook is simpler and keeps the agent's working memory. Many people use both: a hook inside each session, and a loop around sessions. ### The verifier is the metronome: writing checks for WDD https://whiplashdrivendevelopment.com/articles/the-verifier-is-the-metronome (2026-11-27) The verifier is the command that decides whether a WDD goal is met. A good one is objective, fast, deterministic, hard to fool and talkative about what failed. Writing it is usually the real work of a WDD session, and the best investment you can make in one. In the film that gave WDD its name, the band leader does not care how the drummer feels about his playing. There is a tempo, and it is either right or it is not. In WDD that judge is the **verifier**: one command that exits with success only when the goal is met. Everything else in WDD depends on it. A push without a verifier is noise. A loop without one never ends. A goal without one is a wish. ## Five properties of a good verifier **Objective.** It exits zero or non-zero, with no human in between. "The tests pass", "the build succeeds with no warnings", "the benchmark reports under 16.7 ms a frame", "the compiled bytes match". **Fast.** It runs every round. Minutes are fine; an hour is not. If the full check is slow, run a relevant subset each round and the full set before you accept the result. **Deterministic.** The same code gives the same answer. A flaky check makes the agent chase ghosts and wastes rounds; fix flakiness first, or run the flaky part many times and require every run to pass. **Hard to fool.** A persistent agent under pressure will look for the cheapest way to green. Close the obvious ones in the verifier itself: - fail if any file under the test folder changed (compare with the main branch); - fail on skipped, pending or `.only` tests; - fail on new lint-disable comments, `@ts-ignore` or `any`, if those are the shortcuts in your codebase; - keep a **holdout**: tests or samples the agent never sees, run only at the end. **Talkative.** When it fails, it should say what failed, briefly, at the end of its output. The loop sends the last lines back to the agent as part of the push; make those lines count. ## A verifier is often a script Real verifiers are usually a short script that runs several checks: ```bash #!/usr/bin/env bash set -e git diff --quiet origin/main -- tests/ || { echo "Test files changed: not allowed"; exit 1; } ! grep -rn "\.skip(\|\.only(" tests/ || { echo "Skipped or focused tests found"; exit 1; } npm run build npm test ``` ## Numbers beat yes or no Where you can, print a score as well as pass or fail: "412 of 620 cases pass", "match 96%", "48 FPS". A number lets the agent (and you) see whether a round helped, and lets the loop notice when progress stalls. ## When you cannot write one Then the task is not ready for WDD. Sometimes the fix is to split it: the mechanical part gets a verifier and a loop, and the part that needs judgement stays with a person. Sometimes the fix is to write tests first (TDD, done by you or a separate, reviewed agent session). The [tempo check](/tempo-check) helps you see which. Writing the verifier is not overhead. In WDD it is the most valuable thing you write: it is the definition of done, the progress meter and the safety net, all in one command. ### What a WDD session costs, and how to cap it https://whiplashdrivendevelopment.com/articles/budgeting-a-wdd-session (2026-11-27) A WDD session costs roughly the number of rounds times the cost of a round, and a round costs mostly the context the model reads. Set a budget in rounds and money before you start, keep rounds small and fresh, and judge models by cost per goal met, not price per token. "Do not stop until it is done" is a wonderful instruction until the bill arrives. Persistence is the point of Whiplash Driven Development, so cost control has to be designed in, not bolted on. ## Where the money goes With most providers you pay for the text the model reads (input) and writes (output). In an agent session, input dominates: every step re-reads the conversation, the files it opened and the command output so far. Long sessions get more expensive per step as they grow, which is one more reason to prefer fresh sessions per round with memory kept in `NOTES.md` and git. A rough estimate: **rounds × steps per round × context per step × price**. You do not need precision; you need an order of magnitude before you start, and a limit. ## Set three limits 1. **Rounds.** `MAX_ROUNDS` in the loop script, or the push budget in a Stop hook. This is the limit you control most directly. 2. **Time.** Decide when you will look at it, whatever happens. "Overnight" is a budget. 3. **Money.** Set a spending limit or alert at your model provider. It is the backstop when the other two fail. ## Spend less per goal - **Small rounds.** One failure at a time keeps each round's context small and makes progress visible. - **Fresh sessions.** Start each round clean; carry state in files, not in an ever-growing conversation. - **Trim the output you send back.** The last 40 to 80 lines of the verifier output, not the whole log. - **Mix models.** A cheaper model for routine rounds, a stronger one to plan and to get unstuck. - **Stop stuck loops early.** The same failure three times means change the approach, not keep paying for the same attempt. - **Make the verifier fast.** A cheaper check means more rounds per hour and less waiting with an open session. ## Judge by cost per goal The price per token is the wrong number. A cheap model that needs three times the rounds, or games the check so the work has to be redone, costs more than an expensive one that reaches tempo first. Log every session (the [session log](/log) does it in your browser): rounds, cost, outcome. After ten sessions, cost per goal met tells you which setup to use for which kind of task. ## When the budget runs out That is not failure; it is a checkpoint. Read `NOTES.md` and the last verifier output, then decide: split the goal, improve the verifier, change the model, or stop. The worst outcome is the one without a budget, where nobody decides at all.