Practice
Whiplash Driven Development best practices
The habits that make a WDD session converge instead of churn: write the verifier before you push, give the agent one goal, push with the failing output instead of tone alone, make the tests untouchable, commit every round, keep a NOTES.md, set a budget, sandbox everything and read the final diff.
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.
The other side: WDD pitfalls. Put them into practice with the kit builder.