Codex repeatedly ignores instructions from AGENTS.md
Resolved 💬 2 comments Opened Nov 11, 2025 by erikhuizinga Closed Nov 11, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.57.0
What subscription do you have?
Enterprise
Which model were you using?
gpt-5-codex
What platform is your computer?
Darwin 24.6.0 arm64 arm
What issue are you seeing?
Codex is instructed to do TDD, where tests must turn green before committing changes. However, the current changes fail the test suite and Codex suggests to commit these changes. After repeated instructions to rerun the failing test suite, which Codex does and indeed it fails, and instructing that tests must turn green before proceeding to commit, Codex keeps suggesting to commit.
What steps can reproduce the bug?
Uploaded thread: 019a722e-180b-7bc3-b938-abef05a9b202
What is the expected behavior?
I expected Codex to fix any failures before proceeding to commit.
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
We'll share the feedback with the team members who are responsible for training our codex models. We're tracking this feedback and similar reports so we can make the model more robust in future iterations.
Thanks for using the
/feedbackcommand. That provides us with additional details.