Claude Code Code Review Plugin: Install It and Review a Real Pull Request

Claude Code Code Review Plugin: Install It and Review a Real Pull Request

The Claude Code code review plugin is an official add-on from Anthropic that reviews a GitHub pull request with several Claude agents working at the same time. We loaded it in a throwaway sandbox, pointed it at a real open pull request, and watched all of it run. This guide shows how to install it, what the review looked like, what it cost us in clicks and minutes, and who should keep it.

This guide is part of our Claude Code tutorials. Find more add-ons in our Skills Directory.

Tested with Claude Code v2.1.318 on November 5, 2026, with the plugin at version 1.0.1 (repository commit fa4eb54, dated November 3, 2026). We loaded it with --plugin-dir and --setting-sources project in a throwaway folder, so nothing was installed into the normal Claude Code setup. Everything below is one run on one pull request, so treat it as one honest example and not a benchmark.

Quick Summary

QuestionAnswer
What is it?An official plugin with one command, /code-review, that reviews a pull request using parallel agents
Who made it?Anthropic, listed in the official marketplace as code-review
Install command/plugin install code-review@claude-plugins-official
NeedsA GitHub pull request and the GitHub CLI (gh) signed in
What we ranOne full review of a small open pull request (4 minutes 27 seconds) and one skipped trivial pull request
What we did not runThe --comment option that posts to GitHub, because we did not want to write on a stranger’s pull request

What Is the Claude Code Code Review Plugin?

The plugin adds one slash command that takes a pull request and returns a short list of problems worth fixing. According to its README, it launches several agents in parallel, each looking at the change from a different angle, and then throws away anything it is not confident about.

Its own description is “Automated code review for pull requests using multiple specialized agents with confidence-based scoring.” In plain words, it tries to behave like a careful reviewer who only speaks up when sure. A plugin is a bundle of commands, skills or agents that you can add to Claude Code. If that idea is new, our guide to skills versus plugins explains the differences.

The plugin folder is tiny. It holds a license, a README, a manifest and one file, commands/code-review.md. That single file is the whole review recipe, written as plain English instructions to Claude.

Flow diagram of the code review plugin: eligibility check, context gathering, four parallel reviewers, then validation
The four stages the command file describes, from the cheap eligibility check to the final filter

How to Install the Code Review Plugin

Option 1: The official marketplace

The plugin lives in Anthropic’s official marketplace. Our /plugin screen listed it as code-review with 477.6K installs, next to other popular plugins such as Superpowers. To add it to your own setup, run this inside Claude Code.

/plugin install code-review@claude-plugins-official

This writes to your own Claude Code configuration, so we did not run it for the test. The official discover plugins page covers the same install flow, and our plugins guide walks through it step by step.

Claude Code plugin discover screen listing code-review with 477.6K installs
The /plugin Discover tab lists code-review as an official plugin

Option 2: Try it without installing (what we did)

You can load a plugin from a folder for one session only. We cloned the public plugins repository and loaded just the code-review folder.

git clone --depth 1 https://github.com/anthropics/claude-plugins-public
cd my-demo-folder
claude --setting-sources project --plugin-dir /path/to/claude-plugins-public/plugins/code-review

The --plugin-dir flag loads the plugin for that session only. The --setting-sources project flag keeps your personal settings out of the test. The official plugins documentation describes the same flag.

What you need before the first review

The README lists two requirements: a Git repository with GitHub integration, and the GitHub CLI installed and signed in. The command only calls gh for reading pull requests, so run gh auth status first and fix any sign-in problem before you start.

A CLAUDE.md file is optional but recommended. Two of the four reviewers check your changes against the rules in it, so a repository without one gets less out of the plugin. If you do not have one yet, our CLAUDE.md template is a good start.

Read the Command Before You Trust It

A plugin command can run shell commands, so we read the file first. The header of commands/code-review.md limits the tools the command may use without asking.

The allowed shell commands are all read-only gh calls: gh pr view, gh pr diff, gh pr list, gh issue view, gh issue list and gh search. The only write action is gh pr comment, plus an inline comment tool, and the file says to use them only when you pass --comment. We found no network calls besides gh, and no hooks.

