OpenAI Codex · tool · fg-0495

Codex does not read the repo's CLAUDE.md or other existing instruction files

If you see Codex ignores rules that Claude Code follows from CLAUDE.md, the cause and the fix for OpenAI Codex are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Codex ignores rules that Claude Code follows from CLAUDE.mdA TEAM_GUIDE.md or similar file is never loaded
Cause
In each directory Codex reads AGENTS.override.md, then AGENTS.md, and other names only when they are listed in project_doc_fallback_filenames. Fallback names are tried only where no AGENTS.md exists.
Fix
List the extra filenames in config.toml, or add an AGENTS.md that points to the shared file.
Apply
# ~/.codex/config.toml project_doc_fallback_filenames = ["CLAUDE.md"]
Affected
Codex CLI, IDE extension, and ChatGPT desktop app, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun