Advanced12 min
Code Review and Security Audit Workflows
Multi-pass code review using Plan Mode, subagent-based parallel review, /ultrareview for pre-merge quality gates, and Claude Code Security for semantic vulnerability scanning.
Quick Reference
- →Plan Mode for review: pure read-only analysis — no files change, focused output
- →Multi-pass review: coordinate from main session, spawn specialized subagents per concern
- →/ultrareview (April 2026): cloud-based parallel multi-agent review from multiple angles
- →Claude Code Security (February 2026): semantic cross-file vulnerability analysis, <5% false positive rate
- →OWASP-focused review: SQL injection, XSS, auth bypass, IDOR, secrets, dependency vulns
- →Automated review catches pattern violations; human review catches business logic errors
- →Output format: Critical (block merge), Warning (should fix), Suggestion (optional)
- →/ultrareview is broader quality; Claude Code Security is specifically for vulnerability gates
Review Modes
Claude Code supports several review modes, each suited to different review objectives. Understanding which tool to use — and when — prevents both under-reviewing (missing real issues) and over-reviewing (wasting time on automated checks that should be automated).
| Mode | When to use | Scope | Duration |
|---|---|---|---|
| Plan Mode review | Quick analysis before implementation or review | Current session context | 1–3 min |
| Subagent multi-pass | Complex changes with multiple concern dimensions | Specified files/PR | 5–10 min |
| /ultrareview | Pre-merge gates on large features or refactors | Full PR or specified scope | 10–20 min |
| Claude Code Security | Security gates, compliance audits, CVE triage | Full codebase or PR | 5–15 min |
Plan Mode is the fastest option for ad-hoc review during implementation. You're asking Claude to analyze without modifying — useful for 'does this approach have any obvious security issues?' before committing to it. The other modes are for structured pre-merge review workflows.
Plan Mode review prompt — focused scope, no file modifications