Why Does Codex Ignore AGENTS.md? Check What Actually Loaded
from 500x Engineer Hosted by Elon Zito
Why Does Codex Ignore AGENTS.md? Check What Actually Loaded A small Codex experiment compares a price-formatting rule in short, missing and deliberately padded instructions, each with and without a visible check. We follow Lauren Tan's engineering argument, inspect the loading documentation and audit recurring rules in our own production pipeline. WHAT WE FOUND: Lauren Tan reports that her Grok Bot team shipped 11,000 production PRs in October, with a relative revert rate around 0.5%. Grok Bot is a SpaceX SI product. These figures are her team's reported outcomes; reverts leave other kinds of bugs uncounted. Tan recommends turning recurring corrections into deterministic checks or eliminating the problem through API design and architecture. She warns that agents copy old patterns because they look established. Codex builds its instruction chain when a run starts and has a configurable default combined project guidance cap of 32 KiB. Its guide recommends reserving formatting and lint checks for CI. Claude Code describes instructions as context and warns that strict compliance has no guarantee. A matching PreToolUse hook can block a tool action; its coverage depends on the tools and events selected. Our lab ran 36 fresh Codex tasks: 6 setups with 6 runs each. Feature prompts requested a shipping file, a tax line in an existing receipt file or a discount line in an existing invoice file. Older code contained 5 uses of toFixed(). Rule 17 required formatPrice for displayed prices. With short instructions and no check, 0 of 6 runs broke the rule. With money rules removed and no check, 3 of 6 broke it. With the same instructions deliberately padded to about 36,000 bytes and no check, 4 of 6 broke it. Rule 17 started at byte 35,091, beyond the default cap. In separate instruction-quoting probes, Codex quoted rule 17 exactly with the short file and reported only rules 1–15 with the padded file. These are self-reports about loading. Without the check, 7 of 18 runs added the forbidden pattern, and all passed their output tests. With the check, 0 of 18 did, across short, missing and padded instructions. Every feature worked in all 36 runs. In 17 of 18 check runs, the agent opened the lint script before editing; the other read its test runner. The check never had to reject a change. Its presence guided compliant work in these runs; its blocking effect remains untested. All violations occurred in existing files using the old pattern. All 12 runs creating a new file used formatPrice. This is a snapshot: one model, one repo, one rule. The lab check counts matching lines per file against a fixed baseline. Another call added to an already-matching line leaves that count unchanged. My classification of our pipeline's 30 feedback rules: 12 CHECK, 5 DESIGN, 13 TEXT. Partial coverage requires judgment, and these counts supply no success rate. Examples by rule name: comment-keyword-cta, no-idle-motion and hook-first. In your own agent setup, which recurring rule is still only written down, and what check or design change could carry it? Full write-up: https://www.500xengineer.com/blog/agent-rules Join the free Skool community: https://www.skool.com/500xengineer SOURCES: The source links are listed in the YouTube description: https://youtu.be/qCYmXATc5g0 The Codex findings and pipeline classifications come from our saved lab results and audit. DISCLOSURE: Tan's team figures are attributed reports that we did not independently verify. Our experiment is a small snapshot using one model, one repo and one rule. The pipeline audit is my classification of coverage, including partial coverage. Narration uses an AI clone of my voice; the short opening clip is an AI-generated avatar. Opinions are mine.
Embed this episode
No transcript yet.