Custom Code Review rules for Codex | OpenAI Developers
Jul 20, 2026

Summary
Introduces custom repository rules within `AGENTS.md` for Codex Code Review. These rules allow teams to encode project-specific constraints, such as preserving API contracts or preventing sensitive data in logs, which are difficult to capture with deterministic tests. The post details how these rules improve code review efficiency and accuracy by providing context to coding agents and human reviewers, citing a 98% recovery rate for custom findings in internal evaluations. It also provides guidance on writing effective, scoped, and actionable rules.
More from the Agentic Execution Environment trail
- Bringing my LED display to life with GPT-Live-1 and Codex | OpenAI Developers
- Rethinking skills and prompts for GPT-6 Astra | OpenAI Developers
- Meet Rosalind Workbench: Empowering every scientist to be their own research team | OpenAI Developers
- Automating repetitive work at OpenAI with Codex
- Codex as a platform: build on the open agent harness | OpenAI Developers