Sponsor Suno AI Music arrow_forward
Plugin

Code Review by anthropics

Automated code review for pull requests using multiple specialized agents with confidence-based scoring

Type
Plugin
GitHub stars
37.1k
License
Apache-2.0
Repo last updated
Sep 25, 2026
Author
Anthropic

What Code Review by anthropics is

Code Review by anthropics is a plugin published in the anthropics/claude-plugins-official repository on GitHub, which has about 37.1k stars. The repository describes itself as: “Official, Anthropic-managed directory of high quality Claude Code Plugins.”

A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.

Installing Code Review adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.

How to install Code Review by anthropics

Claude Code

  1. Add the repository as a plugin marketplace: claude plugin marketplace add anthropics/claude-plugins-official
  2. Install the plugin: claude plugin install code-review@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
  3. Restart the session if the new skills or commands don't appear straight away.

Claude Cowork

  1. Open Customize → Plugins and choose Add marketplace.
  2. Enter anthropics/claude-plugins-official (the owner/repo shorthand works for GitHub).
  3. Find Code Review in the list, click Install, then connect any connectors it needs from its Connectors tab.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/code-review/.claude-plugin/plugin.json, shared under the repository's Apache-2.0 license. Read the full file on GitHub.

Automated code review for pull requests using multiple specialized agents with confidence-based scoring to filter false positives.

Overview

The Code Review Plugin automates pull request review by launching multiple agents in parallel to independently audit changes from different perspectives. It uses confidence scoring to filter out false positives, ensuring only high-quality, actionable feedback is posted.

Commands

/code-review

Performs automated code review on a pull request using multiple specialized agents.

What it does:

  1. Checks if review is needed (skips closed, draft, trivial, or already-reviewed PRs)
  2. Gathers relevant CLAUDE.md guideline files from the repository
  3. Summarizes the pull request changes
  4. Launches 4 parallel agents to independently review:
  • Agents #1 & #2: Audit for CLAUDE.md compliance
  • Agent #3: Scan for obvious bugs in changes
  • Agent #4: Analyze git blame/history for context-based issues
  1. Scores each issue 0-100 for confidence level
  2. Filters out issues below 80 confidence threshold
  3. Posts review comment with high-confidence issues only

Usage:

/code-review

Example workflow:

# On a PR branch, run:
/code-review

# Claude will:
# - Launch 4 review agents in parallel
# - Score each issue for confidence
# - Post comment with issues ≥80 confidence
# - Skip posting if no high-confidence issues found

Features:

  • Multiple independent agents for comprehensive review
  • Confidence-based scoring reduces false positives (threshold: 80)
  • CLAUDE.md compliance checking with explicit guideline verification
  • Bug detection focused on changes (not pre-existing issues)
  • Historical context analysis via git blame
  • Automatic skipping of closed, draft, or already-reviewed PRs
  • Links directly to code with full SHA and line ranges

Review comment format:

## Code review

Found 3 issues:

1. Missing error handling for OAuth callback (CLAUDE.md says "Always handle OAuth errors")

https://github.com/owner/repo/blob/abc123.../src/auth.ts#L67-L72

2. Memory leak: OAuth state not cleaned up (bug due to missing cleanup in finally block)

https://github.com/owner/repo/blob/abc123.../src/auth.ts#L88-L95

3. Inconsistent naming pattern (src/conventions/CLAUDE.md says "Use camelCase for functions")

https://github.com/owner/repo/blob/abc123.../src/utils.ts#L23-L28

Confidence scoring:

  • 0: Not confident, false positive
  • 25: Somewhat confident, might be real
  • 50: Moderately confident, real but minor
  • 75: Highly confident, real and important
  • 100: Absolutely certain, definitely real

False positives filtered:

  • Pre-existing issues not introduced in PR
  • Code that looks like a bug but isn't
  • Pedantic nitpicks
  • Issues linters will catch
  • General quality issues (unless in CLAUDE.md)
  • Issues with lint ignore comments

Installation

This plugin is included in the Claude Code repository. The command is automatically available when using Claude Code.

Best Practices

Using /code-review

  • Maintain clear CLAUDE.md files for better compliance checking
  • Trust the 80+ confidence threshold - false positives are filtered
  • Run on all non-trivial pull requests
  • Review agent findings as a starting point for human review
  • Update CLAUDE.md based on recurring review patterns

When to use

  • All pull requests with meaningful changes
  • PRs touching critical code paths
  • PRs from multiple contributors
  • PRs where guideline compliance matters

When not to use

  • Closed or draft PRs (automatically skipped anyway)
  • Trivial automated PRs (automatically skipped)
  • Urgent hotfixes requiring immediate merge
  • PRs already reviewed (automatically skipped)

Workflow Integration

Standard PR review workflow:

# Create PR with changes
/code-review

# Review the automated feedback
# Make any necessary fixes
# Merge when ready

As part of CI/CD:

# Trigger on PR creation or update
# Automatically posts review comments
# Skip if review already exists

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Code Review by anthropics?

Code Review by anthropics is a plugin for Claude Code and Claude Cowork from the anthropics/claude-plugins-official repository on GitHub. Automated code review for pull requests using multiple specialized agents with confidence-based scoring

How do I install Code Review by anthropics in Claude Code?

Add the repository as a plugin marketplace: claude plugin marketplace add anthropics/claude-plugins-official Install the plugin: claude plugin install code-review@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.

Can I use Code Review by anthropics in Claude Cowork?

Open Customize → Plugins and choose Add marketplace. Enter anthropics/claude-plugins-official (the owner/repo shorthand works for GitHub). Find Code Review in the list, click Install, then connect any connectors it needs from its Connectors tab.

Is Code Review by anthropics safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under Apache-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.