Codex CLI is not rereading agents.md after auto /compact

Resolved 💬 4 comments Opened Oct 26, 2025 by styler-ai Closed Jan 10, 2026

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_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