Optimize review: small-PR and incremental fast paths
Merged
DO
6mo ago+635+635+012345678901234567890123456789-196-196-012345678901234567890123456789
Summary
- Small PRs (<10 lines): single Opus call instead of full 3-member council (1 invocation vs 4)
- Re-reviews (prior marker exists): single Opus call with prior review context, focused on delta
- First review of non-small PRs: full council (unchanged)
- New config:
SMALL_PR_THRESHOLDrepo variable (default 10)
Cost impact
- Small docs PRs (like
.github#101): ~1 min instead of ~5 min, 1 invocation instead of 4 - Re-reviews after Claude fixes: ~1 min focused check instead of full re-analysis
- Full council: unchanged for substantive first reviews
Test plan
- Let the automation review and merge this PR
- Verify mode detection in logs (
mode: small|incremental|full) - Verify small PR uses single Opus path
- Verify re-review after new commits uses incremental path
š¤ Generated with Claude Code