from line 4
44
55Code Review is a managed service that an Owner in your Claude organization turns on for a set of GitHub repositories. Once it's on, Claude reviews pull requests in those repositories. It posts its findings as inline comments, a summary in the review body, and a check run named **Claude Code Review**. An Owner controls [when reviews run](https://code.claude.com/docs/en/code-review-setup.md#set-when-reviews-run) and [how thorough they are](https://code.claude.com/docs/en/code-review-setup.md#set-the-default-review-level) for each repository.
66
7By itself, a review doesn't approve or block your pull request, and the check run doesn't conclude as a failure. Where a repository has a [Claude Approvals](https://code.claude.com/docs/en/approvals.md#keep-automatic-code-reviews) policy file, the policy can use a review's result to decide who has to approve. It can also change which pull requests get an automatic review.
7By itself, a review doesn't approve or block your pull request. If a repository has a [Claude Approvals](https://code.claude.com/docs/en/approvals.md#keep-automatic-code-reviews) policy file, the policy can use a review's result to decide who has to approve. It can also change which pull requests get an automatic review.
88
99> [!NOTE]
1010>
from line 17
1717| Marker | Severity | Meaning |
1818| :- | :- | :- |
1919| 🔴 | Important | A bug that should be fixed before merging |
20| 🟡 | Nit | A minor issue, worth fixing but not blocking |
21| 🟣 | Pre-existing | A bug that exists in the codebase but wasn't introduced by this PR |
20| 🟡 | Nit | A minor issue worth fixing |
21| 🟣 | Pre-existing | A bug that was in the codebase before this PR |
2222
2323When the review recorded its reasoning, a finding has a collapsed **Why this was flagged** section. Expand it to read why Claude flagged the issue and how it verified the problem.
2424
from line 26
2626
2727## Respond to findings
2828
29You can merge without responding to a finding, unless your repository's own rules require it. If its branch protection [requires conversation resolution](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-conversation-resolution-before-merging), resolve each finding's thread before you merge.
30
3129To clear a finding, resolve its thread or push a fix.
3230
33* **Dismiss it without a code change**: resolve the thread yourself on GitHub. Replying alone doesn't dismiss a finding. If your pull request has a **Claude Approvals** check, that check [may not count your resolve](https://code.claude.com/docs/en/approvals-troubleshooting.md#approvals-doesn’t-pass-after-you-resolve-a-review-thread).
31* **Dismiss it**: resolve the thread yourself on GitHub. If your pull request has a **Claude Approvals** check, that check [may not count your resolve](https://code.claude.com/docs/en/approvals-troubleshooting.md#approvals-doesn’t-pass-after-you-resolve-a-review-thread).
3432* **Fix the issue**: change the code and push. The next review of the pull request resolves its earlier thread when it judges the issue fixed, whether that review runs automatically on your push or you request it. Where [PR Steward](https://code.claude.com/docs/en/pr-steward.md#what-pr-steward-fixes) works on the pull request, it can push its own fix for an Important finding, so pull the branch before you start.
35* **Explain or disagree**: reply to the comment. Claude doesn't respond right away, and a reply doesn't start a review. The next review of the pull request reads the replies on its earlier findings, and can resolve the thread or post one follow-up reply. If the same kind of finding keeps coming back, ask a maintainer to add a rule to [`REVIEW.md`](https://code.claude.com/docs/en/code-review-customize#choose-what-to-write-in-review-md).
33* **Explain or disagree**: reply to the comment. The thread stays open after you reply. The next review of the pull request reads the replies on its earlier findings, and can resolve the thread or post one follow-up reply. If the same kind of finding keeps coming back, ask a maintainer to add a rule to [`REVIEW.md`](https://code.claude.com/docs/en/code-review-customize#choose-what-to-write-in-review-md).
3634
37To get that next review without pushing, comment `@claude review` as a [top-level pull request comment](#comment-commands).
35To request a new review, comment `@claude review` as a [top-level pull request comment](#comment-commands).
3836
37You can merge with findings still open, unless your repository's own rules block the merge. If its branch protection [requires conversation resolution](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-conversation-resolution-before-merging), resolve each finding's thread before you merge.
38
3939## Check run output
4040
41The **Details** link on the **Claude Code Review** check run opens the findings in one table sorted by severity, including any finding whose inline comment GitHub didn't accept:
41Open the pull request's **Checks** tab and select **Claude Code Review** to see the findings in one table sorted by severity, including any finding whose inline comment GitHub rejected:
4242
4343| Severity | File:Line | Issue |
4444| - | - | - |
from line 47
4747
4848A finding that has a line but wasn't posted as an inline comment appears as an annotation in the **Files changed** tab, on the lines concerned. Important findings show in red, nits in yellow, and pre-existing bugs in gray.
4949
50The check run concludes as neutral, or as skipped after some pushes that change no files and [keep the earlier result](#when-a-push-keeps-the-earlier-result). It never concludes as a failure, so a finished review doesn't fail a required check. If you don't see findings, or a review didn't run, see [Troubleshoot Code Review](https://code.claude.com/docs/en/code-review-troubleshooting.md).
50The check run concludes as neutral, or as skipped after some pushes that [keep the earlier result](#when-a-push-keeps-the-earlier-result). GitHub counts both as passing for a required check. For missing findings or reviews, see [Troubleshoot Code Review](https://code.claude.com/docs/en/code-review-troubleshooting.md).
5151
5252### When a push keeps the earlier result
5353
from line 61
6161* The pull request still adds and removes the same lines, as after an empty commit, a clean merge of the base branch, or a clean rebase
6262* Nobody has resolved an Important finding's thread since that review
6363
64To get a review without a code change, comment [`@claude review`](#comment-commands) or click **Re-run** on the check run.
64To get a new review anyway, comment [`@claude review`](#comment-commands) or click **Re-run** on the check run.
6565
6666### Read the result from a script
6767
from line 102
102102
103103Have your script handle these cases in order:
104104
105* **The title starts with `Code review not repeated`**: Code Review [kept an earlier result](#when-a-push-keeps-the-earlier-result) whose Important findings are still open, and the check run has no severity line. Read the title before the counts, with `gh api repos/OWNER/REPO/check-runs/CHECK_RUN_ID --jq .output.title`. Fail the job if you want to gate the merge.
105* **The title starts with `Code review not repeated`**: Code Review [kept an earlier result](#when-a-push-keeps-the-earlier-result) whose Important findings are still open, and the check run omits the severity line. Read the title before the counts, with `gh api repos/OWNER/REPO/check-runs/CHECK_RUN_ID --jq .output.title`. Fail the job if you want to gate the merge.
106106* **The title ends with `no new changes`**: let the job pass without reading the counts
107107* **`normal` is above zero**: fail the job if you want to gate the merge. The `normal` key holds the count of Important findings, so Claude found at least one bug worth fixing before merge. To print only that count, add `| .normal` before the closing single quote.
108* **The line is missing**: the command prints an error that contains `no severity line` instead of counts, and exits with a non-zero status. Treat that as no verdict rather than as zero findings. A check run for a review that failed, timed out, was canceled, or was superseded by a newer one has no such line, and some completed reviews have none either.
108* **The line is missing**: the command prints an error that contains `no severity line` instead of counts, and exits with a non-zero status. Treat that as no verdict rather than as zero findings.
109109
110110## Request a review
111111
from line 113
113113
114114* **Open it or mark it ready**: in a repository set to **Once after PR creation** or **After every push**, a review starts when you open or reopen the pull request, or mark a draft ready for review.
115115* **Comment a command**: post [`@claude review`](#comment-commands) on the pull request.
116* **Push a commit**: a push starts a review in a repository set to **After every push**, or on a pull request you subscribed with `@claude review always`. If your pull request still adds and removes the same lines after the push, Code Review can [keep the earlier result](#when-a-push-keeps-the-earlier-result) instead.
117* **Click Re-run**: after a review fails or times out on a pull request that isn't from a fork, [run it again](https://code.claude.com/docs/en/code-review-troubleshooting.md#retrigger-a-failed-or-timed-out-review) from the check run. On a pull request that isn't from a fork, you can also click **Re-run** after a push that [kept the earlier result](#when-a-push-keeps-the-earlier-result).
116* **Push a commit**: in a repository set to **After every push**, or on a pull request you subscribed with `@claude review always`, a review starts when you push. If your pull request still adds and removes the same lines after the push, Code Review can [keep the earlier result](#when-a-push-keeps-the-earlier-result) instead.
117* **Click Re-run**: after a review fails or times out, [run the review again](https://code.claude.com/docs/en/code-review-troubleshooting.md#retrigger-a-failed-or-timed-out-review) from the check run. You can also click **Re-run** after a push that [kept the earlier result](#when-a-push-keeps-the-earlier-result). **Re-run** works only on pull requests from a branch in the same repository.
118118* **Wait for the automatic retry**: a review whose session was interrupted is retried once automatically. The [check run's summary](https://code.claude.com/docs/en/code-review-troubleshooting.md#retrigger-a-failed-or-timed-out-review) says when that's happening.
119119
120120### Comment commands
from line 123
123123
124124| Command | What it does | When to use it |
125125| :- | :- | :- |
126| `@claude review` | Starts a single review without subscribing the PR to future pushes | You want one review now, such as on a pull request in a repository set to **Manual**, or another review right away in the other modes |
126| `@claude review` | Starts a single review | You want one review now, such as on a pull request in a repository set to **Manual**, or another review right away in the other modes |
127127| `@claude review always` | Starts a review and subscribes the PR to push-triggered reviews going forward | You want subsequent pushes to start reviews, such as on a high-priority PR in a repository set to **Manual** |
128128| `@claude review once` | Same as `@claude review`: starts a single review without subscribing | The same cases as `@claude review` |
129129| `@claude review stop` | Ends the PR's subscription to push-triggered reviews, without starting a review or canceling one that's already running. Claude replies with a comment instead of a check run. | You subscribed a PR with `@claude review always` in a repository set to **Manual** or **Once after PR creation**, and no longer want each push to start a review |
130130| `@claude review off` or `@claude review pause` | Same as `@claude review stop` | The same cases as `@claude review stop` |
131131
132In a repository set to **After every push**, you can't stop reviews with a comment, because pushes there start reviews with or without a subscription. To stop pushes from starting reviews on one pull request there, convert it to a [draft](#review-drafts-and-pull-requests-from-forks). When you mark it ready for review again, a review starts.
132For any comment command to take effect, meet all of these conditions:
133133
134For any comment command to take effect, all of these conditions have to hold:
135
136134* Post it as a new top-level pull request comment, not an inline comment on a diff line and not the body of a review. Editing an earlier comment doesn't count.
137135* Put the whole command on one line at the start of the comment. Other text can follow it. If `always` or `stop` is misspelled or on a later line, Claude reads the comment as a plain `@claude review` and starts a single review. Capitalization doesn't matter.
138136* You need write, maintain, or admin permission on the repository. Claude checks this with GitHub for each person who comments, and comments from bots don't start reviews.
139137* The pull request must be open.
140138
141When a command that starts a review is accepted, a **Claude Code Review** check run appears on the pull request with the title **Code review queued...**. The title changes to **Code review in progress...** when the review starts. Claude may also react to your comment with 👀, but that reaction can appear when no review starts, so look for the check run instead.
139To confirm that Code Review accepted your review request, look for a **Claude Code Review** check run on the pull request with the title **Code review queued...**. The title changes to **Code review in progress...** when the review starts. If a review is already running on the pull request's latest commit, wait for that review to finish before you request another.
142140
143If a review is already running on the pull request's latest commit, a new request doesn't start a second one.
141In a repository set to **After every push**, you keep getting reviews on pushes after you comment `@claude review stop`. To stop those reviews on one pull request, convert it to a [draft](#review-drafts-and-pull-requests-from-forks). When you mark it ready for review again, a review starts.
144142
145143> [!NOTE]
146144>
from line 151
153151* **Findings on code that hasn't changed since the last review**: the sentence ends "outside the scope of this re-review and not posted"
154152* **Nits and pre-existing findings**: the sentence ends "found and not posted"
155153
156To get a review that leaves none of these out, comment [`@claude review`](#comment-commands). It covers the whole pull request again.
154To get a review that reports these kinds of findings, comment [`@claude review`](#comment-commands). It covers the whole pull request again.
157155
158156### Review drafts and pull requests from forks
159157
160158Automatic reviews skip both of these, so request the review with a comment command:
161159
162* **Draft pull requests**: a comment command runs on a draft, so you can request a review before you mark the pull request ready. Pushes to a draft don't start reviews, even after `@claude review always`. The subscription takes effect once you mark the pull request ready.
163* **Pull requests from forks**: Claude doesn't review a pull request from a fork automatically, regardless of the repository's **Review runs** setting. To start one, comment `@claude review` on the pull request. The [conditions for comment commands](#comment-commands) still apply, and the write access you need is to the base repository, not the fork.
160* **Draft pull requests**: a comment command runs on a draft, so you can request a review before you mark the pull request ready. If you comment `@claude review always` on a draft, the subscription takes effect once you mark the pull request ready.
161* **Pull requests from forks**: the [conditions for comment commands](#comment-commands) still apply, and you need write access to the base repository
164162
165On a pull request from a fork, `@claude review always` works too, but doesn't subscribe the pull request to reviews on later pushes. Clicking **Re-run** on the check run doesn't start a review there.
163On a pull request from a fork, comment `@claude review` for each review, even after `@claude review always`.
166164
167165### Use Code Review alongside the Claude Code GitHub Action
168166
169If the repository also runs the [Claude Code GitHub Action](https://code.claude.com/docs/en/github-actions.md) in interactive mode with its default `@claude` trigger phrase, an `@claude review` comment starts the Action as well. To keep the two apart, set the Action's `trigger_phrase` input to a different phrase.
167If the repository also runs the [Claude Code GitHub Action](https://code.claude.com/docs/en/github-actions.md) in interactive mode with its default `@claude` trigger phrase, you start the Action as well when you comment `@claude review`. To keep the two apart, set the Action's `trigger_phrase` input to a different phrase.
170168
171169Also replace each `@claude` in your workflow's `if` condition with the new phrase, so that the Action starts on that phrase instead.
172170