Code review
I stopped reading every line of AI code. Here's what I review instead.
When I started building Coinest, and later Adaptl itself, I reviewed code the way I always had. Open the pull request, read the diff, leave comments, approve.
I struggled with it from the start.
The agents wrote more code in a day than I could properly read. By the time I had finished one pull request, more were waiting, so I began to skim, and then to approve things I hadn't really read. On paper I was still doing code review. In practice I was guessing.
I think a lot of teams are there right now. AI writes the code, and the review is still the one we built for people typing it.
Reading every line was the wrong job
Line-by-line review made sense when a person wrote the code at a human pace and a good reviewer could hold all of it in their head. With agents the volume is different. So is the kind of mistake.
Agent code usually looks fine. The names are sensible and the tests pass. What goes wrong is elsewhere: it solves a slightly different problem than the one I asked for, or changes a table in a way that will hurt later, or touches sign-in when it was only meant to fix a button.
Reading one line carefully doesn't catch that. Stepping back does.
What I review now
So I moved to reviewing the feature instead of the pull request. For each change I first ask what a user gets, and whether that's what we agreed. Then I look at what it touched, and most of my time goes to two kinds of change.
Critical changes. Anything near signing in, who can see what, money, personal data or deleting things. Here I still read closely, because a mistake costs customers.
Architecture changes. A new table, a new service, a new dependency, a different way two parts talk to each other. With AI these are cheap to make and expensive to undo, so I want to understand them before they land.
Everything else I try in a preview. If it does what we agreed and stays away from the critical and structural parts, it goes in. That felt uncomfortable at first. It was also the first time my review kept up.
Feedback made the agents better
This is the part I didn't expect.
Whenever something broke, whether a unit test, an end-to-end test or a bug I found clicking around myself, I didn't only fix it. I asked why the agent hadn't caught it, and gave that back as feedback. Sometimes it became a rule in one of the agent's skills. Sometimes the code review agent learned to look for it. Sometimes it became a check that runs on every push.
Two examples from building Adaptl. Early on, a test that should have stayed offline posted real comments on a pull request; now every test fails the moment it tries to reach GitHub or an AI provider. Another time, resetting the demo data wiped my real work, because both lived in one database. Now they live apart, and the reset refuses to touch real data.
The skills, the review agent and the checks grew out of real failures, one at a time. A rule written on day one is a guess. A rule written because something broke is evidence.
Synthetic users found what tests didn't
Tests check what you thought to test. On Coinest I ran ten synthetic users at once, for five to seven days, and they found the rest: problems that only show up when someone keeps coming back and their history grows. All of the data was made up, and it was still realistic enough to break the app where real people would.
What we're building into Adaptl
Adaptl is how I'd like every team to work, without wiring it together by hand the way I did. Some of it is built. The rest is still ahead of us.
Built: a change is reviewed as one feature, even when it's several pull requests underneath. Nothing gets built without a plan a person confirmed, and Adaptl can check what was built against that plan. Every change gets a short readiness line, a change touching critical code is flagged for a security review, and a project can require a named group's yes before anything merges. Previews come filled with made-up personas you can sign in as.
Ahead: synthetic users that run for days by themselves and report where they got stuck. And the feedback loop, built in. When something slips through, Adaptl will propose the rule that would have caught it, show on recent changes that it would have, and let a person decide whether to keep it. That's where the Playbook is going.
If your team is still reading every line of AI-written code and falling behind, I'd like to hear how you're handling it. You can reach me at adaptl.ai.
Further reading
- What to look for in a code review (Google's engineering practices)
- See a change reviewed as one feature
Try your next change as your customers will
Adaptl previews every change your coding agent makes with realistic, made-up customers, so you can pin what's wrong before it merges.