code-review

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

View on GitHub
Author Anthropic
Namespace @anthropics/claude-plugins-official
Category productivity
Version 1.0.0
Stars 5,333
Downloads 15
self.md verified
Table of content

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

Installation

npx claude-plugins install @anthropics/claude-plugins-official/code-review

Contents

Folders: commands

Files: README.md

Documentation

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
  5. Scores each issue 0-100 for confidence level
  6. Filters out issues below 80 confidence threshold
  7. 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:

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:

False positives filtered:

Installation

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

Best Practices

Using /code-review

When to use

When not to use

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

Requirements

Troubleshooting

Review takes too long

Issue: Agents are slow on large PRs

Solution:

Too many false positives

Issue: Review flags issues that aren’t real

Solution:

No review comment posted

Issue: /code-review runs but no comment appears

Solution: Check if:

…(truncated)

Source

View on GitHub

Tags: productivity