A coding agent hands you a 1,000-line refactor across eighteen files. If you review it top-to-bottom in file order, you will spend your attention on renames and generated output and run out of focus before you reach the four lines that actually change behaviour. Large AI-generated diffs are not meant to be read; they are meant to be navigated. This is a reading order and a set of split criteria that put your attention where the risk is, not where the alphabet puts it.
Where would you start in this 1,000-line diff?
Here is the file list: a rename across six files, a regenerated API client, a batch of updated snapshots, a moved utility, and — somewhere in there — one file where a conditional changed. Pick your first three files before reading on. Most reviewers open the biggest file first. The biggest file is usually the generated client, which deserves the least attention. The right first move is not a file at all; it is a question: what is this refactor supposed to preserve?
What behaviour is the refactor supposed to preserve?
Extract the author's claim into one sentence: "This restructures the checkout flow with no change in behaviour." That sentence is your whole frame. A refactor is a promise that inputs map to the same outputs; your job is to find the place where that promise breaks. If the PR intentionally changes behaviour somewhere, that exception has to be named up front — "no change, except the retry now backs off exponentially" — because an undeclared behaviour change hiding inside a refactor is the single most dangerous thing in a large diff.
Which facts should the author provide upfront?
Before you read a line, require five things in the description: the reason for the refactor, the entry points it touches, the invariants it claims to preserve, the test evidence that it does, and any deliberate behaviour changes. An agent can generate all five. A PR that arrives without them is asking you to reverse-engineer intent from 1,000 lines, which is how reviewers miss things — not from lack of skill, but from spending their budget reconstructing what the description should have stated.
How to separate mechanical edits from semantic changes
Triage every file into two piles: mechanical (formatting, moves, renames, regenerated output) and semantic (logic, control flow, data handling). Mechanical edits are verifiable at a glance and carry almost no risk. The trap is the file that is 95% mechanical and 5% semantic — a rename across a function that also quietly flipped an `if`. Those are where behaviour changes hide, dressed as noise. Mark the piles explicitly so a semantic change can never masquerade as "just a move."

Why start with the public interface?
Review the exported surface first — public methods, request and response shapes, return types, emitted events. These are the contracts downstream systems depend on, and they are where a refactor does its real damage. If the public interface is unchanged, a large class of downstream breakage is ruled out in five minutes. If it changed, you have found the highest-risk part of the PR before reading any implementation. Either way, the interface is the cheapest, highest-information place to start.
How to pick one execution path through the diff
Choose one representative request and follow it end to end — entry point, through the business logic, to persistence — reading only the files on that path, in that order. This "trace one path" reading is dramatically more coherent than alphabetical file order, because you are following the way the code actually runs instead of the way the filesystem happens to sort it. One clean trace through the hot path tells you more than skimming all eighteen files in the order GitHub lists them.
How to inspect removed behaviour
Deletions are more dangerous than additions, and diffs make them easy to skim past. Read every removed guard, fallback, retry, and validation branch, and for each ask: where did this go, and under what condition does its replacement run? A refactor that drops a null check "because the new structure makes it impossible" is making a claim you have to verify, not accept. The bug in a big refactor is usually not something wrong that was added; it is something necessary that was removed.
How to compare error paths before and after
Trace one failure — a timeout, an unavailable dependency — through the old code and the new. A refactor that preserves the happy path perfectly can quietly change what happens when things go wrong: a retry that no longer fires, a log line that moved, an error swallowed where it used to propagate. Success-path behaviour is what the tests cover and what the author checked; failure-path behaviour is what the refactor silently alters and what reaches your users during an incident.
What the changed tests reveal about intent
Read the test diff as a confession of intent. A deleted assertion, a matcher loosened from an exact value to "truthy," a rewritten fixture — each tells you which guarantee the author decided to stop enforcing. The question for every weakened test is: is that guarantee still verified somewhere else, or did it just quietly leave the suite? Tests that got looser during a "behaviour-preserving" refactor are a direct contradiction of the PR's own claim, and the best place to find the real change.
How to handle generated files and lockfiles
Do not read generated output line by line. Instead verify its provenance: was it regenerated from the expected input by the expected command, and does the lockfile change match the dependency change in the manifest? A regenerated client with 600 lines of diff needs a one-line check ("regenerated from the updated schema, yes"), not 600 lines of attention. Spend the attention you save on the hand-written source, where a human — or an agent — actually made decisions.
When to use an AI summary during review
An AI reviewer earns its keep on a large diff by answering navigation questions: which entry points does this touch, what invariants does it claim, give me a map of the changed call graph. Use it to route your attention, then verify its important claims against the code. Treat a summary's assertion as a lead to check, not a fact to trust — and treat the absence of a claim ("no behaviour change detected") as an open question, not an all-clear. The summary tells you where to look; it does not look for you.
How to record findings without flooding the author
Group your observations under three headings — behaviour, compatibility, maintainability — and write one actionable comment per underlying issue rather than one per line. A 1,000-line diff can generate fifty comments if you let it, and fifty comments is how a review becomes unmergeable noise. Consolidate: "the retry behaviour changed in three places; here is the one that matters and why." The author can act on five grouped findings; they drown in fifty scattered ones.
When should the reviewer request a split?
Some PRs should not be reviewed at all — they should be returned to be split. Concrete triggers: a mechanical rename mixed with a policy change; two unrelated migrations in one PR; a change that makes rollback unnecessarily hard because safe and risky edits ship together. Requesting a split is not obstruction; it is the single most effective review action on a large AI diff, because it converts one un-reviewable 1,000-line change into three reviewable ones with clear, independent rollback.
A worked split of the sample refactor
Take the example and divide it along its seams: a mechanical PR (the rename and the move, zero behaviour change, trivially reviewable and revertable), a behaviour-preserving extraction (the restructure, reviewed against the invariants), and a deliberate logic change (the one conditional that actually changed, reviewed on its own merits). Each boundary buys you independent review and independent rollback. If the logic change causes an incident, you revert one small PR, not the rename that forty other branches now depend on.
The large-PR review map
Close with a reusable route, applied in this order every time: determine intent, isolate the mechanical edits, inspect the public interface, trace one important path, compare the failure paths, verify the tests still guard what they claim, and decide whether the change is even reviewable as one PR. File order is where attention goes to die on a large diff. A risk-ordered route is how you review 1,000 lines and still have focus left for the four that matter.
Frequently asked questions
How do you review a large AI-generated pull request? Not in file order. Read by risk: establish the intended invariant, separate mechanical edits from semantic ones, check the public interface, trace one execution path and one failure path, read the test diff for weakened guarantees, and verify generated files by provenance.
What's the most effective action on a 1,000-line refactor? Requesting a split when mechanical and behavioural changes are mixed. It converts one un-reviewable diff into separately reviewable, separately revertable PRs.
Where do bugs hide in a behaviour-preserving refactor? In removed guards and altered failure paths, and in tests that were quietly loosened. The happy path usually survives; the error handling and the deletions are where the real change lives.