Why does Codex ignore my AGENTS.md? Codex 0.160.1 loads AGENTS.md only from the repository root down to the folder where a session starts, silently truncates project instructions past a shared 32 KiB budget, and skips project-level AGENTS.md files in projects explicitly marked untrusted in ~/.codex/config.toml, according to a blog analysis of the Codex source and OpenAI's AGENTS.md documentation read on October 6, 2026. The post, which tested several behaviors on Codex 0.155.1, notes that Codex sends loaded files to the model as a user message rather than enforcing them as settings, so rules are weighted as text rather than applied as configuration. It recommends running `codex debug prompt-input "hi"` from the usual starting folder to confirm which files the model actually received. Blog Why does Codex ignore my AGENTS.md? Published: October 6, 2026 Usually Codex never saw the rule. It reads AGENTS.md from the repository root down to the folder you started in, never below it. It cuts project instructions past 32 KiB without a warning, and it skips projects marked untrusted. When the rule did load, it is text the model weighs, not a setting Codex enforces. The rest of this note takes each cause, shows how to check for it, and says which fix holds. Loader facts are from the Codex 0.160.1 source and OpenAI's AGENTS.md docs https://learn.chatgpt.com/docs/agent-configuration/agents-md , read 2026-10-06. The ones marked tested were run on Codex 0.155.1 in a scratch repository. How do I check what Codex loaded? Before you rewrite a line, find out whether Codex saw it. Two checks, from quick to exact: - /status in a session has an Agents.md row listing the files it loaded, or