Engineering

6 min read

Plans are the new diff

Reviewing forty changed files is slow. Reviewing a twelve-line plan is fast. Here is how we redesigned review around the plan.

Jonas Weber

Staff engineer

Reviewing forty changed files is slow. Reviewing a twelve-line plan is fast. When we watched teams review agent work, almost every rejected pull request could have been caught at the plan.

Where review time goes

We timed 400 reviews in the beta. Engineers spent most of their time rebuilding the agent’s reasoning from the diff: which file changed first, why a helper moved, what a new flag was for.

  • Rebuilding intent from the diff: 58%

  • Checking tests and edge cases: 27%

  • Style and naming: 15%

The new flow

  1. Kestrel writes a short plan as a checklist.

  2. You reorder, edit or delete steps, then approve.

  3. Kestrel follows the plan and links each step to the lines it changed.

  4. Review checks that the plan was followed, not what the plan should have been.

Abstract gradient illustration

I stopped reading diffs top to bottom. I read the plan, then jump to the two steps I care about.

A staff engineer in the beta

Results

Teams in the beta spent 40% less time in review and sent back fewer pull requests. The plan view is on for every workspace in Kestrel 2.3.

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