
Custom Code Review rules for Codex | OpenAI Developers
7/20/2026
Introduces custom repository rules for Codex Code Review, enabling developers to define specific checks in `AGENTS.md` to guide code reviews. This feature aims to address common review bottlenecks by encoding team knowledge and invariants, such as API contract preservation and data boundaries, directly into the review process. The post details how these rules are applied, provides examples of rule writing and their impact on review findings, and discusses best practices for creating effective and scoped rules. It highlights the improvement in identifying intended violations and reducing unnecessary findings.






