Skip to content
BACK TO FIELD NOTES
AI DEVELOPMENT

Reviewing a pull request from an AI coding agent

A practical way to inspect the changed behavior, the test evidence and the cost of getting a patch into production.

Start from what should happen in production

Suppose an agent fixes duplicate order notifications by adding a check for a previously seen event. The change looks reasonable on a first read. A reviewer still needs to know what happens when two workers receive that event at the same time and when the original notification failed before it was sent.

Read the issue before the diff and turn its promise into a concrete scenario. Check which entry point runs in production, what old data looks like and whether any callers depend on the previous behavior. Then follow the changed code with that scenario in mind.

Ask which failure the tests would catch

Passing checks are useful when they exercise the path that changed. If the bug involves retry behavior, a test that calls a helper once leaves the important question unanswered. Look for evidence that the intended case fails before the patch and passes afterward, or use a targeted check that covers the missing behavior.

Pay attention to changes that make review harder. A small fix may come bundled with a renamed module, an extra dependency or reformatted files. Each additional change creates more behavior to check. Ask for a smaller patch when you cannot explain how the extra changes contribute to the requested outcome.

Measure the whole trip to merge

If a team is comparing coding tools, measure the interval from picking an issue to accepting a working change. Include follow-up prompts, review rounds, time spent rewriting the patch and any regressions reported after release.

Compare similar kinds of work. Generating a first draft of a test and untangling a race condition place different demands on the author and the reviewer. Separate those cases in the pilot so the team can see where an agent gives it back time.