Reviewing AI-written code
For engineers
Reading agent and assistant diffs for logic, design and scope creep before they reach main
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Before reading an AI-written diff, what should you do first?
Check yourself · 2 of 5
An agent was asked to fix one function. Its diff also reformats five unrelated files. Why is that a problem?
Check yourself · 3 of 5
Which checklist item should you review first on an AI-written change?
Check yourself · 4 of 5
An agent opens a 2,000-line PR. You have 45 minutes. Where should you start?
Check yourself · 5 of 5
Where do bugs in AI-generated code most often hide?
Topics
- Reading an AI-written diff4 min read · Start from the intent, then check logic at the edges, fit with the codebase, and proof that it runs
- Spotting scope creep in agent changes4 min read · Unrequested edits, drive-by refactors, deleted tests and loosened config hidden inside a large diff
- A review checklist for AI-written code4 min read · The checks that catch what agents get wrong most often: intent, edges, errors, security, dependencies and tests
- Reviewing AI output at volume4 min read · Prioritising risky files, asking for smaller changes, and knowing when to stop reviewing and rerun
Start here
- What to look for in a code review (Google Engineering Practices) (opens in a new tab)ArticleFree
Design, functionality, complexity, tests and naming: the baseline every AI diff still has to meet.
- Small CLs (Google Engineering Practices) (opens in a new tab)ArticleFree
Why small changes get better reviews, and how to split large ones; applies directly to agent output.
- Secure Code Review Cheat Sheet (OWASP) (opens in a new tab)ArticleFree
A security checklist for input handling, auth, secrets and error handling during review.
Scenarios
Helps to know first
110 questions · last verified 2026-12