8 8
9With Code Review, Claude reviews the pull requests in your GitHub repositories. Several agents read each change alongside the surrounding code, looking for issues such as logic errors, security vulnerabilities, or broken edge cases. A verification step checks findings against the code before they're reported.9With Code Review, Claude reviews the pull requests in your GitHub repositories. Several agents read each change alongside the surrounding code, looking for issues such as logic errors, security vulnerabilities, or broken edge cases. A verification step checks findings against the code before they're reported.
10 10
11Findings arrive as inline comments on the lines concerned, ranked by [severity](/docs/en/code-review-pull-requests#severity-levels), with a summary and a check run on the pull request. A review never approves or blocks the pull request, so the decision to merge stays with your team.11Findings arrive as inline comments on the lines concerned, ranked by [severity](/docs/en/code-review-pull-requests.md#severity-levels), with a summary and a check run on the pull request. A review never approves or blocks the pull request, so the decision to merge stays with your team.
12 12
1313
14 14
16>16>
17> Code Review uses AI to review code and may miss bugs, security vulnerabilities, or other issues. A review with no findings doesn't mean your code is error-free or secure.17> Code Review uses AI to review code and may miss bugs, security vulnerabilities, or other issues. A review with no findings doesn't mean your code is error-free or secure.
18 18
19To turn on Code Review, an Owner of your Claude organization follows [Set up Code Review](/docs/en/code-review-setup). Claude can also review code without this service. Run [`/code-review`](/docs/en/code-review-local) in your Claude Code session on any plan, or [compare all the options](#compare-ways-to-get-a-review).19To turn on Code Review, an Owner of your Claude organization follows [Set up Code Review](/docs/en/code-review-setup.md). Claude can also review code without this service. Run [`/code-review`](/docs/en/code-review-local) in your Claude Code session on any plan, or [compare all the options](#compare-ways-to-get-a-review).
20 20
21## Availability21## Availability
22 22
23Check that your organization qualifies before you set up Code Review:23Check that your organization qualifies before you set up Code Review:
24 24
25* **Plans**: [Team and Enterprise](/docs/en/feature-availability)25* **Plans**: [Team and Enterprise](/docs/en/feature-availability.md)
26* **Code hosts**: repositories hosted on GitHub, including [GitHub Enterprise Server](/docs/en/github-enterprise-server) and GitHub Enterprise Cloud with data residency. For data residency, have an Owner follow the [GitHub Enterprise Server admin setup](/docs/en/github-enterprise-server#admin-setup) and enter your enterprise's `ghe.com` hostname.26* **Code hosts**: repositories hosted on GitHub, including [GitHub Enterprise Server](/docs/en/github-enterprise-server.md) and GitHub Enterprise Cloud with data residency. For data residency, have an Owner follow the [GitHub Enterprise Server admin setup](/docs/en/github-enterprise-server.md#admin-setup) and enter your enterprise's `ghe.com` hostname.
27* **Data retention**: Code Review isn't available to organizations with [Zero Data Retention](/docs/en/zero-data-retention) enabled or with the [HIPAA configuration](/docs/en/hipaa-setup) applied, and isn't covered under Anthropic's Business Associate Agreement (BAA).27* **Data retention**: Code Review isn't available to organizations with [Zero Data Retention](/docs/en/zero-data-retention.md) enabled or with the [HIPAA configuration](/docs/en/hipaa-setup.md) applied, and isn't covered under Anthropic's Business Associate Agreement (BAA).
28* **Encryption keys**: Code Review isn't yet available for organizations that use customer-managed encryption keys (CMEK).28* **Encryption keys**: Code Review isn't yet available for organizations that use customer-managed encryption keys (CMEK).
29* **Cloud providers**: you need a Claude organization on one of these plans even if your developers use Claude Code through Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry29* **Cloud providers**: you need a Claude organization on one of these plans even if your developers use Claude Code through Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry
30 30
32 32
33Pick the page for what you need to do:33Pick the page for what you need to do:
34 34
35> **[Set up Code Review](/docs/en/code-review-setup)**35> **[Set up Code Review](/docs/en/code-review-setup.md)**
36>36>
37> Check the requirements, install the Claude GitHub App, and choose repositories, a review level, and when reviews run37> Check the requirements, install the Claude GitHub App, and choose repositories, a review level, and when reviews run
38 38
39> **[Customize Code Review](/docs/en/code-review-customize)**39> **[Customize Code Review](/docs/en/code-review-customize.md)**
40>40>
41> Tune what gets flagged with `REVIEW.md` and `CLAUDE.md` files in your repository41> Tune what gets flagged with `REVIEW.md` and `CLAUDE.md` files in your repository
42 42
43> **[Read and request reviews on a pull request](/docs/en/code-review-pull-requests)**43> **[Read and request reviews on a pull request](/docs/en/code-review-pull-requests.md)**
44>44>
45> Read the findings and their severities, and request another review with a comment45> Read the findings and their severities, and request another review with a comment
46 46
47> **[Troubleshoot Code Review](/docs/en/code-review-troubleshooting)**47> **[Troubleshoot Code Review](/docs/en/code-review-troubleshooting.md)**
48>48>
49> Fix a review that didn't start, failed, or was skipped for budget49> Fix a review that didn't start, failed, or was skipped for budget
50 50
51> **[Code Review costs and usage](/docs/en/code-review-costs)**51> **[Code Review costs and usage](/docs/en/code-review-costs.md)**
52>52>
53> See how reviews are billed, estimate spend, set the monthly spend limit, and track review activity53> See how reviews are billed, estimate spend, set the monthly spend limit, and track review activity
54 54
55## How reviews work55## How reviews work
56 56
57By default, Code Review focuses on correctness: bugs that would break production, not formatting preferences or missing test coverage. To change what it flags, [add guidance files](/docs/en/code-review-customize) to your repository.57By default, Code Review focuses on correctness: bugs that would break production, not formatting preferences or missing test coverage. To change what it flags, [add guidance files](/docs/en/code-review-customize.md) to your repository.
58 58
59A review runs on Anthropic infrastructure in four stages:59A review runs on Anthropic infrastructure in four stages:
60 60
66Each review leaves these on the pull request:66Each review leaves these on the pull request:
67 67
68* **Findings**: inline comments on the lines concerned, with a summary in the review body68* **Findings**: inline comments on the lines concerned, with a summary in the review body
69* **A check run**: named **Claude Code Review**, with the findings listed in its [details](/docs/en/code-review-pull-requests#check-run-output). The check run doesn't conclude as a failure.69* **A check run**: named **Claude Code Review**, with the findings listed in its [details](/docs/en/code-review-pull-requests.md#check-run-output). The check run doesn't conclude as a failure.
70* **When it finds nothing**: the check run's title reads **Code review found no issues**, and Claude posts the same short note on the pull request70* **When it finds nothing**: the check run's title reads **Code review found no issues**, and Claude posts the same short note on the pull request
71 71
72Code Review chooses the Claude models that reviews run on, and its admin settings don't offer a model choice. To make reviews more or less thorough, change the [review level](#review-levels).72Code Review chooses the Claude models that reviews run on, and its admin settings don't offer a model choice. To make reviews more or less thorough, change the [review level](#review-levels).
73 73
74After an Owner turns on Code Review, each repository has a setting for [when reviews run](/docs/en/code-review-setup#set-when-reviews-run): once when a pull request opens, after every push, or only on request. Whichever it is, someone with write access to the repository can comment `@claude review` on a pull request to [start a review](/docs/en/code-review-pull-requests#comment-commands).74After an Owner turns on Code Review, each repository has a setting for [when reviews run](/docs/en/code-review-setup.md#set-when-reviews-run): once when a pull request opens, after every push, or only on request. Whichever it is, someone with write access to the repository can comment `@claude review` on a pull request to [start a review](/docs/en/code-review-pull-requests.md#comment-commands).
75 75
76### Review levels76### Review levels
77 77
81* **Standard**: balanced depth, speed, and cost. The default level.81* **Standard**: balanced depth, speed, and cost. The default level.
82* **Deep**: the most thorough pass. Takes the longest and costs the most.82* **Deep**: the most thorough pass. Takes the longest and costs the most.
83 83
84An Owner [chooses one level for the organization](/docs/en/code-review-setup#set-the-default-review-level) and can give an individual repository its own, such as Quick for a routine codebase and Deep for a critical one. For what else drives the cost of each review, see [Code Review costs and usage](/docs/en/code-review-costs).84An Owner [chooses one level for the organization](/docs/en/code-review-setup.md#set-the-default-review-level) and can give an individual repository its own, such as Quick for a routine codebase and Deep for a critical one. For what else drives the cost of each review, see [Code Review costs and usage](/docs/en/code-review-costs.md).
85 85
86### What a review can access86### What a review can access
87 87
88A review reaches your repository through the Claude GitHub App that an Owner [installs during setup](/docs/en/code-review-setup#turn-on-code-review):88A review reaches your repository through the Claude GitHub App that an Owner [installs during setup](/docs/en/code-review-setup.md#turn-on-code-review):
89 89
90* **Where it runs**: on Anthropic infrastructure, in a managed environment. Reviews don't run in [self-hosted environments](/docs/en/self-hosted-environments).90* **Where it runs**: on Anthropic infrastructure, in a managed environment. Reviews don't run in [self-hosted environments](/docs/en/self-hosted-environments).
91* **What it reads and writes**: inside a review, access to your repository is read-only, and a review doesn't push commits. On the pull request, it posts comments and the [check run](/docs/en/code-review-pull-requests#check-run-output), resolves its own earlier comment threads, and can react to a comment command with 👀. The app itself holds a [broader permission set](/docs/en/github-actions#github-app-permissions) that other Claude features share.91* **What it reads and writes**: inside a review, access to your repository is read-only, and a review doesn't push commits. On the pull request, it posts comments and the [check run](/docs/en/code-review-pull-requests.md#check-run-output), resolves its own earlier comment threads, and can react to a comment command with 👀. The app itself holds a [broader permission set](/docs/en/github-actions.md#github-app-permissions) that other Claude features share.
92* **How it examines your code**: a review works from reading the diff and the surrounding code, without building or running your code.92* **How it examines your code**: a review works from reading the diff and the surrounding code, without building or running your code.
93 93
94### Who controls a review94### Who controls a review
95 95
96* **Who can start one**: where reviews run automatically, opening or pushing to a pull request starts a review, [except on drafts and forks](/docs/en/code-review-pull-requests#review-drafts-and-pull-requests-from-forks). A [comment command](/docs/en/code-review-pull-requests#comment-commands) starts one only when it comes from a person with write access to the repository.96* **Who can start one**: where reviews run automatically, opening or pushing to a pull request starts a review, [except on drafts and forks](/docs/en/code-review-pull-requests.md#review-drafts-and-pull-requests-from-forks). After some pushes, Code Review [keeps the earlier result](/docs/en/code-review-pull-requests.md#when-a-push-keeps-the-earlier-result) instead. A [comment command](/docs/en/code-review-pull-requests.md#comment-commands) starts one only when it comes from a person with write access to the repository.
97* **Which instructions it follows**: `REVIEW.md` from the base or default branch and [never from the pull request's own changes](/docs/en/code-review-customize#which-branch-review-md-is-read-from).97* **Which instructions it follows**: `REVIEW.md` from the base or default branch and [never from the pull request's own changes](/docs/en/code-review-customize.md#which-branch-review-md-is-read-from).
98 98
99## Compare ways to get a review99## Compare ways to get a review
100 100
104| :- | :- | :- | :- |104| :- | :- | :- | :- |
105| [Code Review](#how-reviews-work) | Pull request activity, as each repository is set, or an `@claude review` comment | Anthropic infrastructure | Organizations on a Team or Enterprise plan with GitHub repositories, once an Owner turns it on |105| [Code Review](#how-reviews-work) | Pull request activity, as each repository is set, or an `@claude review` comment | Anthropic infrastructure | Organizations on a Team or Enterprise plan with GitHub repositories, once an Owner turns it on |
106| [`/code-review`](/docs/en/code-review-local) | You run the command on your branch | Your Claude Code session | Anyone, on any plan |106| [`/code-review`](/docs/en/code-review-local) | You run the command on your branch | Your Claude Code session | Anyone, on any plan |
107| [Ultrareview](/docs/en/ultrareview) | You start it from Claude Code | A cloud sandbox | Requires signing in with a claude.ai account. See [Ultrareview](/docs/en/ultrareview) for where it isn't available |107| [Ultrareview](/docs/en/ultrareview.md) | You start it from Claude Code | A cloud sandbox | Requires signing in with a claude.ai account. See [Ultrareview](/docs/en/ultrareview.md) for where it isn't available |
108| Claude in your own CI, with [GitHub Actions](/docs/en/github-actions) or [GitLab CI/CD](/docs/en/gitlab-ci-cd) | Your pipeline's events, such as every pull request or merge request | Your own CI runners | Anyone with a Claude API key or cloud provider credentials, on GitHub or GitLab |108| Claude in your own CI, with [GitHub Actions](/docs/en/github-actions.md) or [GitLab CI/CD](/docs/en/gitlab-ci-cd.md) | Your pipeline's events, such as every pull request or merge request | Your own CI runners | Anyone with a Claude API key or cloud provider credentials, on GitHub or GitLab |
109| Your own reviewer, as a [subagent](/docs/en/sub-agents) or [skill](/docs/en/skills) | You or Claude invoke it during a session | Wherever you run Claude Code | Anyone who writes one |109| Your own reviewer, as a [subagent](/docs/en/sub-agents.md) or [skill](/docs/en/skills.md) | You or Claude invoke it during a session | Wherever you run Claude Code | Anyone who writes one |
110 110
111## Related resources111## Related resources
112 112
113* [GitHub Enterprise Server](/docs/en/github-enterprise-server): use Code Review with a self-hosted GitHub instance113* [GitHub Enterprise Server](/docs/en/github-enterprise-server.md): use Code Review with a self-hosted GitHub instance
114* [GitHub App permissions](/docs/en/github-actions#github-app-permissions): the full permission set the Claude GitHub App requests114* [GitHub App permissions](/docs/en/github-actions.md#github-app-permissions): the full permission set the Claude GitHub App requests
115* [How Anthropic secures its AI-native software development lifecycle](https://claude.com/blog/how-anthropic-secures-its-ai-native-software-development-lifecycle): how automated review fits as one layer of Anthropic's secure development process115* [How Anthropic secures its AI-native software development lifecycle](https://claude.com/blog/how-anthropic-secures-its-ai-native-software-development-lifecycle): how automated review fits as one layer of Anthropic's secure development process