Merging agent-written code without code review
For a mostly functional product, you can merge agent-written code without reading the diff if the screen is your main check. How, and where it stops.
For a lot of what you build with agents, you can merge agent-written code without code review. By that I mean nobody reads the diff line by line before it goes in. That holds for a mostly functional thing, especially one that doesn’t need to be super compliant. It’s how you move at the speed of AI and still stay fairly confident in the code quality.
The trick is that visual verification becomes the main check, and the front end behaviour is the proof. Maybe there’s some random code in the back end. As long as the front end behaviour mostly works, you can be fairly confident you won’t keep building onto slop. A foundation that mostly works lets each new piece go on top of something that holds. A fragile one is going to crumble, everything turns into a mess, and a few weeks later you’re rewriting everything again. With agents writing code this fast, you get there a lot sooner than by hand.
“Works” needs a strict meaning for this to hold. Mine is that the main path works on the user’s real entry path, run once with test accounts. A fix the agent checked under state it set up by hand doesn’t count as checked. An old pass sitting on disk doesn’t count as proof for code it never saw. That’s also what catches the proud agent telling you everything’s passing, because once you try it yourself, you see whether it works.
Scope has to stay bounded too. Each piece of work starts from a small contract. It names the goal, the allowed paths, the behaviours that count as done and what to leave alone. Those acceptance behaviours are what I click through. A small change with its edges written down is one a click-through can fairly judge.
Under the screen sits a small test stack. Mine has 4 tiers: unit tests, function tests, a few integration journeys and a handful of browser tests. The fast tiers run all the time, so the screen isn’t carrying the whole load on its own.
None of this applies to the parts that have to be right in ways a screen can’t show. My engineering rules start here: “any auth, security, accounting correctness, data integrity or other reliability and availability things are usually higher priority than anything else”. Those get deterministic proof, meaning tests for arithmetic, atomicity, isolation, authorization, idempotency and bounds. Anything that can move money, write to an outside system or lose data still gets code review, from a second reviewer, plus a real run. The product my agent fleet built handled money, so a fresh-context reviewer read every slice’s diff, and its early rounds found real money bugs.
A passing check proves only what it declares, so I say what each check didn’t cover. If I click through the sign-up flow and it works, that tells me the flow works for the account I used. The totals on the next page still need their own test.