The instructions are strict about noise. They tell the agents to flag only code that will fail to compile, code that will produce wrong results whatever the input, and clear rule breaks in CLAUDE.md. Style complaints, “might be a problem” guesses and issues a linter would catch are on the do-not-flag list.

Two Commands With Almost the Same Name

This was a surprise. When we typed /code-rev in the session, Claude Code offered two commands: the built-in /code-review and a second one called /code-review:code-review. The second one is the plugin, with the plugin name written in front.

The built-in command’s description reads “Review the current diff or a PR for bugs and cleanups.” The plugin’s reads “Code review a pull request.” They are different tools, so type the full name when you want the plugin’s four-reviewer recipe.

Claude Code command list showing /code-review and /code-review:code-review
Typing /code-rev shows both the built-in command and the plugin’s command
Diagram of the built-in code-review command and the plugin command code-review:code-review
The plugin name in front is what tells the two commands apart

If you only want to review your own uncommitted changes, the built-in command is the closer fit. For a deeper look at building a review of your own, see our test of a review skill test.

Test 1: Reviewing a Real Pull Request

We needed a real pull request, and creating one on GitHub would have published something under a real account. Instead we picked a small open pull request in the public plugins repository: 52 added lines across two files, a change to how a security hook reads git output. The command accepts a pull request link, so we ran this in an empty demo folder.

/code-review:code-review https://github.com/anthropics/claude-plugins-public/pull/7002

We did not pass --comment, so the review stayed in the terminal. We left the pull request untouched, and afterward it still had zero comments.

What happened, step by step

First, a small Haiku agent checked whether the pull request was worth reviewing. It finished in 7 seconds. Then two more agents started side by side: one to find CLAUDE.md files, one to summarize the change.

Claude Code showing a Haiku eligibility agent, then agents that find CLAUDE.md files and summarize the pull request, with an approval prompt
The eligibility check runs first, then the context agents start in parallel

The summary agent took 1 minute 6 seconds. The CLAUDE.md lookup found nothing, because that repository has no such file. Claude said so and skipped the two rule-checking agents, which is sensible, since there was nothing to check against.

That left the two bug agents. One read only the diff and finished in 30 seconds. The other looked at the logic of the code the pull request introduced and took 2 minutes 36 seconds.

The result

Both bug agents came back empty, so the final answer was “No issues found. I checked PR #7002 for bugs and CLAUDE.md compliance.” Claude added its reasons: the new setting correctly overrides a repository-level value, and the two new tests first prove that a plain git log triggers the stand-in program, so the “not triggered” check means something.

Claude Code final review summary: no issues found, bugs and CLAUDE.md compliance checked, 4 minutes 27 seconds
The finished review: no issues, with the reasons, after 4 minutes 27 seconds

We want to be fair here. “No issues found” on one small pull request does not prove the plugin catches real bugs, and we did not plant a bug to test it. What we can say is that it ran end to end, explained its reasoning, and did not invent problems to look busy.

The approval prompts

The command file allows read-only gh calls, but the agents sometimes built longer commands, for example one that chained gh pr diff with gh pr view, or a loop that fetched files with gh api. Claude Code stopped and asked each time, because those shapes did not match the allowed list.

We answered Yes after reading each one. All the commands we saw only read pull request data. Expect a handful of these prompts during a review, or choose the “don’t ask again for: gh pr *” option if you trust the commands in your own project.

Test 2: A Pull Request That Does Not Need Review

The first step of the recipe is an eligibility check, so we tested it with an automated pull request that changes one line: a version bump for another plugin. The Haiku agent finished in 8 seconds and the command stopped before any reviewers started. The whole run took 17 seconds.

Claude explained that the bump is automated, changes one line, and already passes the repository’s own validation. It also noticed that GitHub reported the pull request under a different repository name than the one in our link, and asked us to confirm. That kind of small catch is useful.

Claude Code stopping a code review because the pull request is an automated one-line version bump
An automated one-line bump is skipped after an 8-second check

Using the –comment Option Safely

The --comment flag turns the review into GitHub comments. With issues found, the command posts one inline comment per issue, with a link to the exact lines. With no issues, it posts a short “Code review” comment saying so.

We did not run this part, so everything here comes from the command file and README. Our advice is to run the command without the flag first, read the result, and add --comment only on pull requests in your own repository.

