Skip to content
,

Claude Code Review (2026): /code-review, Ultrareview and GitHub PR Reviews

7โ€“10 minutes
Woman in a living room holding a tablet with a CODE REVIEW card, hook catch bugs before merge

Claude Code can now review code three different ways. You can type /code-review in any session to check your branch. You can run /code-review ultra to send a fleet of reviewer agents to the cloud.

Or a Team or Enterprise organization can turn on Code Review so Claude reviews every GitHub pull request automatically, with inline comments.

This guide explains all three, with the exact commands, review targets, flags, effort levels, costs and limits. It also covers REVIEW.md, the @claude review comment commands and the common problems. Everything follows Anthropic’s Claude Code documentation as of December 2026.

TL;DR

  • Local review: /code-review (alias /review) checks your branch for bugs on any plan.
  • Apply fixes: /code-review --fix. Post to a PR: /code-review 1234 --comment.
  • Effort: /code-review low for fewer, surer findings; high or max for more coverage.
  • Deep cloud review: /code-review ultra. Pro, Max and Ultra get 3 free runs, then usage credits.
  • Automatic PR reviews: Code Review for Team and Enterprise; request one with @claude review.
  • Tune it: CLAUDE.md for all reviews, REVIEW.md for the GitHub service.

Three Ways to Review Code With Claude

/code-review /code-review ultra Code Review (GitHub)
Runs In your session, as a background subagent In a cloud sandbox On Anthropic infrastructure, per PR
Plans Any plan or API key claude.ai sign-in (Pro, Max, Ultra and more) Team and Enterprise
Cost Normal session usage 3 free runs, then usage credits Usage credits per review
Output Findings in your chat Verified findings in your chat or on the PR Inline PR comments and a check run
Best for Everyday checks before you push Big or risky changes before merge Every PR in a team repo

Run /code-review Locally

  1. Open Claude Code in your repository on the branch you want checked.
  2. Type /code-review. With no target, it reviews your branch’s commits ahead of its upstream plus your uncommitted changes. If there is no upstream, it compares against main or the previous commit.
  3. Keep working. In a terminal session, the review runs as a background subagent with its own context, so it does not fill your conversation.
  4. Read the findings when they arrive in your chat, then ask Claude to fix what matters.

The review focuses on correctness bugs. Depending on your model and effort, it can also cover reuse and simplification. It follows your CLAUDE.md, even in -p runs. You can also just ask “review my changes” and Claude may start the review itself.

New to Claude Code commands? Keep our Claude Code commands cheat sheet handy.

Choose What to Review

To review Type
Current branch and uncommitted changes /code-review
Last 15 commits /code-review HEAD~15..HEAD
One branch against another /code-review main...my-feature
A single commit /code-review abc1234^..abc1234
A pull request /code-review 1234
A file or folder /code-review src/auth

Everything after the effort level and flags is treated as the target.

Flags, Effort and Fixes

Option What it does
--fix Applies the findings to your working tree after the review, through your permission mode
--comment Posts findings as inline comments on a GitHub PR, or as one note on a GitLab merge request (needs glab)
--max-findings <n> / all / default Changes how many findings are reported
low to max Effort level: low shows only the most confident findings; higher levels widen coverage
ultra Runs the deep cloud review instead

Example: /code-review high --fix src/payments. When you do not type a level, the review reuses the last one you typed, even from an earlier session, and shows a notice such as “Reusing high effort”.

Careful with --fix: a background review edits files outside your session’s checkpoints, so /rewind may not undo all of its changes. Commit first. See Claude Code checkpoints for how rewind works.

To run the review in the foreground, use claude -p "/code-review" or set CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1. To stop Claude from starting reviews on its own while keeping the command, add "skillOverrides": {"code-review": "user-invocable-only"} to settings.

The cleanup-only command is /simplify, which applies fixes, and /verify runs your app to confirm a change works. Before v2.1.147, /code-review was called /simplify.

Deep Reviews With Ultrareview

