The most dangerous sentence in AI coding is "this should work now."
It sounds like a result. It's actually a guess wearing a result's clothes. The agent made an edit, ran nothing, and handed you code that fails the moment you touch it — and now the debugging is yours.
I stopped accepting unverified work by attaching one instruction block to every implementation task I give Claude Code. It doesn't make the agent smarter. It makes the agent check. Here it is in full:
Implement [TASK]. After each step, verify it yourself: run [TEST_COMMAND], run the
linter, and if a check fails, fix it and re-run before moving on. Show me the final
test output, not a summary that it passed. Stop after 3 failed attempts on the same
error and explain what you tried.
Why this shape works
Verification is per-step, not at the end. "Run the tests when you're done" lets ten edits pile up before anything is checked, and when the suite finally fails you have no idea which edit did it. Checking after each step means a failure points at the step that just happened.
"Show the output, not a summary" is the load-bearing line. A summary is the agent grading its own homework — "all tests pass" is easy to say and occasionally untrue. Raw test output can't be smoothed over. You skim it in five seconds and you know.
Failures get fixed inside the loop. Without this prompt, a failing check is where the agent stops and hands the problem back to you. With it, the fail-fix-rerun cycle is part of the job, so what reaches you is the end of the loop, not the middle.
The 3-attempt stop rule prevents the death spiral. An agent told to "keep fixing it" will happily burn an hour mutating code around an error it doesn't understand. Three failed attempts on the same error means the model is stuck, not close — stopping and explaining what it tried gives you a useful handoff instead of a bigger mess.
What a good run looks like
A typical run: the agent implements a step, runs the tests, a snapshot test fails. Instead of reporting "done, one test seems off," it inspects the failure, decides whether the snapshot or the code is wrong, fixes it, re-runs — green — and only then moves on. You come back to finished work plus the actual test output as evidence.
The pack's example is exactly this: a failing snapshot test the agent fixed itself, instead of broken code delivered with a confident "should work now."
When to use it
- Any implementation task you'd run tests on anyway
- Work you delegate while you're away from the keyboard — this is what makes hands-off runs trustworthy
- Refactors and multi-step changes, where step-by-step checks keep failures localized
Skip it for one-line edits and throwaway exploration. The loop costs a little time per step; on real work it pays for itself the first time it catches something before you do.
This prompt is #03 from my AI Coding Agent Prompt Pack — all 28 prompts for Claude Code, Antigravity, and Cursor, covering planning, debugging, review, refactoring, testing, and multi-agent orchestration. Code **LAUNCH10* takes it to $9 (regular $19).*
Not affiliated with Anthropic. Results vary by codebase and model — which is exactly why the work should come back with test output attached.
Top comments (0)