The README also lists the cases where nothing gets posted: closed pull requests, drafts, trivial or automated ones, ones already reviewed by Claude, and ones with no issue at or above the confidence cutoff. The cutoff is 80 out of 100, and you can change the number by editing the command file.

Real Examples of Where It Fits

  • Before you ask a teammate for review, run it on your own pull request to catch broken imports or wrong logic.
  • On a repository with a CLAUDE.md, use it to check that new code follows the written rules.
  • On a large pull request, let it read the whole change first so your human review can focus on design.

It is not a replacement for tests or a human reviewer. The README itself calls the findings a starting point for human review, and our single run agrees with that modest framing.

Try It Yourself

Pick a small open pull request in a public repository you are allowed to read. Open Claude Code in an empty folder, load the plugin, and paste a prompt like this one.

/code-review:code-review https://github.com/OWNER/REPO/pull/NUMBER

Watch the agents in the terminal, answer the approval prompts only after reading them, and compare the result with what you would have flagged yourself. If you want a bug to find, add a deliberate mistake in a pull request on your own test repository and see whether it is caught.

Common Mistakes

  • Typing /code-review and expecting the plugin. That runs the built-in command, so use /code-review:code-review.
  • Forgetting to sign in to gh. Run gh auth status before the first review.
  • Adding --comment on a pull request you do not own.
  • Expecting a review of a draft or closed pull request. The eligibility check skips them.
  • Judging it on one result. Our run found nothing, which tells you little about other code.

Pro Tips

  • Write a specific CLAUDE.md. Clear rules give the two compliance reviewers something real to check.
  • Keep pull requests small. The README says large changes make the agents slow, and suggests splitting them.
  • Write a clear pull request description. The command passes the title and description to every agent so they understand the intent.
  • Expect a few minutes and several agent runs per review. Our small pull request took 4 minutes 27 seconds, so plan for usage on big ones.
  • Read the command file once. It is short, and you can tune the cutoff or add reviewers by editing it.

Cheat Sheet

Cheat sheet card for the Claude Code code review plugin with install command, review command, comment option and key facts
Install, run and key facts for the code review plugin on one card

Should You Keep It?

One short command file, four reviewers, and a filter that prefers silence to guesses.

Keep it if you work with pull requests on GitHub and want a quick second pair of eyes before a human looks. It is free, small, readable and read-only unless you ask it to comment. It is a weaker fit if your code is not on GitHub, since the command is built around gh.

Skip it if you only want to check local changes. The built-in command, or a skill you write yourself, is simpler. Our subagent format guide shows how to build a reviewer agent of your own.

Frequently Asked Questions

Is the Claude Code code review plugin free?

The plugin itself costs nothing, but the agents use your Claude Code usage while they run. Our review used several agents over about four and a half minutes.

Does the plugin post comments by default?

No. Without --comment it prints the review in your terminal only. We checked that the pull request still had no comments afterward.

Do I need a CLAUDE.md file?

No, but two reviewers check your changes against it. In our run there was none, so those two agents were skipped and only the bug scans ran.

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

The first is built into Claude Code and the second is the plugin’s command. Both showed up in our command list, with different descriptions.

Can it review code that is not on GitHub?

The README lists a Git repository with GitHub integration and the GitHub CLI as requirements, and the command uses gh to read the pull request. We did not test any other host.

Conclusion

The Claude Code code review plugin is a short, readable recipe that turns a pull request link into a filtered review, and in our test it ran cleanly, skipped what it should, and stayed quiet when it found nothing. We tested one real pull request and one trivial one, so judge it on your own code before you rely on it. Browse the rest of the series in our Claude Code tutorials, and read about the model behind it in our Claude AI overview.

Newsletter

New AI tools in your inbox

The best new tools and the AI news that matters, in one short email. Unsubscribe any time.

Free · No spam · Unsubscribe any time

✓ Looks like you’re subscribed

Loading Google’s sign-up form…

Looks like you’re already subscribed

Thanks for reading! New AI tools and the AI news that matters will land in your inbox.

Not subscribed yet? Refresh the page to load the sign-up form.

The sign-up form couldn’t load. If you use an ad or content blocker, allow news.google.com and reload the page.

Free instant check before you pay. Takes a few seconds.

Scroll to Top