/code-review ultra launches a fleet of reviewer agents in a cloud sandbox. Every reported finding is independently reproduced and verified, so you get fewer false alarms, and your machine stays free.

  1. Sign in with claude.ai. API-key-only sessions need /login first.
  2. Run it: /code-review ultra for your branch, /code-review ultra develop for another base, or /code-review ultra 1234 for a PR.
  3. Confirm the dialog. It shows the scope, your remaining free runs and the estimated cost.
  4. Keep working while it runs. Add --fix to apply findings when they return, or --post to post them on a github.com PR.
  • Free runs: Pro, Max and Ultra each get 3 one-time free runs; after that it bills usage credits.
  • Diff limits: by default up to 500 changed files and 8,000 changed lines.
  • Not available on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or with Zero Data Retention or HIPAA configurations.
  • Scripts and CI: use the claude ultrareview subcommand, which waits and prints findings.
  • Claude never starts ultrareview on its own; only you can.

Automatic GitHub PR Reviews

Code Review is a managed service for Team and Enterprise plans. Several agents read each PR with its surrounding code, a verification step removes false positives, and findings are ranked and posted.

Turn it on (organization Owner)

  1. In your Claude organization settings (the Claude Ship page), turn on the switch under Review.
  2. Connect your GitHub account and install the Claude GitHub App.
  3. Choose repositories, a review level and when reviews run.
  4. Click Turn on and open a test pull request.

Review levels are Quick, Standard (default) and Deep; deeper costs more. Reviews can run once after PR creation, after every push, or manually.

What a review leaves on the PR

  • Inline comments marked ๐Ÿ”ด Important (fix before merge), ๐ŸŸก Nit or ๐ŸŸฃ Pre-existing
  • A summary in the review body
  • A check run named Claude Code Review with a findings table

A review does not approve or block a merge on its own.

Comment commands

Comment Effect
@claude review Start one review now
@claude review always Review now and after every future push
@claude review stop End push-triggered reviews for this PR

Post the command as a new top-level PR comment, at the start of the comment, with write access to the repo. Bot comments do not trigger reviews. If your plan lacks Code Review, a Claude Code GitHub Action is another way to automate PR feedback.

Customize Reviews With CLAUDE.md and REVIEW.md

  • CLAUDE.md holds project rules that every Claude task reads, including local and GitHub reviews. Code Review reads the root file and the ones in parent folders of each changed file.
  • REVIEW.md at the repo root holds review-only rules for the GitHub service: what to flag, at what severity, and what to skip, such as generated files. The local /code-review does not read it.

Example REVIEW.md:

# Review rules
- Treat missing auth checks on API routes as Important.
- Skip files under /generated and *.lock.
- Do not flag naming style; we use a linter for that.
- Flag any SQL built with string concatenation.

Merge it into your default branch and protect that branch so contributors cannot weaken the rules in their own PRs.

Tips for Better Reviews

  • Run /code-review before every push; it is cheap and catches the obvious bugs.
  • Use low effort when you want a short, high-confidence list, and high before a release.
  • Save ultrareview for large or risky branches; free runs do not refresh.
  • Write your team’s conventions in CLAUDE.md once instead of repeating them in prompts.
  • For a review from several angles at once, try Claude Code agent teams or a custom reviewer from our subagents guide.

Troubleshooting

“Nothing to review”

The diff against the base is empty. Commit or stage changes, or pass a target such as a PR number or range.

Ultrareview is not available

You are signed in with an API key or using Bedrock, Agent Platform or Foundry. Run /login with a claude.ai account.

Diff is too large for ultrareview

The refusal names the limits in effect. Split the work into smaller branches, or run the local /code-review on one folder at a time.

–comment printed findings instead of posting to GitLab

Install the glab CLI and pass the merge request URL or !123.

@claude review did nothing

It must be a new top-level comment starting with the command, from someone with write access, on a repo where Code Review is on.

For other errors, see Claude Code not working.

FAQ

How do I review code with Claude Code?

Type /code-review in a Claude Code session. Add a PR number, branch range or path to change the target.

Is /code-review free?

It counts toward your normal plan usage or API billing, like any other work in the session. Ultrareview has 3 free runs, then uses credits.

What is the difference between /review and /code-review?

None. /review is an alias of /code-review.

Can Claude fix the issues it finds?

Yes. Add --fix, or ask Claude to fix specific findings after the review.

Which plans include automatic GitHub Code Review?

Team and Enterprise. Other plans can use /code-review --comment to post findings on a PR.

Does Code Review approve pull requests?

No. It comments and adds a check run. Approval rules are separate.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a living room holding a tablet with a CODE REVIEW card, hook catch bugs before merge