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_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 9 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #5804
  • #5285
  • #5113
  • #5093

Powered by Codex Action

etraut-openai contributor · 9 months ago

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 /feedback command. That provides us with additional details.