AGENTS.md is ignored after a /compact

Resolved 💬 2 comments Opened Aug 30, 2025 by guidedways Closed Dec 25, 2025

What version of Codex is running?

0.27.0

Which model were you using?

gpt 5.0 high

What platform is your computer?

macOS

What steps can reproduce the bug?

I've got specific instructions in AGENTS.md for gpt to not make unwarranted suggestions however it seems after a /compact it does not inject the file and forgets these instructions.

What is the expected behavior?

AGENTS.md should always be read just as it does when you start a new conversation.

What do you see instead?

AGENTS.md seems to be ignored.

Additional information

_No response_

View original on GitHub ↗

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