In short: an AI code review reads what it is shown. It cannot know what runs in production, what you intended or what is missing. Treat its remarks as leads and confirm them with a fixed check or a test.
What a code review is for
A code review means someone other than the author examines the code. Google's published guide lists what a reviewer looks for: design, functionality, complexity, tests, naming, comments, style and documentation.
Its first point is design: whether the pieces fit together and belong in this codebase. That needs knowledge of the system and of what the team is trying to do. An AI code review takes over part of the reading. It does not take over the judgement.
What a model can help with
A model reads text quickly and does not tire. It can point at a long function, an unclear name, a missing comment or a pattern that often goes wrong. It can explain unfamiliar code in plain words. Used as a second reader, it can save a person time.
That is where it stops. The rest of this page is about what it cannot do alone.
What a model cannot know
- What runs in production. The code shows what is written, not the settings, data and traffic of the live system.
- What you intended. Google asks whether the change does what the developer intended. Only the team knows.
- What is absent. A model comments on what it sees. A missing test, a missing check on access or a missing document leaves nothing to comment on. Google adds that a human must make sure the tests are valid.
- Everything at once. Researchers found that models use information best at the start and end of a long input, and worse in the middle. A large codebase does not fit in one reading.
Why a claim needs evidence
OWASP describes a hallucination as content that seems accurate but is fabricated. It warns about overreliance: trusting model output without verifying it. It advises cross-checking against trusted sources and validating key output automatically.
Asking the model to check itself does not help much. A study found that models struggle to correct their own answers without outside feedback. In a user study, people with an assistant were more likely to believe their code was secure, whether or not it was.
There is also a risk in reading untrusted code with a model. Instructions hidden in a file can be aimed at the reviewing model. Pillar Security showed hidden characters that a person does not see but a model follows. OWASP calls it indirect prompt injection.
A model and a fixed check
A fixed check applies a written rule to the same input and gives the same answer each time. It names the rule, so you can look the finding up and argue with it. It can be tested on code where the problem is planted and on code where it is not.
A model answers in sentences. Fowler notes that models are not deterministic. A remark can be right and useful, or fluent and wrong, and the text alone does not show which.
A way to use both
- Ask for the spot. A remark without a file and a line cannot be checked.
- Confirm before you act. Let a test, a fixed scan or a person confirm the remark.
- Keep fixed scans in the pipeline. Secrets, known vulnerabilities and complexity limits do not need a model.
- Keep people on design and intent. Those are the questions only the team can answer.
- Treat the files for assistants as code. They steer the reviewer too.
- a fixed check can decide this
- needs the team's judgement
What we check of this
We do not review pull requests. We check the whole codebase and the evidence in your CI. The fixed scans run without AI: secrets, known vulnerable packages, complexity, copied code and unused code, each with file and line.
An AI model reads the code one part at a time, starting from a map of the repository, and writes its remarks as claims. Each claim must point to a file and a line, and our own software confirms it. Anything that cannot be confirmed does not reach the results. Secrets never go to a model.
We also check whether changes to your main branch are reviewed before they get in. And we check the files for assistants for hidden characters or instructions. We change nothing in your code.
Join the pilotSources, opened on 11 November 2026
- Google: What to look for in a code review
- OWASP: LLM09 Misinformation
- OWASP: LLM01 Prompt Injection
- Liu and others: Lost in the Middle. How language models use long contexts
- Huang and others: Large language models cannot self-correct reasoning yet
- Perry and others: Do users write more insecure code with AI assistants?
- Pillar Security: Rules File Backdoor
- Martin Fowler: Vibe Coding
Written by the BlueLandscape team with the help of AI. Every statement was checked against the source above.