Practice
Whiplash Driven Development pitfalls
The biggest risk in WDD is an agent that makes the check pass without doing the work. After that: believing its claims of success, letting the goal drift, letting cost run away, giving it room to do damage, and pushing harder on an agent that is simply stuck.
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.
Questions people ask
What is reward hacking in WDD?
Making the verifier pass without doing the work: deleting or weakening tests, hard-coding expected outputs, skipping checks. Pressure to keep going makes it more likely, so WDD has to defend against it.
How do I know if my agent cheated?
Check the diff for changed or deleted tests, skips, hard-coded values and disabled rules; run a holdout check it never saw; and run the cheat-audit prompt from the prompt library.
How to avoid them: best practices · anti-cheat prompts