#codex#context#documentation
Codex Context Truncation Issue
Today I discovered why Codex sometimes produces odd outputs. It turns out that if the AGENTS.md file is too long, Codex silently truncates it. This results in losing crucial instructions. The fix is simple: increase the limit, for example: codex -c project_doc_max_bytes=131072. Also, remember to add in AGENTS.md: "Wait for EOF, and if you don't see it, the file is incomplete."