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

Paper Figures to PowerPoint

Extract all figures, tables, and equations from a research paper PDF and generate a polished PowerPoint deck automatically.

10 minutes
Intermediate
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

Academic Research Skills for Claude Code: Install & Workflow

The academic-research-skills plugin (Imbad0202/academic-research-skills on GitHub): deep research, literature review, paper writing, citation checks, and peer review for Claude Code — with a project brief that keeps every /ars command on-topic.

10 minutes
Intermediate
Academic Research

Research Paper Structure Editor

Improve the structural clarity of ML/CV/NLP research papers before submission — a reverse-outlining check that maps every paragraph's topic sentence back to the section thesis, section-by-section guidance for Abstract through Conclusion, a five-dimension adversarial self-review, and a claim-evidence map that catches unsupported claims in the Abstract and Introduction before a reviewer does.

5 minutes
Intermediate
Academic Research

Replication-First Coding

When working with existing code or papers, match the original exactly before extending. Verify against gold standard numbers to catch silent bugs.

10 minutes
Intermediate
Academic Research

Research Exploration Sandbox

Create a structured explorations/ folder for experimental work. Fast-track experiments without full rigor, then graduate successful ones to production code.

5 minutes
Beginner
Academic Research

Research Ideation Generator

Generate research questions, hypotheses, and empirical strategies. Brainstorm ideas systematically with structured prompts that push beyond obvious approaches.

5 minutes
Beginner
Academic Research

Scholarly Writing Refiner

Polish academic English at the sentence level — a five-dimension review (grammar, word choice, voice, coherence, sentence structure) with concrete before/after tables for colloquial-to-academic substitutions, active/passive voice selection by scenario, transition-signal words by logical relationship, and section-specific tense and structure conventions for the Abstract and Introduction.

5 minutes
Beginner
Academic Research

Scientific Adaptyv

Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein ...

10 minutes
Intermediate
Academic Research

Scientific Alphafold Database

Access AlphaFold 200M+ AI-predicted protein structures. Retrieve structures by UniProt ID, download PDB/mmCIF files, analyze confidence metrics (pLDDT, PAE), for drug discovery and structural biology.

10 minutes
Intermediate
Academic Research

Scientific Anndata

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; f...

10 minutes
Intermediate

Browse all Academic Research playbooks →