Code Review by anthropics
Automated code review for pull requests using multiple specialized agents with confidence-based scoring
- Type
- Plugin
- Repository
- anthropics/claude-plugins-official
- GitHub stars
- 37.1k
- License
- Apache-2.0
- Repo last updated
- Sep 25, 2026
- Source file
- plugins/code-review/.claude-plugin/plugin.json
- 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
- 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.
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.
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:
- Checks if review is needed (skips closed, draft, trivial, or already-reviewed PRs)
- Gathers relevant CLAUDE.md guideline files from the repository
- Summarizes the pull request changes
- 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
- Scores each issue 0-100 for confidence level
- Filters out issues below 80 confidence threshold
- Posts review comment with high-confidence issues only
Usage:
/code-reviewExample 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 foundFeatures:
- 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-L28Confidence 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 readyAs 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
- Comment Analyzer Use this agent when you need to analyze code comments for accuracy, completeness, and long-term maintainability. This includes (1) after generating large documentation comments or docstrings, (2) before finalizing a pull request that adds or modifies comments, (3) when reviewing existing comments for potential technical debt or comment rot, and (4) when you need to verify that comments… Subagent · anthropics/claude-plugins-official
- Context7 Upstash Context7 MCP server for up-to-date documentation lookup. Connects to Context7's hosted remote MCP server (https://mcp.context7.com/mcp) — no local Node.js or npx required — to pull version-specific documentation and code examples directly from source repositories into your LLM context. Works anonymously out of the box; set CONTEXT7_API_KEY for higher rate limits. Plugin · anthropics/claude-plugins-official
- Commit Commands Streamline your git workflow with simple commands for committing, pushing, and creating pull requests Plugin · anthropics/claude-plugins-official
- Conversation Analyzer Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Typical triggers include the /hookify command being invoked without arguments, or the user explicitly asking to look back at the current conversation and surface mistakes that should be prevented in the future. See "When to invoke" in the agent body for worked scenarios. Subagent · anthropics/claude-plugins-official
- Code Simplifier Agent that simplifies and refines code for clarity, consistency, and maintainability while preserving functionality Plugin · anthropics/claude-plugins-official
- Code Modernization Guided modernization for any legacy codebase: start with /modernize, get an assessment, an interactive map, the business rules mined from the code, and a plan you approve, then an upgrade, a rewrite or a rebuild with independent proof that the new code behaves like the old. Includes security hardening, a one-page report, specialist agents, and an optional live progress pane (early access). Plugin · anthropics/claude-plugins-official
- Claude Md Management Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current. Plugin · anthropics/claude-plugins-official
- Claude Code Setup Analyze codebases and recommend tailored Claude Code automations such as hooks, skills, MCP servers, and subagents. Plugin · anthropics/claude-plugins-official