Home
cd ../playbooks
Academic ResearchIntermediate

Multi-Agent Parallel Review

Run multiple specialized review agents in parallel — proofreader, code reviewer, security auditor, etc. Each agent focuses on one dimension with full attention.

15 minutes
By communitySource
#multi-agent#review#parallel#specialized-agents#code-review#quality

One reviewer catches typos but misses security holes. Another spots architectural issues but ignores documentation gaps. Sequential reviews take days and each reviewer only sees their own dimension. You need all perspectives simultaneously, not one at a time.

Who it's for: engineering teams wanting thorough multi-dimensional code review, tech leads reviewing critical PRs before production deploys, security-conscious teams adding automated audit to their review process, open-source maintainers handling high volumes of contributions, teams establishing consistent review quality standards

Example

"Review this PR from every angle before we merge" → Parallel reports from 5 specialized agents: code quality (3 issues), security audit (1 vulnerability), performance (2 optimizations), documentation (4 gaps), and test coverage (2 untested paths) — all in under 2 minutes

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Multi-Agent Review System

## Available Review Agents

### Code Quality Agent
**Focus**: Clean code, patterns, maintainability
**Checks**:
- Function length and complexity
- Naming conventions
- DRY violations
- Code organization
- Error handling patterns
- Test coverage gaps

### Security Agent
**Focus**: Vulnerabilities and security risks
**Checks**:
- Input validation
- SQL injection risks
- XSS vulnerabilities
- Authentication/authorization gaps
- Secrets in code
- Dependency vulnerabilities

### Performance Agent
**Focus**: Speed and resource usage
**Checks**:
- N+1 queries
- Unnecessary re-renders
- Memory leaks
- Large bundle imports
- Missing caching opportunities
- Inefficient algorithms

### Accessibility Agent
**Focus**: a11y compliance
**Checks**:
- ARIA labels
- Keyboard navigation
- Color contrast
- Screen reader compatibility
- Focus management
- Semantic HTML

### Style Agent
**Focus**: Code formatting and conventions
**Checks**:
- Consistent formatting
- Import organization
- Comment quality
- Naming consistency
- File structure

### Documentation Agent
**Focus**: Docs and comments
**Checks**:
- Missing JSDoc/docstrings
- Outdated comments
- README accuracy
- API documentation
- Inline explanations for complex logic

## Running Reviews

### Single Agent
```
Run the security agent on src/auth/
```

### Parallel Multi-Agent
```
Run parallel review: security, performance, accessibility on src/components/
```

### Full Review Suite
```
Run all review agents on the checkout module
```

## Agent Selection by File Type

| File Type | Recommended Agents |
|-----------|-------------------|
| `.ts/.js` (API) | Security, Performance, Code Quality |
| `.tsx/.jsx` (UI) | Accessibility, Performance, Style |
| `.py` (Backend) | Security, Performance, Code Quality |
| `.sql` | Security, Performance |
| `.md` | Documentation, Style |
| Config files | Security, Code Quality |

## Parallel Execution Rules

1. Independent agents run simultaneously
2. Each agent produces its own report
3. Orchestrator synthesizes into unified priority list
4. Critical issues from ANY agent block approval

## Report Synthesis Format

After all agents complete:

```
## Multi-Agent Review Summary

### Critical (fix immediately)
- [Security] SQL injection in users.ts:45
- [Performance] N+1 query in orders.ts:78

### High Priority
- [Accessibility] Missing ARIA labels in Modal.tsx
- [Security] Rate limiting missing on /api/login

### Medium Priority
- [Code Quality] Function exceeds 50 lines in utils.ts:120
- [Style] Inconsistent naming convention

### Low Priority
- [Documentation] Missing JSDoc on helper functions
- [Style] Import order not alphabetized

**Combined Score**: 76/100
**Blocking Issues**: 2 Critical, 2 High
**Recommendation**: Fix Critical and High before merge
```

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Instead of asking Claude to review code for "everything" (and missing things), this playbook runs multiple specialized agents in parallel. Each agent examines the same files but focuses on one specific dimension: security, performance, style, etc. The results are synthesized into a prioritized action list.

