Research

8 min read

What we learned from 10,000 code reviews

We studied how engineers review agent-written code, where they slow down and what makes them trust a change.

Maya Okafor

Research lead

Agents write code faster than people can review it. So we studied the reviews themselves: 10,000 of them, across 300 teams, to learn what makes an engineer trust a change.

Three findings

Trust is earned in the first file

Reviewers read the first file closely and skim the rest when it is right. When the first file had a mistake, they reread everything, even files that were fine.

Small pull requests get approved

Lines changed

Approved without changes

Median review time

Under 100

78%

4 min

100 to 400

61%

11 min

Over 400

37%

29 min

Tests buy trust

Pull requests that added a test for the change were approved 1.6 times as often, even when the test was short.

Abstract gradient illustration

What we changed

  • Diffs are ordered so the most important change comes first

  • Kestrel splits work into pull requests under 400 lines when it can

  • Every behaviour change ships with at least one new test

Review is not a gate at the end. It is a conversation, and the agent should make it a short one.

Maya Okafor, Research lead

Create a free website with Framer, the website builder loved by startups, designers and agencies.