Skip to content
umevu
RU
  • code review
  • AI development
  • Claude Code

AI code review: lessons from 1,700+ reviews

AI code review lessons from 1,700+ real reviews: what models catch and miss, how to cut false positives, what context they need and how to measure real value.

5 min read
Quartz with a magnifying glass finding a red bug in a wall of plasticine bricks while his AI helper points at it

We built a code-review bot on Claude for the engineering teams at a product company, and it has run more than 1,700 reviews. Later we moved the same methodology into a public, local plugin for Claude Code. Here is what worked, what did not, and what we would do differently from day one.

TL;DR: AI review is good at mechanical mistakes and violations of explicit rules, and weak at design and business logic it has no context for. The real work is not the prompt but fighting noise: team rules, the task spec, severity levels. Measure value by accepted findings, not by comment count.

What AI review catches well

A model pays attention to detail and does not get tired by the end of a long diff. It is strongest at:

  • missing error handling and edge cases: nulls, empty collections, timeouts;
  • breaches of explicit team rules: naming, layer boundaries, banned dependencies;
  • forgotten call sites: a contract changed, but a consumer in the same diff was not updated;
  • code that does not match the task description;
  • security issues visible in the code: secrets in config, SQL built by string concatenation, missing authorization checks;
  • tests that do not actually test anything.

What it catches poorly

  • Architecture. The model sees the diff, not the history: why this approach was chosen and which alternatives were rejected.
  • Business logic without a spec. If the rule "discounts don't stack" is not written down anywhere, the model has no way to know it.
  • Behaviour under load. Race conditions and performance problems are visible from code only in simple cases.
  • Taste. Style remarks without an explicit rule are the single biggest source of noise.

False positives and noise

The first version of any AI reviewer is noisy. The model tries to be helpful and finds something to say even when there is nothing worth saying. Developers quickly learn to scroll past those comments, and they scroll past the important ones too.

What helped us cut the noise:

  1. Explicit rules instead of general advice. "Check code quality" produces noise. "Controllers never call the repository directly" produces a specific finding.
  2. Permission to stay quiet. The instructions say plainly: if there are no serious problems, say so.
  3. Severity levels, with a default filter that shows only what matters.
  4. A feedback loop. Every recurring false positive becomes an exception rule in the repository.
  5. Changed lines only. Remarks about old code the diff did not touch go into a separate list.

The context a model needs

Reviewing a bare diff is reviewing blind. We assemble three layers:

  • The diff plus its surroundings. Whole changed functions rather than isolated lines, plus the signatures of what they call.
  • Team rules. The same CLAUDE.md the coding agent uses, or a dedicated conventions file.
  • The task spec. What the change was supposed to achieve. Now the model checks not only how the code is written but whether it is the right code.

This is where spec-first development pays off a second time: the spec the agent coded against becomes the reference for the review. Rules and spec repeat from one review to the next, so they are worth caching, which makes each run noticeably cheaper.

Severity levels

Level Meaning Action
Blocker Bug, vulnerability, risk of data loss Fix before merge
Important Rule violation, missed case Fix or explain
Suggestion Could be better, but works Author's call
Question The model lacks context Answer in the PR description

The "Question" level turned out more useful than we expected. Instead of a confident but wrong remark, the model admits what it does not know; the author adds the answer to the description, and the next reviewer no longer has to guess.

Why a local plugin instead of a hosted bot

A CI bot comments on a pull request that is already open. It works, but it is late: the author has moved on, and every fix means a new commit and another round of waiting.

The Claude Code plugin runs locally, before the commit. The methodology is the same — rules, context, severity levels — but the setting changes:

  • feedback arrives while the author still has the task in their head;
  • code does not leave for yet another external service;
  • rules live in the repository and are versioned with the code;
  • there is no separate infrastructure to maintain.

A hosted bot is still a sensible choice when you need one mandatory step for every team. A local plugin wins when fast feedback and control over where your code goes matter more.

Measuring value without vanity metrics

Review count and comment count are vanity metrics. A bot that writes more comments is not better; if anything, it is worse. Here is what we look at instead:

  • Share of findings that led to an actual code change
  • Share of findings authors marked as false positives
  • Voluntary use: do people run reviews without being told to?
  • Blockers caught before merge, with concrete examples rather than just a number
  • Human reviewer time spent on mechanical remarks: is it going down?
  • Token cost per review compared with the time it saves

The last point is often forgotten. We compare models on the same set of diffs and switch to a cheaper one wherever the quality of findings holds up.

If you want AI review built into your team's workflow — with your rules, without the noise and with an honest view of its value — get in touch. We would start with a pilot on one repository and look at the numbers together a couple of weeks later.

Questions and answers

Can AI code review replace review by a colleague?

No. AI review takes over the mechanical part: missing checks, broken team rules, obvious bugs. Architecture decisions, and whether the change should exist at all, stay with people.

How do you reduce false positives in AI code review?

Give the model your team rules and the task spec, add severity levels and explicitly allow it to say nothing when there is nothing to say. Turn every recurring false positive into an explicit rule.

Why a local plugin rather than a bot in CI?

Locally, developers get feedback before they commit, when fixes are cheapest. The code does not travel to yet another external service, and the rules live in the repository, versioned with the code.

Lvl 1 · Rookie

Your achievements

Explore the site — every discovery earns experience.

0/650 XP

Unlocked: 0/7