Why specialized agents beat generalist review: When you ask for a review of "grammar, layout, math, code quality, and flow" in one pass, Claude skims everything and catches some issues. Specialized agents give full attention to each dimension and catch more.

Prerequisites

  • Claude Code installed and configured
  • Code or documents to review Run the security agent on src/auth/

### Parallel Multi-Agent

Run parallel review: security, performance, accessibility on src/components/


### Full Review Suite

Run all review agents on the checkout module


## Agent Selection by File Type

| File Type | Recommended Agents |
|-----------|-------------------|
| `.ts/.js` (API) | Security, Performance, Code Quality |
| `.tsx/.jsx` (UI) | Accessibility, Performance, Style |
| `.py` (Backend) | Security, Performance, Code Quality |
| `.sql` | Security, Performance |
| `.md` | Documentation, Style |
| Config files | Security, Code Quality |

## Parallel Execution Rules

1. Independent agents run simultaneously
2. Each agent produces its own report
3. Orchestrator synthesizes into unified priority list
4. Critical issues from ANY agent block approval

## Report Synthesis Format

After all agents complete:

Multi-Agent Review Summary

Critical (fix immediately)

  • [Security] SQL injection in users.ts:45
  • [Performance] N+1 query in orders.ts:78

High Priority

  • [Accessibility] Missing ARIA labels in Modal.tsx
  • [Security] Rate limiting missing on /api/login

Medium Priority

  • [Code Quality] Function exceeds 50 lines in utils.ts:120
  • [Style] Inconsistent naming convention

Low Priority

  • [Documentation] Missing JSDoc on helper functions
  • [Style] Import order not alphabetized

Combined Score: 76/100 Blocking Issues: 2 Critical, 2 High Recommendation: Fix Critical and High before merge


## Custom Agents

Add domain-specific agents:

### Example: React Best Practices Agent
**Focus**: React-specific patterns
**Checks**:
- Proper hook usage
- Unnecessary state
- Missing memoization
- Effect dependencies
- Component composition
- Prop drilling

### Example: API Design Agent
**Focus**: REST/GraphQL best practices
**Checks**:
- Consistent naming
- Proper HTTP methods
- Error response format
- Pagination patterns
- Versioning
- Rate limiting

Step-by-Step Setup

Step 1: Add to your CLAUDE.md

Add the multi-agent review system to your project's CLAUDE.md.

Step 2: Customize agents for your stack

Remove agents that don't apply (e.g., Accessibility for backend-only projects) and add domain-specific ones.

Step 3: Test with a single agent

Run the security agent on src/routes/

Step 4: Run parallel review

Run parallel review: security, performance, code-quality on src/

Example Usage

User:

"Run parallel review: security, performance, accessibility on the payment form component"

Claude:

Multi-Agent Review: PaymentForm.tsx

Running 3 agents in parallel...


Security Agent Report

Score: 85/100

  • (-10) Credit card field doesn't mask input
  • (-5) Form doesn't prevent double submission

Performance Agent Report

Score: 90/100

  • (-5) useEffect triggers on every render (missing deps)
  • (-5) Large Stripe library loaded synchronously

Accessibility Agent Report

Score: 78/100

  • (-10) Error messages not announced to screen readers
  • (-7) Tab order skips expiry date field
  • (-5) Submit button lacks loading state announcement

Synthesis

Critical

  • [Accessibility] Error messages not accessible (WCAG 4.1.3)

High Priority

  • [Security] Mask credit card input
  • [Accessibility] Fix tab order for expiry field

Medium Priority

  • [Security] Prevent double submission
  • [Performance] Lazy load Stripe
  • [Performance] Fix useEffect dependencies

Low Priority

  • [Accessibility] Announce loading state

Combined Score: 82/100 Verdict: Fix Critical and High before merge

