Performs pre-landing PR audits. Finds bugs that pass CI but crash production. Acts as the final gatekeeper for code quality and safety.
- Detect the original
DESIGN.mdorPLAN.md. - Identify "Scope Drift" (features added that weren't in the plan).
- Pass 1: Critical Logic: Focus on race conditions, memory safety, and security.
- Pass 2: Style & Maintainability: Refactoring for clarity and documentation.
- Auto-scaled based on PR size.
- For large PRs, perform a "Cross-Model Second Opinion" (/codex).
- Classify findings:
AUTO-FIX,ASK,IGNORE. - Apply approved fixes before merging.
- Greptile Awareness: Read and triage comments from external automated reviewers.
- Regression Test: Ensure every fix has a corresponding test case.
- No Merging with Bugs: Absolute gatekeeper role.