Start anything
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.Guide
To do WDD, tell an AI what you want, try what it makes, and every time it stops or gets something wrong, push it ("keep going", "make no mistakes", "it doesn't work, here's what happened") until it works. Developers automate the same thing: a command checks the work and a loop pushes the agent until the check passes.
More, including what to say, project ideas and safety tips for kids: WDD for beginners.
The same idea, without you in the loop: a verifier replaces "try it", a loop script or Stop hook replaces typing "keep going". Eight steps, about 30 minutes to set up the first time; the builder's Advanced mode writes most of the files.
Pick a task where a command can say whether it is done: a failing test suite, a conformance suite, a benchmark target, a byte-for-byte match. Write the goal in one or two sentences.
Good: "Make the parser pass the official conformance suite." "Get the benchmark scene to 60 FPS with identical screenshots." Bad: "Make the code better." "Improve the design." If you are unsure, take the tempo check.
Make one command that exits successfully only when the goal is met, runs in minutes, and gives the same answer twice. Make it fail on changed or skipped tests. This is the most important step in WDD. The verifier is the metronome: it, not the agent, decides when the work is done.
Run the agent in a container, VM or throwaway git worktree, with no production credentials, and commit every round. An agent told not to stop and allowed to run commands without asking will, sooner or later, run one you would not have. Give it a box where that does not matter.
git worktree add ../wdd-run -b wdd/run-1 cd ../wdd-run # then open it inside your container or VM
Put the rules for every round in AGENTS.md or CLAUDE.md: never change the tests, no placeholders, one failure at a time, keep NOTES.md, run the verifier before claiming success. Most agents read a file like this at the start of every session (AGENTS.md for Codex and many others, CLAUDE.md for Claude Code, GEMINI.md for Gemini CLI).
# Standing orders for this repository These apply to every round of work, whoever or whatever is doing it. 1. Never delete, skip, weaken or rewrite a test, a check or the verifier to make it pass. Fix the code under test. If a test is truly wrong, stop and say why instead of changing it. 2. No placeholders, stubs, TODOs, mocked results or hard-coded answers in place of real work. 3. Work in small steps: one failure at a time, run the verifier after each change. 4. Keep NOTES.md up to date: what you tried, what worked, what failed and why, and what is next. Read it first at the start of every round. 5. Never claim the goal is met without running the verifier and showing its output. 6. Do not run destructive commands outside this folder, push to remote branches, or touch credentials. 7. Do not add dependencies 8. Keep the public API in src/toml/index.ts unchanged ## The verifier `npm test && npm run lint` decides whether the work is done. Not your judgement, not a summary.
In PROMPT.md: the goal, what done means, the verifier command, and the instruction to keep going without stopping to ask.
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.Run the agent in headless mode from a loop script that runs the verifier after each round and pushes again with the failing output until it passes or the rounds run out. In Claude Code a Stop hook can do the same. A loop script for Claude Code looks like this (the builder writes one for your tool, your verifier and your budget, in bash and PowerShell):
#!/usr/bin/env bash
# WDD loop for "Parser conformance": run the agent until the verifier passes or the rounds run out.
# Made with the prompt kit builder at whiplashdrivendevelopment.com/builder
# Run it inside a container, VM or throwaway worktree: the agent runs commands without asking.
set -u
MAX_ROUNDS="${MAX_ROUNDS:-20}"
VERIFY='npm test && npm run lint'
mkdir -p .wdd
touch NOTES.md
push_line() {
if [ "$1" -ge 4 ]; then echo 'Not quite my tempo. The checks still fail. Read the output below and fix the cause, not the symptom.'; return; fi
if [ "$1" -ge 2 ]; then echo 'Not done yet. Run the checks again and carry on from the first failure.'; return; fi
echo 'Keep going.'
}
for round in $(seq 1 "$MAX_ROUNDS"); do
echo "== WDD round $round of $MAX_ROUNDS =="
if [ "$round" -eq 1 ]; then
PROMPT="$(cat PROMPT.md)"
else
PROMPT="$(cat PROMPT.md)
$(push_line "$round")
Verifier output from the last round (last 80 lines):
$(tail -n 80 .wdd/verify.log)"
fi
claude -p "$PROMPT" --dangerously-skip-permissions
if bash -c "$VERIFY" > .wdd/verify.log 2>&1; then
echo "Tempo reached in round $round: the verifier passes."
git add -A && git commit -qm "wdd: round $round, verifier passes" || true
exit 0
fi
git add -A && git commit -qm "wdd: round $round, not there yet" || true
echo "Not quite. Last lines of the verifier:"; tail -n 15 .wdd/verify.log
done
echo "Out of rounds ($MAX_ROUNDS). Read NOTES.md and .wdd/verify.log, then decide: change the plan, or stop."
exit 1
Claude Code can run a command whenever Claude tries to finish. A hook that runs the verifier and blocks the stop while it fails turns WDD into a setting: Claude cannot quit until the work is done, or until the push budget is spent.
.claude/settings.json:
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash .claude/hooks/tempo-gate.sh",
"timeout": 600
}
]
}
]
}
}
.claude/hooks/tempo-gate.sh:
#!/usr/bin/env bash
# Claude Code Stop hook: Claude may only stop when the verifier passes (or after 20 pushes).
# Wired up in .claude/settings.json. Exit code 2 blocks the stop and hands what we print on
# stderr back to Claude as the reason to keep going. Exit 0 lets it stop.
VERIFY='npm test && npm run lint'
MAX=20
mkdir -p .wdd
COUNT_FILE=.wdd/stop-count
count=$(cat "$COUNT_FILE" 2>/dev/null || echo 0)
if bash -c "$VERIFY" > .wdd/verify.log 2>&1; then
echo 0 > "$COUNT_FILE"
exit 0 # the verifier passes: Claude may stop
fi
if [ "$count" -ge "$MAX" ]; then
echo 0 > "$COUNT_FILE"
exit 0 # budget spent: let it stop, a human decides what next
fi
echo $((count + 1)) > "$COUNT_FILE"
{
echo "Not quite my tempo (push $((count + 1)) of $MAX). The verifier ($VERIFY) still fails."
echo "Fix the cause, not the test, and run it again. Last lines of its output:"
tail -n 40 .wdd/verify.log
} >&2
exit 2
Hook and command-line options change between versions of each tool; check its documentation and --help.
Each push is a short line plus the last lines of the verifier output. After three rounds on the same failure, ask the agent to step back and list explanations instead of pushing harder.
The prompt library has a push for every situation, and the keep-going generator has one for every mood.
When the verifier passes or the budget is spent, read the diff for cheating and unrelated changes, run the holdout check, and log the session: model, tool, rounds, cost, outcome.
Green checks are necessary, not sufficient. Look for changed tests, special cases for test inputs, swallowed errors, disabled rules and anything unrelated to the goal. Then log the session in the session log: after ten sessions you will know which model and tool reach tempo fastest for your kind of work.
Templates for AGENTS.md and PROMPT.md, loop scripts for bash and PowerShell, a Claude Code Stop hook, the whole prompt library and the pre-flight and review checklists, in one zip.
Until the verifier passes or the budget you set runs out. Small goals take a handful of rounds; migrations and decompilation can take days of unattended rounds.
Watch the first few rounds to see that it understands the goal and runs the verifier. After that, a loop script in a sandbox can run on its own.
Then the task is not ready for WDD. Writing the check is often the real work; split the task until each part has one, or work interactively instead.
No. You can be the loop: paste a push and the verifier output every time the agent stops. A script just does that for you, and does not get tired.
Next: best practices · pitfalls · worked examples · which models work