Overview
This plugin runs comprehensive, multi-agent PR reviews that focus on:- CLAUDE.md guideline compliance
- Bug detection in changes
- Historical context analysis
- Confidence-based issue filtering (threshold: 80)
Command: /code-review
Performs automated code review on a pull request using multiple specialized agents.What It Does
Parallel Agent Review
Launches 4 independent agents:
- Agents #1 & #2: Audit for CLAUDE.md compliance
- Agent #3: Scan for obvious bugs in changes
- Agent #4: Analyze git blame/history for context
Usage
Run locally (outputs to terminal):Example Workflow
Features
Multi-Agent Architecture
- Multiple Independent Agents: Each agent reviews from a different perspective
- Redundancy: Two agents check CLAUDE.md compliance for thoroughness
- Specialization: Dedicated agents for bugs, guidelines, and context
- Parallel Execution: All agents run simultaneously for speed
Confidence Scoring
Each issue is independently scored:| Score | Meaning |
|---|---|
| 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 |
Filtered False Positives
- 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
Review Comment Format
Best Practices
Using /code-review
Maintain CLAUDE.md
Clear CLAUDE.md files lead to better compliance checking
Trust the Threshold
The 80+ confidence threshold filters false positives effectively
Run on All PRs
Use for all non-trivial pull requests
Starting Point
Use agent findings as a starting point for human review
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
CI/CD Integration
Requirements
- Git repository with GitHub integration
- GitHub CLI (
gh) installed and authenticated - CLAUDE.md files (optional but recommended for guideline checking)
Configuration
Adjusting Confidence Threshold
The default threshold is 80. To adjust, modifycommands/code-review.md:
80 to your preferred threshold (0-100).
Customizing Review Focus
Editcommands/code-review.md to add or modify agent tasks:
- Add security-focused agents
- Add performance analysis agents
- Add accessibility checking agents
- Add documentation quality checks
Troubleshooting
Review Takes Too Long
Issue: Agents are slow on large PRs Solution:- Normal for large changes - agents run in parallel
- 4 independent agents ensure thoroughness
- Consider splitting large PRs into smaller ones
Too Many False Positives
Issue: Review flags issues that aren’t real Solution:- Default threshold is 80 (already filters most false positives)
- Make CLAUDE.md more specific about what matters
- Consider if the flagged issue is actually valid
No Review Comment Posted
Issue:/code-review runs but no comment appears
Check if:
- PR is closed (reviews skipped)
- PR is draft (reviews skipped)
- PR is trivial/automated (reviews skipped)
- PR already has review (reviews skipped)
- No issues scored ≥ 80 (no comment needed)
GitHub CLI Not Working
Issue:gh commands fail
Solution:
- Install GitHub CLI:
brew install gh(macOS) or GitHub CLI installation - Authenticate:
gh auth login - Verify repository has GitHub remote
Tips
Plugin Information
Author: Boris Cherny ([email protected])Version: 1.0.0