The first version of anything a model writes for me looks finished. It compiles, it is formatted, the names are sensible, and there is a short summary on top that says what was done. Every few months the models get better, and the first version looks even more finished than before.
That makes it tempting to stop there. I think it’s the wrong conclusion. The more often you go over a piece of code, the better it gets, and right now that is more true than it has ever been.
An old habit that got cheap
None of this is new. Writing has drafts, and code has review, refactoring and the second look on Monday morning. Everyone who has done this job for a while knows that the third pass finds things the first two missed.
What kept us from doing it more often was the price. A proper review of a module took a colleague hours, so it happened once, on the diff, shortly before the merge. Nobody asked for a fourth pass, because nobody had the time to give one.
A pass now takes a few minutes. I can ask for one after every change, and for another one with a different question in mind. The habit didn’t change. Its price did.
Why a second pass finds more
A second pass by the same model sounds pointless. It wrote the code, so what would it notice now?
Quite a lot, as it turns out. A new session has not spent an hour getting attached to its own solution. It reads the code the way a stranger would, and it has no reason to defend it. I quoted Anthropic’s engineers on this in Code Is Cheap. Ownership Isn’t.: an agent asked to judge its own work tends to praise it. A fresh one doesn’t have work of its own to praise.
It also helps to ask a different question each time. “Is this correct?” and “is this well built?” lead through the same files and come back with different lists.
I have numbers for this from the carsharing app I started writing about in Eight Years of Code, 47 Tests. One part of that app got a review of everything that runs concurrently, and it found a real race between two threads. A single stage of that review went through six rounds before it came back empty. The last three findings of that stage were all in the document that described the review, not in the code. The code had nothing left to give, and I only knew that because we kept going.
Two questions, written down
For a while I asked for these passes by hand, in whatever words came to mind, and only when I thought of it.
So I wrote the two questions down as skills, which are plain text files that Claude reads when the task calls for them.
The first one is a logic review, and it asks whether the code is correct. It takes the change plus the module around it, reads what the change was supposed to achieve, and then follows a handful of concrete inputs through the code. A few of them are ordinary and a few are nasty: an empty list, a double tap, a response that arrives late. A finding has to come with the input that breaks things. If the reviewer could not verify it, it has to say so.
The second one is a maintenance pass, and it asks whether the code is well built. It measures first: which files are complex and also change often, which functions are too long, where the same block exists twice. Then it reads the candidates, because a number alone proves nothing. A big file with one job is fine. My favorite test in there is for classes that do too much: describe it in one sentence without using the word “and”.
Both end the same way. They hand me a short ranked list, ten findings at most and no remarks about style, and then they stop. I pick what gets fixed.
A line in my general instructions says that both run before any larger piece of work is called done. Since then the loop happens without me remembering it. 🔁
A loop needs an end
There is a way to do this badly. A reviewer that is asked to find something will find something, every time, forever. Run that in a circle and you get code that is polished into something worse: more abstractions, more defensive checks, and a diff that never settles.
Three things keep it honest for me. The list is capped and has to be ranked, so the tenth nitpick never arrives. Nothing is fixed without a decision from me. And the loop ends on a criterion, not on a count. For the concurrency review the rule was to stop once two rounds in a row found only problems in the prose. That is how I know six rounds was the right number and not just a large one.
The loop also needs something outside itself to check against. Tests do that for behavior, which is why I keep insisting on the net first. A loop without that is just opinions going around in a circle.
Should I publish them?
I’ve been thinking about putting these skills online. They are only two short text files.
I’m undecided, because I’m not sure they would help anyone as they are. They contain my mistakes. The rule about concrete inputs is in there because the first audit of that carsharing app came back with 117 findings that all sounded right, and 37 of them were real. The cap is in there because a reviewer without one never runs out of things to say. Someone else has made different mistakes and needs different rules.
It is the same thing I noticed when I made a cartoon without knowing how. The useful part was never the tool. It was the text file that described how we do it, and that file was only good because every failure went back into it.
So if I publish them, then as something to read and steal from, not to install. Everyone has to find their own workflow. The part I’d pass on without hesitation is smaller: go over it again. It was good advice when a pass cost hours, and it’s better advice now.