Tips

  • Run agents in parallel: Explicitly ask for parallel execution to save time. "Run security AND performance agents" triggers sequential; "Run parallel review: security, performance" triggers concurrent.
  • Start with 2-3 agents: Don't run all agents on every change. Pick the most relevant for the code you're reviewing.
  • Critical from any agent blocks: A security critical issue blocks even if performance is perfect.
  • Add custom agents for your domain: A React project benefits from a React-specific agent. A payment system needs a PCI compliance agent.

Troubleshooting

Problem: Agents find conflicting issues

Solution: That's expected. One agent might suggest caching, another might flag cached data as stale risk. The synthesis prioritizes by severity, and you make the final call.

Problem: Too many low-priority issues

Solution: Filter by severity: "Run parallel review, only report Critical and High priority issues."

Problem: Reviews take too long

Solution: Run agents on smaller scope: specific files or functions rather than entire directories.

$Related Playbooks

Academic Research

Orchestrator Contractor Mode

Let Claude autonomously coordinate multi-step tasks like a contractor — planning, implementing, reviewing, fixing, and verifying without constant supervision.

10 minutes
Intermediate
Academic Research

Parallel Task Agents

Spawn multiple Claude agents simultaneously to handle independent subtasks. Review 3 papers at once, analyze multiple files in parallel, or run concurrent simulations.

5 minutes
Intermediate
Academic Research

Scientific Manuscript Editor

Five focused editing passes for scientific manuscripts: verb tense conventions by section, topic-sentence structure, line-by-line grammar, substantive clarity editing, and a pre-submission compliance check.

10 minutes
Intermediate
Academic Research

Scientific Depmap

Query the Cancer Dependency Map (DepMap) for cancer cell line gene dependency scores (CRISPR Chronos), drug sensitivity data, and gene effect profiles. Use for identifying cancer-specific vulnerabilities, synthetic lethal interactions, and validat...

5 minutes
Beginner
Academic Research

Scientific Dhdna Profiler

Extract cognitive patterns and thinking fingerprints from any text. Use this skill when the user wants to analyze how someone thinks, understand cognitive style, profile writing or speech patterns, compare thinking styles between people, asks 'wha...

15 minutes
Advanced
Academic Research

Scientific Diffdock

Diffusion-based molecular docking. Predict protein-ligand binding poses from PDB/SMILES, confidence scores, virtual screening, for structure-based drug design. Not for affinity prediction.

15 minutes
Advanced
Academic Research

Scientific Dnanexus Integration

DNAnexus cloud genomics platform. Build apps/applets, manage data (upload/download), dxpy Python SDK, run workflows, FASTQ/BAM/VCF, for genomics pipeline development and execution.

10 minutes
Intermediate
Academic Research

Scientific Drugbank Database

Access and analyze comprehensive drug information from the DrugBank database including drug properties, interactions, targets, pathways, chemical structures, and pharmacology data. This skill should be used when working with pharmaceutical data, d...

5 minutes
Beginner
Academic Research

Scientific Ena Database

Access European Nucleotide Archive via API/FTP. Retrieve DNA/RNA sequences, raw reads (FASTQ), genome assemblies by accession, for genomics and bioinformatics pipelines. Supports multiple formats.

5 minutes
Beginner
Academic Research

Scientific Ensembl Database

Query Ensembl genome database REST API for 250+ species. Gene lookups, sequence retrieval, variant analysis, comparative genomics, orthologs, VEP predictions, for genomic research.

5 minutes
Beginner
Academic Research

Scientific Esm

Comprehensive toolkit for protein language models including ESM3 (generative multimodal protein design across sequence, structure, and function) and ESM C (efficient protein embeddings and representations). Use this skill when working with protein...

15 minutes
Advanced
Academic Research

Scientific Etetoolkit

Phylogenetic tree toolkit (ETE). Tree manipulation (Newick/NHX), evolutionary event detection, orthology/paralogy, NCBI taxonomy, visualization (PDF/SVG), for phylogenomics.

10 minutes
Intermediate

Browse all Academic Research playbooks →