When you read a PR an agent opened, you have the diff and the issue, and there's nobody to ask why the agent touched that file. In GitHub Actions a person opens the PR from the link the agent leaves (sprint guide), so on this page "a PR an agent opened" means a PR whose contents the agent wrote. Claude Code's team adoption guide recommends that no change goes in unread and that the diff is read to the same standard as any PR ("review the diff to the same standard as any pull request", Champion kit). It doesn't give a separate checklist for agent PRs. On this page you write that standard into the repo and connect Claude Code's review findings to a merge gate, the CI step that makes merging depend on a condition. For what a PR is, see the glossary. How work is handed to the agent, and the GitHub Actions setup, are in the sprint work guide.

Start the review from the issue

If the work was given to the agent with the template from the sprint guide, the issue has Where to make changes, Out of scope and Verification sections. First compare the list of files in the diff with the first two. A change that spills out of scope means the agent made a decision the issue didn't ask for, so talk about that decision before you read the lines. Then run the command from the Verification section on your own machine. For an interactive session, the Champion kit recommends seeing the proposed change in plan mode first. The work of an agent running in CI never went through that step, and the issue stands in for it.

Look at any change to a test file separately. In Actions, package.json and the lock file stay as they are in the PR, so a dependency change needs its own reading too. The reason is in the sprint guide.

Write what to look for into the PR template

A PR template is the ready text that fills the description of every PR that gets opened. The repo check tool looks for it in a pull_request_template.md file in .github/, docs/ or the repo root. The sections below are my suggestion, a short version of the review above:

## Issue
#123

## Do the changed files stay within the scope in the issue?

## Verification
The command that was run and its output

## Changes to test files
Which test changed and why, or "none" if nothing changed

## Dependencies
Why, if package.json or the lock file changed

Which way Claude Code's review comes in

RouteWhere it runsWhere findings are written
Managed Code Review serviceOnly on GitHub, on the Team or Enterprise planInline comments on the PR
Your own GitHub Actions workflowGitHubTo the PR with --comment, otherwise to the workflow log
Local /code-reviewOn every plan, on your own machineTo the terminal, or to the PR or MR with --comment

The managed service doesn't approve or block the PR. It leaves its findings as inline comments (Code Review). An organization that uses Zero Data Retention, a HIPAA configuration or CMEK can't use the service. Don't read a review with no findings as an approval. The docs also say it doesn't mean the code is bug-free or secure.

If your plan isn't Team or Enterprise, you can run the review in your own workflow. The example in the docs loads Claude Code's review plugin into the action with these inputs (GitHub Actions):

- uses: anthropics/claude-code-action@v1
  with:
    plugin_marketplaces: "https://github.com/anthropics/claude-plugins-official.git"
    plugins: "code-review@claude-plugins-official"
    prompt: "/code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }}"

Draft and closed PRs, and PRs from a fork, are skipped, and so are PRs that look automated or trivial. Setting up the app and the secret is in the sprint guide, and the full workflow with its trigger is in the GitHub Actions docs.

The local command reviews the current branch. You can also give it a range like main...my-feature, a PR number with /code-review 1234, or a path with /code-review src/auth. --fix applies the findings to the working tree (Review locally).

Tell the service what to report with REVIEW.md

REVIEW.md is the file where you tell the managed service what to report and what to skip. It's read only during a review, and it can sit in the repo root or in a subfolder. The service reads it together with CLAUDE.md (Customize Code Review). A few lines, based on the example in the docs:

Report at most five Nits per review.

Do not report:
- Anything CI already enforces: lint, formatting, type errors
- Generated files under `src/gen/` and any `*.lock` file

The first line limits Nits to five per review. The list keeps errors CI already catches and generated files out of the report, and lock files are among them. In this setup a person looks at the lock file and the service doesn't, which is what the Dependencies section in the template is for.

The service reads the file from the base or default branch. Lowering severity, excluding paths and the Nit limit only work when the root file is on a protected default branch. REVIEW.md can pull in at most 8 different files, and REVIEW.md together with those files has to stay under 150,000 bytes. If the file has more than 64 Markdown links, the root REVIEW.md is skipped entirely.

