Ultrareview
Multi-agent parallel code review: spawn a fleet of specialized review agents, cross-validate findings, and output a consolidated report with severity levels.
Quick Start
- Determine review scope (files, directories, PR diff, or full project)
- Spawn 5 parallel review agents (scale to 20 for large codebases):
- Logic Verifier — algorithmic correctness, off-by-one, unreachable code
- Security Sentinel — OWASP Top 10, injection, auth bypass, secrets
- Performance Oracle — N+1 queries, blocking I/O, complexity
- Boundary Inspector — null handling, empty collections, overflow, timezones
- Architecture Reviewer — SOLID violations, coupling, API mismatches
- Cross-validate: each agent challenges other agents' findings; discard unconfirmed issues
- Aggregate, deduplicate, rank by severity, output report
Review Process
Phase 1: Context Collection
- Read project's
CLAUDE.md and REVIEW.md for custom rules
- Identify scope: specific files, git diff, or full codebase
- Map entry points, dependencies, and data flow paths
Phase 2: Parallel Agent Dispatch
Spawn agents as subagents or Agent Team members. Each agent receives:
- Full code context for the review scope
- Specialization prompt defining its review angle
- Project-specific rules from CLAUDE.md / REVIEW.md
Minimum 5 agents for meaningful cross-validation. Scale up for large/critical codebases.
Phase 3: Cross-Validation
After initial findings:
- Share findings across agents
- Each agent attempts to disprove others' findings (check if issue is handled elsewhere, verify fix won't regress)
- Retain only findings confirmed by evidence
- Assign confidence score based on cross-agent agreement
Phase 4: Report Generation
Severity classification:
- 🔴 Critical: Must fix. Confirmed bugs, security vulnerabilities, data corruption
- 🟡 Warning: Should fix. Potential issues, performance concerns, code smells
- 🟣 Pre-existing: Not introduced by current changes. Historical tech debt
Each finding includes:
- File + line range
- Issue description
- Root cause analysis
- Suggested fix with code
- Reasoning trace (collapsible)
Output Format
# Ultrareview Report
**Scope**: [files/directories reviewed]
**Agents**: [count] | **Duration**: [time] | **Findings**: [count]
## 🔴 Critical (N)
### [C1] [Short title]
- **Location**: `path/to/file.ts:42-58`
- **Issue**: [Description]
- **Root cause**: [Why this is a bug]
- **Fix**: [Suggested code change]
## 🟡 Warning (N)
### [W1] ...
## 🟣 Pre-existing (N)
### [P1] ...
## ✅ Areas Reviewed — No Issues
- [List of clean areas]
Excluding From Review
Respect REVIEW.md ignore patterns. Common exclusions:
- Generated code, vendored dependencies, test fixtures
- Style/formatting issues (never flag these)
Implementation Options
Choose based on your environment:
- Agent Teams (native Claude Code) — See references/diy-setup.md for slash command setup with
TeamCreate
- Compound Engineering Plugin — Pre-built 12+ agent review, see references/diy-setup.md
- Custom Subagents — Maximum control with individual
.claude/agents/*.md files, see references/diy-setup.md
- CI/CD Headless — GitHub Actions / pre-push hook integration, see references/diy-setup.md
Architecture Deep Dive
For execution flow diagrams, agent specialization details, cross-validation mechanics, cost benchmarks, and product comparison table → see references/architecture.md.
1---2name: ultrareview3description: Multi-agent parallel code review system inspired by Claude Code's /ultrareview. Spawn 5-20 specialized agents (security, logic, performance, edge cases, architecture) to review code simultaneously, cross-validate findings, and produce a consolidated bug report. Use when asked to do deep code review, ultrareview, multi-agent review, comprehensive bug hunting, security audit, or thorough pre-merge code inspection.4---56# Ultrareview78Multi-agent parallel code review: spawn a fleet of specialized review agents, cross-validate findings, and output a consolidated report with severity levels.910## Quick Start11121. Determine review scope (files, directories, PR diff, or full project)132. Spawn 5 parallel review agents (scale to 20 for large codebases):14 - **Logic Verifier** — algorithmic correctness, off-by-one, unreachable code15 - **Security Sentinel** — OWASP Top 10, injection, auth bypass, secrets16 - **Performance Oracle** — N+1 queries, blocking I/O, complexity17 - **Boundary Inspector** — null handling, empty collections, overflow, timezones18 - **Architecture Reviewer** — SOLID violations, coupling, API mismatches193. Cross-validate: each agent challenges other agents' findings; discard unconfirmed issues204. Aggregate, deduplicate, rank by severity, output report2122## Review Process2324### Phase 1: Context Collection25- Read project's `CLAUDE.md` and `REVIEW.md` for custom rules26- Identify scope: specific files, git diff, or full codebase27- Map entry points, dependencies, and data flow paths2829### Phase 2: Parallel Agent Dispatch30Spawn agents as subagents or Agent Team members. Each agent receives:31- Full code context for the review scope32- Specialization prompt defining its review angle33- Project-specific rules from CLAUDE.md / REVIEW.md3435Minimum 5 agents for meaningful cross-validation. Scale up for large/critical codebases.3637### Phase 3: Cross-Validation38After initial findings:391. Share findings across agents402. Each agent attempts to disprove others' findings (check if issue is handled elsewhere, verify fix won't regress)413. Retain only findings confirmed by evidence424. Assign confidence score based on cross-agent agreement4344### Phase 4: Report Generation4546Severity classification:47- 🔴 **Critical**: Must fix. Confirmed bugs, security vulnerabilities, data corruption48- 🟡 **Warning**: Should fix. Potential issues, performance concerns, code smells49- 🟣 **Pre-existing**: Not introduced by current changes. Historical tech debt5051Each finding includes:52- File + line range53- Issue description54- Root cause analysis55- Suggested fix with code56- Reasoning trace (collapsible)5758## Output Format5960```markdown61# Ultrareview Report62**Scope**: [files/directories reviewed]63**Agents**: [count] | **Duration**: [time] | **Findings**: [count]6465## 🔴 Critical (N)66### [C1] [Short title]67- **Location**: `path/to/file.ts:42-58`68- **Issue**: [Description]69- **Root cause**: [Why this is a bug]70- **Fix**: [Suggested code change]7172## 🟡 Warning (N)73### [W1] ...7475## 🟣 Pre-existing (N)76### [P1] ...7778## ✅ Areas Reviewed — No Issues79- [List of clean areas]80```8182## Excluding From Review8384Respect `REVIEW.md` ignore patterns. Common exclusions:85- Generated code, vendored dependencies, test fixtures86- Style/formatting issues (never flag these)8788## Implementation Options8990Choose based on your environment:9192- **Agent Teams** (native Claude Code) — See [references/diy-setup.md](references/diy-setup.md#option-1-agent-teams-native) for slash command setup with `TeamCreate`93- **Compound Engineering Plugin** — Pre-built 12+ agent review, see [references/diy-setup.md](references/diy-setup.md#option-2-compound-engineering-plugin)94- **Custom Subagents** — Maximum control with individual `.claude/agents/*.md` files, see [references/diy-setup.md](references/diy-setup.md#option-3-custom-subagent-configuration)95- **CI/CD Headless** — GitHub Actions / pre-push hook integration, see [references/diy-setup.md](references/diy-setup.md#option-4-cicd-integration)9697## Architecture Deep Dive9899For execution flow diagrams, agent specialization details, cross-validation mechanics, cost benchmarks, and product comparison table → see [references/architecture.md](references/architecture.md).