# AI code review

> Canonical: https://skillalmanac.com/glossary/ai-code-review | Last verified: 2026-11-24 | Index status: not offered to search engines

AI code review is the use of an AI model to read a code change, such as a pull request, and report likely bugs, security problems and style issues, usually as comments a human then checks.

Also called: AI code reviewer, LLM code review, automated code review AI, AI pull request review, AI review of code changes.

## In plain language

Code review means a second pair of eyes reads a change before it is merged into the main code. In AI code review, a model plays part of that role. It reads the changed lines and the code around them, then leaves comments such as 'this input is not checked' or 'this branch can never run'. It is like a fast proofreader that has read a lot of code. Its limit is that it can miss real problems and can flag things that are fine, so a clean result does not mean the code is correct or safe. Review time and model usage can also cost money, so check how your tool bills.

## Technical definition

Most AI code review tools pass the diff and surrounding repository context to a language model with a review prompt, then post the findings as comments. Some tools run several model calls over the same change and add a verification step that checks candidate findings against the code before they are reported. Tools differ in whether they only read the code or also build and run it, in how thoroughly they review (vendors offer effort or review levels), and in whether their result counts toward required approvals. The output is model-generated text, so it is not a proof of correctness.

## How it shows up when you use agents

AI code review appears in two places. The first is on the pull request: a service reads the change and comments on it. GitHub's documentation says Copilot code review reviews pull requests, identifies issues and suggests fixes, and Anthropic's Claude Code documentation describes a Code Review service that comments on GitHub pull requests. The second is inside your own session: you ask a [coding agent](/glossary/coding-agent) to review a branch, or you give it a review [skill](/glossary/agent-skill) or a [subagent](/glossary/subagent) that does only that job.

What breaks when this is misunderstood is trust. GitHub's docs say Copilot is not guaranteed to spot all problems and sometimes makes mistakes, and recommend validating its feedback and adding human review. Anthropic's docs say a review with no findings does not mean the code is error-free or secure. Treat the output as a list of leads, not a verdict.

Next actions: decide what the reviewer is allowed to do (read only is the safer default), ask for evidence with each finding, and keep a person responsible for the merge. Because the reviewer is a model, [hallucinated](/glossary/hallucination) findings are possible, so open the cited lines before acting on one.

## Common confusions

- **AI code review versus a linter.** A linter applies fixed rules and gives the same answer each time. A model reads the change in context and can comment on logic, but its output can vary and can be wrong.
- **AI code review versus approval.** A review comment is not an approval. GitHub's docs say Copilot reviews do not count toward required approvals by default, and Anthropic's docs say a review by itself does not approve or block a pull request.
- **Reviewer versus author agent.** Asking the same agent that wrote the change to review it is weaker than a separate reviewer with its own instructions and read-only access.
- **Myth.** "A clean AI review means the change is safe." Both vendors' documentation says otherwise.

## Worked examples in this catalogue

### [review-agent](https://skillalmanac.com/skills/openai/review-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A read-only, defect-first review of a code change that returns the actionable findings it found.

Why it exercises the concept: It is a review reduced to its core: read the change, report defects, change nothing. That shows what a reviewer role looks like when written as an agent skill.

### [reviewing-code-changes](https://skillalmanac.com/skills/skill-almanac/reviewing-code-changes)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A code review that leaves the diff, proves its findings, and is written to fit in two minutes of reading.

Why it exercises the concept: It addresses the main weakness of automated review, unproven findings, by asking the reviewer to show evidence for each one.

### [requesting-code-review](https://skillalmanac.com/skills/obra/requesting-code-review)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A workflow that asks for a review of finished work against the requirements before merging.

Why it exercises the concept: It covers the other side of the loop: the author agent asks for a review at the right moment instead of merging its own work unchecked.

### [code-review-and-quality](https://skillalmanac.com/skills/addyosmani/code-review-and-quality)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A review of a change along several axes before it is merged.

Why it exercises the concept: It shows that review is more than bug hunting: a change can be judged on several separate axes.

## Related terms

- [Coding agent](https://skillalmanac.com/glossary/coding-agent.md)
- [Subagent](https://skillalmanac.com/glossary/subagent.md)
- [Agent skill](https://skillalmanac.com/glossary/agent-skill.md)
- [LLM-as-a-judge](https://skillalmanac.com/glossary/llm-as-a-judge.md)
- [AI hallucination](https://skillalmanac.com/glossary/hallucination.md)
- [Agentic coding](https://skillalmanac.com/glossary/agentic-coding.md)

## Sources

- [About GitHub Copilot code review](https://docs.github.com/en/copilot/concepts/code-review/code-review), GitHub Docs (accessed 2026-11-24)
- [Code Review](https://code.claude.com/docs/en/code-review), Anthropic (Claude Code Docs) (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