Connect the severity to a merge gate

The service marks findings with three severities. Important is a bug to fix before merge, Nit is something minor, and Pre-existing is a bug that was there before the PR too (Read and request reviews).

A check run called "Claude Code Review" shows up on the PR, and its result is neutral or skipped, never failure. Even if you put it among the checks that must pass before merge, merging doesn't stop by itself. The team builds the gate. The last line of the check run's Details text gives the counts as an HTML comment:

<!-- bughunter-severity: {"nit":1,"normal":2,"pre_existing":0} -->

The normal key here is the Important count. This command finds the check's ID:

gh api repos/OWNER/REPO/commits/<commit-sha>/check-runs --jq '.check_runs[] | {id, name}'

The second gh api call that reads the line, and its jq expression, are on the same docs page. Copy them into the workflow from there.

What follows is my suggestion, and it hasn't been tried out. A CI step reads this line and fails the job if normal is greater than zero. The step has to run after the "Claude Code Review" check finishes. If it runs on push, the line isn't written yet, and it fails every new PR. Leave Pre-existing out of the gate. That bug was there before the PR, and if you tie it to the gate, the PR waits on a bug it didn't bring.

If the line isn't there at all, the service hasn't made a decision, and the step shouldn't pass. A run whose title starts with Code review not repeated has no line, so in that case the step reads the title. I think the line also won't come in the Manual setting if nobody asked for a review, and that's my own inference. In that case ask for the review with @claude review. When the monthly limit is reached, the review is skipped and a budget note lands on the PR, and there a person lets it through the gate.

Someone other than the person who opened the PR does the merge. The reason is in the article Where to start with Claude Code in a team.

How often the service should run

Each repo has three settings: Once after PR creation, After every push and Manual. A repo added from the admin page starts on After every push, and that's the setting that produces the most reviews. Draft and fork PRs don't get automatic reviews (Set up Code Review).

To start one by hand, write @claude review on the PR. That comment starts a single review and doesn't subscribe the PR to later pushes. To subscribe, write @claude review always, and to turn it off, @claude review stop. The command has to be a top-level comment on the PR, alone on the first line, and whoever writes it needs write, maintain or admin permission on the repo.

There's no fixed price per review. The cost doesn't go to the developer who started the review. It's billed to the organization's usage credits. The level can be Quick, Standard or Deep, and the default is Standard. Set the monthly limit for Code Review on the usage page, and when the limit is reached the review is skipped and a budget note lands on the PR. For an estimate, the docs suggest reading the Average cost column in a small pilot and multiplying it by your monthly PR count (Code Review costs). If After every push is on, multiply once more by the number of pushes.

In a team that uses GitLab

Since the managed service runs on GitHub, a team on GitLab goes with the local /code-review. In v2.1.257 and later, --comment writes a note on the MR. For that, glab has to be installed on the machine, otherwise the findings stay in the terminal. To run it in CI there's the Claude Code GitLab CI/CD integration. The docs count it as beta, and GitLab maintains it.

The local command reads CLAUDE.md and doesn't read REVIEW.md. That's why on GitLab you write the review rules into CLAUDE.md. The sections of the template above do the same job in an MR description.

Common mistakes

If the same repo has both the managed service and an Action running on the default @claude trigger, an @claude review comment starts both. Change the trigger_phrase input in the Action.

A PR that changes REVIEW.md doesn't see the new rule in its own review, because the file is read from the base branch. The rule works on PRs opened after the merge.

In your own workflow, if --comment drops out of the prompt line, the findings are written only to the workflow log. No comment shows up on the PR, and the team thinks the review never ran.

From here

The last option of the review question in the team test is "Someone reads it, and what to look for is written in the repo". A PR template is enough for that option, and if you use the managed service, REVIEW.md goes next to it. On a public GitHub repo, the repo check shows whether the template is there.

A PR opened with TeamHandbook Orchestrator goes through the same review. The orchestrator never merges a PR itself, a person always makes the call (the TeamHandbook Orchestrator page).