Yesterday one of my engineers opened a 4,100-line PR. Claude Code wrote it over two afternoons: a payments reconciliation feature, 61 files, tests included. The code is plausible everywhere, which is precisely the problem — agent output doesn't have the smell gradients human code has. With a human, sloppy naming in one file predicts bugs nearby. Agent code smells uniformly fine right up until it's catastrophically wrong.
I can't rubber-stamp it: it touches money. I can't line-by-line it: that's my whole day, and I have eleven other engineers, three of whom also have agents.
What we've tried so far:
- Review the tests first, then spot-check implementation. Decent, but agent tests are accomplices, not witnesses — they test what the implementation does, not what it should do.
- Make the author walk me through it. Better, except the author didn't write it either, and "walk me through what the agent did" produces a suspiciously smooth narration of code neither of us wrote.
- Second agent reviews first agent. Caught real bugs! Also confidently flagged twelve non-issues, and I had to review the review.
None of these scale to a team where agent PRs are now a third of throughput and growing. What's actually working for people? Structural rules (PR size caps? forced decomposition?), tooling, review checklists tuned for agent failure modes — I'll take anything that has survived more than a month of real use.
Most of my job is this now, so, current system, survived eight months:
The diff budget is the one I'd defend with my life. Everything gets easier when the unit of review is small enough to actually hold in your head.
The trenchcoat line is going in our team doc, with attribution. Question on stacked PRs: do your agents actually produce coherent stacks, or do you get ten arbitrary slices that each fail CI without the others?
Coherent, mostly — but only after we added a rule that each PR in the stack must pass CI independently and state its dependency explicitly. First month without that rule was exactly the arbitrary-slices mess you're describing. The agents can do it; they just won't volunteer.