r/codex • u/daiweilu • 5d ago
Showcase Interactive config & precedence reference for Codex (CLI + Desktop App): AGENTS.md, config.toml, MCP, and Skills
I put together a single-file interactive reference doc for Codex (CLI + Desktop App) configs because I found it really helpful to have all the file locations, merge rules, and precedence behavior in one place. Sharing it here in case anyone else finds it useful!
- Live doc: https://d6u.github.io/agent-cli-config-guide/ (tip: click the Codex filter at the top to focus purely on Codex)
- Source: https://github.com/d6u/agent-cli-config-guide
What's covered for Codex:
- Instructions: Global → Repo Root → CWD walk,
AGENTS.override.mdvs.AGENTS.md/ fallbacks, and the 32 KiBproject_doc_max_bytescap - Config & MCP (
config.toml): CLI-cflags, trusted nested.codex/config.toml, standalone--profilefiles, recursive[mcp_servers.*]table merging (with arrays replacing), and adminrequirements.toml - Skills & Views:
.agents/skills/discovery & coexistence ([[skills.config]]), an interactive precedence simulator, copyable TOML/Markdown snippets, and a macOS/Windows/Linux path toggle
Hope the community finds it helpful—feel free to share feedback or open a PR if anything looks off!
Disclosure: I used AI to help build the page and draft this post, though the ideas and structure are mine and I verified the details against the official docs as thoroughly as I could.
View all comments
1
u/VShulcz 4d ago
Worth adding ~/.codex/hooks.json to the Codex tab too. Codex silently ignores hook entries until you open interactive mode once and approve them under /hooks, and that catches codex exec as well. Listing enabled_tools and disabled_tools under [mcp_servers.<name>] would also fit right into the MCP section.