/review command ignores the AGENTS.md.

Resolved 💬 9 comments Opened Oct 27, 2025 by facelezzzz Closed Dec 9, 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.47.0

What subscription do you have?

ChatGPT Team

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 25.0.0 arm64 arm

What issue are you seeing?

(base) x@xMacBook-Air qetesh-outbound % cat ~/.codex/AGENTS.md
# Important Rule
- Always answer in chinese.

<img width="2204" height="550" alt="Image" src="https://github.com/user-attachments/assets/fd33fcf8-89e8-4cb0-91c7-84f9044bbefc" />

What steps can reproduce the bug?

Write some instructions in AGENTS.md, and then run /review.

What is the expected behavior?

/review command should follow the AGENTS.md

Additional information

_No response_

View original on GitHub ↗

9 Comments

github-actions[bot] contributor · 8 months ago

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

  • #5772
  • #5632
  • #5670

Powered by Codex Action

JaySabva contributor · 8 months ago

I have also noticed the same behaviour.

zhao-oai contributor · 8 months ago

hi there! we designed /review to ignore user instructions as well as previous conversation context. apologies that this was not made clear. we've updated the docs

Slooz · 8 months ago

@zhao-oai the issue is after running /review, the agent tries to run python -c "...", which fails because the agent should run uv run -- python -c "..." instead. This is clearly stated in my AGENTS.md. I can include this information when I run /review, or I can just ignore /review and run the review prompt manually or just run my own review prompt. I can see why you might want to ignore user instructions, but on the other hand, you can see why you might not want to ignore user instructions.

Even if this is now documented, I was quite surprised to find that this was the intended behavior. I was positive that this was a bug before I found this issue. I'm not sure that this should be the intended behavior.

PauloBoaventura · 8 months ago

I was having the same problem. I managed to get him to understand me by emphatically stating it more than once.

So that he would follow and obey the rules of the file.

etraut-openai contributor · 7 months ago

As mentioned above, the /review command was designed specifically not to use AGENTS.md, which is likely to contain instructions that are inappropriate for a /review operation.

facelezzzz · 7 months ago

How can we make the /review command reply in Chinese without using AGENTS.md? @etraut-openai

etraut-openai contributor · 7 months ago

You can provide instructions after the /review slash command.

If you'd like to see a different behavior, please open a feature request.

facelezzzz · 7 months ago

I’ll try it, thanks!