AI coding
Codex
Getting a second opinion on an AI agent's plan or code
I use it every week, right now.
My reviewer. Claude Code plans and builds; Codex checks the plan before I build and the diff before I merge.
Use it when
- You want a second agent to check a plan before you build it
- You want a review of a diff before you merge
- You already pay for ChatGPT
Skip it when
- You want nitpicks and style notes. Its GitHub reviews only post serious (P0 and P1) issues
- You sign in with an API key and need cloud features like GitHub reviews
Hear when my tools change
No schedule, no filler. I send one email when I add a tool, drop one, or publish a new article.
How I use it
A second agent reads the work with fresh eyes. I use Codex at the two points where a mistake is cheapest to catch:
- Before building. Claude Code writes the plan. Codex reads it and tells me what’s missing or risky.
- Before merging. After the change is made, Codex reviews the diff against the base branch.
I fix what matters, then merge.
Getting started
- Install the CLI:
npm install -g @openai/codex(orbrew install --cask codex). - In your project, run
codexand choose Sign in with ChatGPT. - After changes are made, type
/reviewand pick the base branch or your uncommitted changes. - For pull requests: connect your GitHub repo in Codex’s code review settings and turn on automatic review, or comment
@codex reviewon a PR.
Tips that save time
- Add a
## Code Review Rulessection toAGENTS.md. Start with two or three rules and leave formatting to CI. - Set
review_modelinconfig.tomlto review with a different model than the one you code with. - Automatic PR reviews need two switches: the repository setting and your own preference toggle. If nothing happens, check both.
- In CI,
codex review --base maingives a review without the interactive screen. - Make a Git checkpoint before and after each task, so undoing its changes is easy.
Watch out for
- It only flags serious issues on GitHub. Smaller problems aren’t posted. It doesn’t replace tests or a human review.
- API-key sign-in turns off cloud features. GitHub review, Slack and cloud tasks need a ChatGPT sign-in.
- Models change often. Older models get retired from Codex every few months, so results can shift.
Pricing
Included with ChatGPT plans. Plus ($20/month) adds the CLI, IDE extension and automatic GitHub code review. Pro is $100 to $500/month. Free and Go get limited access in the desktop app. Checked Dec 5, 2026. Current prices
Pick this instead if…
- Claude Codeyou want one agent to plan and build step by step
History
- 2026DailyStarted using it to review plans and diffs from Claude Code
No referral links on this page. No paid placement, no other tie to the maker. How I pick tools.