Codex CLI is not rereading agents.md after auto /compact
Resolved 💬 4 comments Opened Oct 26, 2025 by styler-ai Closed Jan 10, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.49
What subscription do you have?
pro
Which model were you using?
gpt-5-codex-high
What platform is your computer?
Windows 11
What issue are you seeing?
If codex auto compacts at 10% context window it doesn't reread the agents.md file which leads to the fact that it doesn't know the project and what to do at all most of times and just creates a mess.
I added clear instructions in the agents.md file what to do what to read etc. etc. so this is imho a must have after /compact.
What steps can reproduce the bug?
Let codex auto compact
What is the expected behavior?
_No response_
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
honestly they should have it exclude the first message + agents.md from the summarization input, then just reappend the summary after the original message/agents.md to maintain the system prompt and agents.md etc so that accuracy can be maintained per chat
Closing old issue.
Are we just vibe-closing open issues now? No explanation about whether OP's problem got addressed at all?