mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-20 04:15:11 +00:00
Rewrite ai-review workflow to use parallel subagents for faster, more thorough PR reviews. Splits monolithic single-agent review into 4-stage pipeline: triage → 3 parallel focused reviewers → adversarial red-team → aggregated single comment. Changes: - Add Agent tool to allowedTools for subagent spawning - Increase max-turns 30→50, timeout 15→18min for subagent overhead - Rewrite review-prompt.md as orchestration prompt (198→93 lines) - Create 4 focused subagent prompts in .github/review-prompts/: - security.md: injection, auth, race conditions, supply chain - quality.md: error handling, false assumptions, AI blind spots - ccs-compliance.md: all 12 CCS-specific project rules - adversarial.md: red-team gap hunter (runs after parallel phase) - Load all subagent prompts from base branch (security model preserved) - Scope-aware dispatch: trivial PRs skip subagents entirely Target: reduce avg review time from ~7min to <5min. Closes #837