A review is only as good as what the reviewer can see. Most disappointing AI reviews are not a limit of the model but a consequence of handing it twenty changed lines with no information about what they are part of or what they are for.
What matters most?
The intent. What the change is meant to achieve, in one or two sentences, converts a review of whether the code is reasonable into a review of whether it does the thing.
Without it, every finding is about general quality, since there is no standard to check against.
What is the priority order?
- What the change is supposed to do.
- The full function or file, not just the changed lines.
- Anything the change calls, with its signature and behaviour.
- Anything that calls the changed code.
- Characteristics of the data it operates on.
- Relevant conventions or constraints from the project.
Why are callers so valuable?
Because a large share of real breakage is at the boundary. A function that now returns a different shape, throws where it used to return empty, or handles an edge case differently is fine internally and wrong for whoever depends on it.
Two or three call sites pasted alongside the diff catch this immediately.
Is more context always better?
No, and this is the mistake in the other direction. Pasting an entire repository dilutes attention, and material in the middle of a very long input is attended to least reliably, which is exactly where the relevant function will end up.
Relevant context beats complete context, consistently.
How do you decide what is relevant?
Ask. A model given the diff and asked what it would need to review this properly produces a specific list, and supplying the two or three things it names is faster than guessing.
Before reviewing: tell me what you would need to see to review this properly, and what you cannot assess without it. Do not review yet.
What about project conventions?
Worth stating once and reusing. How errors are handled here, what is logged, which patterns are forbidden and what the team has agreed. Without those, reviews suggest approaches that contradict the codebase, which is noise.
Where should standing context live?
In a project or repository configuration file that tools read automatically, rather than pasted each time. That way the conventions apply to every review and are updated in one place.
How do you supply context without pasting everything?
Summarise the parts that are only needed for their contract. A caller does not need to be pasted in full if you can state what it expects back and what it does with it, and a dependency does not need its implementation if its behaviour is described in a sentence.
This matters because attention is the constraint. Three hundred words of accurate summary about the surrounding system is worth more than three thousand lines of code that push the diff into the middle of the input. Where a tool reads the repository directly, the same principle applies to which files you point it at.
What is the smallest useful setup?
Intent, the full file, and the direct callers. Three pastes, about a minute, and it changes the output from general observations into findings about whether this change is correct in this system.