Blog

How to review code an agent wrote

24 September 2026 | 7 min

The bottleneck moved from writing code to deciding whether code is correct, and most teams are still reviewing the old way.

When an agent writes a large share of the changes, the constraint stops being how fast anyone types and becomes how fast anyone can be confident. Teams that do not notice end up with a review queue instead of a backlog, and then with a review queue nobody reads properly.

Read the claim before the code

Start with what the agent said it did, and check that against what it ran. If there is no record of anything being executed, treat the summary as an intention rather than a result. This is thirty seconds and it reorders everything after it.

Read the edges, not the middle

Agent code is usually locally plausible. The defects cluster where the change meets code the agent did not write:

What to stop spending review on

Style, naming and formatting are what reviewers reach for because they are easy to see, and they are the least valuable thing to catch by hand. Let a linter and a formatter own them, and spend the attention you save on the four categories above.

The failure that only shows up at volume

Nobody decides to rubber-stamp. It happens because there is more to review than there is attention, and approving is the only way to keep up. The signal is not a bad review, it is a gradual fall in how long reviews take while the number of changes rises.

Watch change failure rate before and after you adopted an agent. It is the number that says whether review is keeping up, and it moves quietly.

Tests become load-bearing

They used to be a safety net. When an agent iterates until the suite is green, they become the specification it is working against, and a test that passes whether or not the behaviour exists is no longer merely useless. It is a wrong instruction.

The cheapest habit that fixes this: when you add a test, break the thing it guards and confirm it goes red. If it stays green, delete it and say why.

A checklist worth keeping

Where AstraCode fits

Most of the list above is work you do because the tool did not. AstraCode runs your tests before it reports, shows you what it ran rather than a summary of it, reads across the whole repository so the callers are in scope, and hands you a diff to approve rather than edits already on disk. Free tier, no card.

Review a diff, not a fait accompli

Changes arrive as something to approve, with the test output that backs them. Free to start.

Start free | Download

Also on the blog