I have spent most of this year running a software team in which AI agents write nearly all the code. People ask whether it works. It does, but the reason is not the one they expect. The models are good. What makes the output trustworthy is the structure around them.
The structure is short enough to put in a title: one builder, two reviewers, one push.
An agent’s opinion of its own work is worth nothing
This sounds harsh and is simply true, and it is true of people as well. The author of a change is the worst-placed person to find what is wrong with it. They know what they meant, so they read what they meant.
An agent has the same problem in a stronger form. Ask it whether its change is correct and it will explain, fluently, why it is. So the first rule is that the builder never grades itself.
Give reviewers the code and not the conclusion
Early on I made a mistake that is easy to repeat. I passed the reviewer the builder’s summary along with the diff. Review quality dropped at once. A reviewer told “this change fixes the rounding bug” checks that the rounding bug is fixed. It stops looking for everything else.
Now reviewers get the brief and the code. They work out for themselves what the change does. When their account differs from the builder’s, that difference is often the finding.
Use two reviewers who think differently
The second reviewer runs on a model from a different vendor. This is the cheapest improvement I made. Two copies of the same model share the same habits and miss the same things. Two different models disagree in useful ways.
Over the first four weeks the reviewers raised more than two thousand findings. Sixty-four were flagged as blocking, before any human looked at the change. The full numbers are in the case study.
Push once
The builder fixes what the reviewers found and only then pushes. Continuous integration runs on a candidate that has already been checked twice. That keeps the automated test bill down, and it means that when a person sits down to approve the change, the obvious problems are already gone and they can spend their attention on judgement.
What stays human
Merges. Access rights. Anything irreversible. Anything that spends money on a recurring basis. These are a short list, and I keep it short on purpose, but nothing on it is negotiable.
The agents also do not decide what to build. Writing the brief is the job now. A vague brief produces a confident, well-tested implementation of the wrong thing.
Review the process as you review the code
After a month I ran the numbers on the process itself: where the time went, and which review comments led to changes and which were noise. Minor findings were swamping the important ones, so they are now capped. The check before a push had been a convention, so it is now a script.
That is the general lesson. With agents, the engineering manager’s work does not go away. It becomes designing the system of checks and then holding that system to the same standard as the code it produces.