Step 14 of 36 · Engineering practice
Code review when much code is generated
When writing gets cheap, review becomes the bottleneck and the risk. Protect reviewer attention and keep authors accountable.
When code is cheap to produce, more of it arrives at review, in larger pieces. Review was designed around a human author who understood the change. That assumption no longer holds by default.
Restore it. The author must have read, run and understood the change before asking anyone else to look. Keep changes small, and send back large generated ones on size alone. Ask authors to state what they verified and how. Point reviewers at design, risk and whether the tests would catch a wrong implementation. Leave style to tooling.
Watch reviewer load as a health measure. The failure is quiet: approvals get quicker, reviewers skim, and review becomes a ritual that certifies code nobody has read.
Try this week
- Add two lines to the pull request template: what the author verified and how, and which parts deserve the closest look.
- Look at change size and review time for one team over the last quarter and discuss the trend with them.
Signs you've got it
- Reviewers send back changes the author cannot explain, and nobody treats that as rude.
- Changes have stayed small even as the amount of generated code has grown.
Resources
- guideThe Standard of Code Review (opens in a new tab)Google Engineering Practices
- guideSmall CLs (opens in a new tab)Google Engineering Practices
- articleYour job is to deliver code you have proven to work (opens in a new tab)Simon Willison
- articleAI writes code faster. Your job is still to prove it works. (opens in a new tab)Addy Osmani
- paperExpectations, Outcomes, and Challenges of Modern Code Review (opens in a new tab)Alberto Bacchelli and Christian Bird
Talks to watch
- 61 min"Looks Good to Me": A Practical Guide to Handling AI-Generated Code (NDC) (YouTube, opens in a new tab)Roman Zhukov
- 25 minThe Death of the Code Review: What the Data Actually Says (YouTube, opens in a new tab)Laurie Voss