Debate Review
Description
Multi-agent debate code review that spawns multiple specialized reviewer agents, each analyzing code from a different perspective. Results are aggregated via consensus voting.
Usage
/debate-review <file-or-diff> [--perspectives perf,security,maintain]
Perspectives
| Perspective | Focus Areas |
|---|---|
| performance | Time/space complexity, memory leaks, I/O bottlenecks, caching |
| security | Input validation, injection, OWASP Top 10, data exposure |
| maintainability | Readability, DRY, SRP, error handling, test implications |
Output Format
Debate Review Report
====================
Target: src/main/auth/sso-manager.js
Perspectives: performance, security, maintainability
| Reviewer | Vote | Critical | Warning | Info |
| --------------- | ---------- | -------- | ------- | ---- |
| performance | APPROVE | 0 | 1 | 2 |
| security | NEEDS_WORK | 1 | 3 | 0 |
| maintainability | APPROVE | 0 | 0 | 4 |
Verdict: NEEDS_WORK (consensus: 0.70)
Verdict Scale
- APPROVE - Average score >= 0.7, no critical issues
- NEEDS_WORK - Average score 0.4-0.7, issues to address
- REJECT - Average score < 0.4, critical issues found