# What is AI code review? What it catches and what it misses

URL: https://sdclabs.com/glossary/ai-code-review/

> AI code review uses a language model to comment on pull requests. How it works, what it catches and misses per vendor docs and 2026 studies, and setup tips.

# What is AI code review?

[Mikhail Bodnarchuk](https://sdclabs.com/author/bodnarchuk/) 2026-11-27

Definition

AI code review is the use of a language model to read a pull request in the context of its repository and comment on likely bugs, security problems and broken edge cases before a person reviews it. It speeds up the first pass, but it misses issues and raises false alarms, so a human still decides what merges.

## How does AI code review work?

The vendors' own documentation describes a similar pipeline. Compare GitHub's docs for [Copilot code review](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review) with Anthropic's docs for [Claude Code Review](https://code.claude.com/docs/en/code-review) :

1. **Trigger.** A pull request opens or updates, or someone requests a review. Both tools can run automatically on every pull request.
1. **Gather context.** The reviewer reads the diff and the code around it. GitHub's [Copilot code review overview](https://docs.github.com/en/copilot/concepts/agents/code-review) calls this full project context gathering: it analyzes your entire repository to better understand the context of the change.
1. **Analyze.** In Anthropic's design, several agents read the change in parallel, looking for logic errors, security vulnerabilities and broken edge cases.
1. **Verify.** Anthropic adds a step that checks candidate findings against the code and drops false positives before anything is posted.
1. **Report.** Findings land as inline comments, with a summary. Claude Code Review ranks them by severity and adds a check run.

Teams steer both tools with files in the repository. Copilot reads .github/copilot-instructions.md for repository-wide rules and .github/instructions/**/*.instructions.md for path-specific ones, uses an AGENTS.md at the repository root for project context, and also reads CLAUDE.md, GEMINI.md and REVIEW.md. Claude Code Review reads CLAUDE.md and REVIEW.md.

## How is AI code review different from static analysis and human review?

|   | Static analysis | AI code review | Human review |
|---|---|---|---|
| How it decides | Fixed rules | A language model reasoning over the diff and its context | Judgment and knowledge of the product |
| Same input, same result? | Yes | Not guaranteed | No |
| Strong at | Known patterns: style, types, many security rules | Logic errors, security vulnerabilities and broken edge cases (Anthropic's list) | Requirements, design, whether the change should exist |
| Typical failure | Misses anything without a rule | Confident comments about problems that do not exist | Fatigue on large diffs, slow turnaround |
| Spreads knowledge in the team | No | No | Yes |

The three layers work best stacked: linters and type checks first, because they are cheap and certain; the AI reviewer next; a person last, on what is left.

## What do AI code reviewers catch, and what do they miss?

The vendors are direct about the limits. GitHub's [application card for Copilot agents](https://docs.github.com/en/copilot/responsible-use/code-review) lists four limitations of Copilot code review:

- **Missed problems** , especially where changes are large or complex. GitHub says careful human review should supplement it.
- **False positives.** The model can flag problems that do not exist or that come from misunderstanding the code.
- **Wrong or insecure fixes.** A suggested change can look valid and still be incorrect or introduce a vulnerability.
- **Bias** toward certain programming languages or coding styles.

Anthropic scopes Claude Code Review to correctness by default: bugs that would break production, not formatting preferences or missing test coverage. Its docs add a warning worth putting in every team's guidelines: "A review with no findings doesn't mean your code is error-free or secure."

Research on real repositories points the same way. These are three recent studies of AI reviewers on real projects; each measured one tool or a set of tools in the wild, and none is a controlled product benchmark.

| Study | What it measured | Main finding |
|---|---|---|
| [Lin et al.](https://arxiv.org/abs/2607.03316) , July 2026 | 31,073 CodeRabbit reviews and the developer replies, across 10,191 pull requests in 239 GitHub repositories | 36.4% of review comments were accepted, 7.3% started a discussion and 56.3% were rejected. Rejected comments were mostly false positives, redundant, out of scope, or at odds with the developer's intent |
| [Chowdhury et al.](https://arxiv.org/abs/2604.03196) , April 2026 (MSR 2026) | 3,109 pull requests from the AIDev dataset; the merge comparison uses the 281 reviewed only by code review agents and the 1,176 reviewed only by humans | Pull requests reviewed only by agents merged 45.20% of the time, against 68.37% for human-only reviews. In the 98 closed agent-only pull requests, 12 of the 13 agents that reviewed them had an average signal ratio below 60% |
| [Sun et al.](https://arxiv.org/abs/2508.18771) , revised April 2026 | More than 22,000 comments from 16 AI review actions for GitHub workflows, in 178 repositories | Effectiveness varied widely. Concise comments that include code snippets, and reviews triggered by hand, were more likely to lead to code changes |

The [full text of Lin et al.](https://arxiv.org/html/2607.03316v2) adds a split by topic: 75.9% of the comments concerned functional issues and 24.1% evolvability (maintainability and understandability), and functional comments were rejected as invalid more often, 35.1% against 25.1%. The authors read this as the agent struggling more to identify functional defects than to judge maintainability. Chowdhury et al. report an association, not a cause: pull requests that only a bot reviewed may differ in other ways. Their conclusion is still the useful one: code review agents should augment human reviewers, not replace them.

## Should an AI reviewer be allowed to approve pull requests?

The two products we checked take different defaults, and the difference is a governance decision for your team.

- **Copilot** leaves a "Comment" review by default, which does not count toward required approvals. Approvals can be turned on at the enterprise, organization or repository level. Once on, a Copilot approval satisfies a required-approval rule the same way a teammate's would, new commits dismiss it, and administrators can limit by file path which approvals count.
- **Claude Code Review** never approves or blocks a pull request, and its check run does not conclude as a failure. The merge decision stays with people.

Our recommendation is to keep at least one human approval as the merge gate, especially on code an agent wrote. Watch where review instructions come from, too. Anthropic's docs say Claude Code Review reads REVIEW.md from the base or default branch and never from the pull request's own changes, so a pull request cannot rewrite the rules its reviewer applies. Copilot works the other way: it reads custom instructions and agent skills from the pull request's head branch, so a pull request can change the guidance its own review follows. If you use it, require code owner approval on those files so a person sees any such change.

## Example: a REVIEW.md that focuses the reviewer

Both products read a REVIEW.md file from your repository; Anthropic's docs place it at the root. This one narrows the scope, which Chowdhury et al. recommend to reduce false positives, and asks for evidence, which Anthropic's [Code Review customization docs](https://code.claude.com/docs/en/code-review-customize) suggest for findings that turn out to be wrong. In Claude Code Review, exclusions such as the "Do not report" list are honored only when REVIEW.md is read from a protected default branch. It is a configuration file, not code we executed.

# Review instructions ## Report Defects that change behavior for users: wrong conditions, unhandled errors from network or database calls, permission checks missing on new routes, personal data or tokens written to logs. ## Evidence required Quote the line and name the input that triggers the problem. Do not report behavior you inferred from a function or variable name. ## Do not report - Formatting, lint and type errors (CI enforces them) - Files under build/ and generated API clients under src/client/ ## House rules - Money is stored as integer cents. Flag any float arithmetic on prices. - Feature flags are read through flags.get(), never from process.env.
## How do you know if AI code review is helping?

Measure it like any process change, against a baseline taken before rollout:

1. **Acceptance rate** : the share of AI comments that lead to a code change. The studies above give a sense of the range.
1. **Time to merge.** A noisy reviewer adds rounds of replies.
1. **Merge and abandonment rates** for pull requests the reviewer touched.
1. **Escaped defects** : bugs found after merge, by severity, before and after.

If acceptance stays low after a few weeks of tuning instructions, narrow the scope or turn off the categories that generate most rejections.

AI code review matters more as agents write more of the code; our page on [agentic coding](https://sdclabs.com/glossary/agentic-coding/) covers how those agents work, and the [AI in the SDLC trends](https://sdclabs.com/blog/ai-sdlc-trends-2026/) post covers what the data says about the security of AI-written code. In our [AI-enabled engineering](https://sdclabs.com/services/ai-enabled-engineering/) work, SDCLabs sets up AI pre-review with pull request templates, ownership rules and a human approval on every change, then tracks review time and change failure rate against the baseline. For how to roll AI tools out across teams with numbers, read the [rollout playbook](https://sdclabs.com/blog/ai-enabled-engineering-rollout/) .

## Sources

1. [Using GitHub Copilot code review](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review) , GitHub Docs, 2026-11
1. [Application card: GitHub Copilot Agents](https://docs.github.com/en/copilot/responsible-use/code-review) , GitHub Docs, 2026-11
1. [GitHub Copilot code review](https://docs.github.com/en/copilot/concepts/agents/code-review) , GitHub Docs, 2026-11
1. [Code Review](https://code.claude.com/docs/en/code-review) , Anthropic (Claude Code Docs), 2026-11-12
1. [Customize Code Review](https://code.claude.com/docs/en/code-review-customize) , Anthropic (Claude Code Docs), 2026-11-12
1. [Is Agentic Code Review Helpful? Mining Developers' Feedback to CodeRabbit Reviews in the Wild](https://arxiv.org/abs/2607.03316) , Lin, Liang, Thongtanunam, Tantithamthavorn (arXiv 2607.03316), 2026-07-23
1. [From Industry Claims to Empirical Reality: An Empirical Study of Code Review Agents in Pull Requests](https://arxiv.org/abs/2604.03196) , Chowdhury, Banik, Ferdous, Shamim (arXiv 2604.03196, MSR 2026), 2026-04-03
1. [Does AI Code Review Lead to Code Changes? A Case Study of GitHub Actions](https://arxiv.org/abs/2508.18771) , Sun et al. (arXiv 2508.18771), 2026-04-25

## Frequently asked questions

### Can AI replace human code reviewers?

Not on current evidence. In a 2026 study of the AIDev dataset, pull requests reviewed only by code review agents merged far less often than those reviewed by people, and vendors such as GitHub say AI review should supplement human review, not replace it.

### Is AI code review accurate?

Partly. In a July 2026 study of 31,073 CodeRabbit comments, developers accepted 36.4% and rejected 56.3%, mostly as false positives, redundant or out of scope. To cut false positives, a 2026 study of code review agents recommends narrow, specific checks over general-purpose review, and Anthropic's Code Review docs suggest requiring evidence before a class of finding is posted.

### Is it safe to send private code to an AI code reviewer?

Check where the review runs, what the tool may read and write, and how the provider handles your data under your plan. Claude Code Review, for example, gets read-only repository access during a review and does not push commits.

### Should AI review AI-written code?

It can be a useful first pass, but do not let the same kind of tool be the only check on its own output. Keep tests, static analysis and a human approval in the merge path for agent-written changes.

Services

- [AI-Enabled Engineering](https://sdclabs.com/services/ai-enabled-engineering/)
- [QA and test automation](https://sdclabs.com/services/qa-and-test-automation/)

Read next

- [AI in the software development lifecycle: 7 trends backed by data](https://sdclabs.com/blog/ai-sdlc-trends-2026/)
- [Only 18% of engineering orgs measure AI's impact: a rollout playbook](https://sdclabs.com/blog/ai-enabled-engineering-rollout/)
- [What is agentic engineering? How engineers ship software with supervised AI agents](https://sdclabs.com/blog/agentic-engineering/)

Related terms

- [Agentic coding](https://sdclabs.com/glossary/agentic-coding/)
- [Spec-driven development](https://sdclabs.com/glossary/spec-driven-development/)
- [Regression testing](https://sdclabs.com/glossary/regression-testing/)

[Mikhail Bodnarchuk](https://sdclabs.com/author/bodnarchuk/) Founder of Codeception and CodeceptJSBoth are open-source testing frameworks: Codeception for PHP, CodeceptJS for JavaScript.[LinkedIn](https://www.linkedin.com/in/davert/) [GitHub](https://github.com/DavertMik)

## Building with AI agents? Talk to an engineer.

[Start a project](https://sdclabs.com/contact/) [Book a call with the CEO](https://calendly.com/sdclabs/60min)
