01Chapter 1: Why AI-generated code needs reviewThis chapter assumes you can program in at least one language, read a Git diff, and run unit tests. It also assumes you have used an AI coding assistant at least a few times. No other tools are needed.3 min read
02Chapter 2: How AI-generated code typically goes wrongThis chapter assumes you can read a Git diff, write basic unit tests, and have used an AI coding assistant. It describes the failure patterns to look for when you review AI output. Later chapters cover how to check for each one.3 min read
03Chapter 3: Start with the requirement, not the codeThis chapter assumes you can read a Git diff, write basic unit tests, and have used an AI coding assistant. It covers the intent check, the first step of a review. Do it before you read any line of the change.3 min read
04Chapter 4: Keep changes small enough to reviewThis chapter assumes you can read a Git diff, stage changes with Git, and have used an AI coding assistant on a real task. Review quality depends on the size of the change. A reviewer who checks a 30-line diff carefully will skim a 900-line one, and an AI assistant can produce 900 lines in under a m3 min read
05Chapter 5: Reading the diff line by lineThis chapter assumes you can read a unified diff, run basic Git commands, and have already checked the change against its requirement. Here you read the change itself, carefully and in a fixed order.2 min read
06Chapter 6: Hunting for edge cases and logic errorsThis chapter assumes you can read a Git diff, write basic unit tests, and have used an AI coding assistant. By now you have checked the change against the requirement and read the diff. This chapter covers the next step: finding inputs and states where plausible code gives wrong results.2 min read
07Chapter 7: Checking that packages and APIs are realThis chapter assumes you can read a Git diff, use a package manager such as pip, and run a Python script. Its subject is one failure mode: AI assistants sometimes use packages, functions, or parameters that do not exist, or that exist but do not do what the code assumes.3 min read
08Chapter 8: Reviewing for security flawsThis chapter assumes you can read a Git diff, write basic Python, and run unit tests. It covers the security problems that appear most often in AI-generated code and how to find them in a diff.3 min read
09Chapter 9: Using tests as evidenceThis chapter assumes you can write and run unit tests with pytest, read a Git diff, and have already compared the change to its requirement. A diff can look right and still be wrong. A passing test run is evidence, but only if the tests are able to fail.2 min read
10Chapter 10: Letting linters and type checkers do the cheap workThis chapter assumes you can read a Git diff, run Python from a terminal, and write a basic unit test. You should also have read the earlier chapters on the diff and on edge cases.2 min read
11Chapter 11: Maintainability and fit with your codebaseThis chapter assumes you can read a Git diff, write basic unit tests, and have used an AI coding assistant. Earlier chapters covered correctness, security, and tests. Here the question is different: will the next person who opens this code be able to work with it?3 min read
12Chapter 12: Performance and resource useThis chapter assumes you can read a diff, write basic unit tests, and run Python code. It follows the chapter on finding edge cases. Correct code can still be slow or wasteful. AI assistants often produce code that works on the three-row example in your prompt and fails at scale.3 min read
13Chapter 13: Using AI as a second reviewer, with limitsThis chapter assumes you can read a Git diff, run unit tests, and have used an AI coding assistant. It also assumes you have read the earlier chapters on failure modes, tests as evidence, and static analysis.2 min read
14Chapter 14: A reusable review checklistThis chapter assumes you can read a Git diff, write and run unit tests, and have used an AI coding assistant. It turns the earlier review steps into one checklist you can reuse on every change.3 min read
15Chapter 15: Deciding to accept, revise, or rejectThis chapter assumes you can read a Git diff, run unit tests, and have already worked through the earlier review steps: checking intent, reading the diff, hunting edge cases, verifying dependencies, reviewing security, and gathering evidence. Here you turn that evidence into a decision.2 min read