Skip to content

/review command ignores the AGENTS.md. #5804

Closed as not planned
Closed as not planned

Description

@facelezzzz

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.
Image

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

Activity

  1. JaySabva commented on Oct 27, 2025

    @JaySabva
    Contributor

    I have also noticed the same behaviour.

  2. zhao-oai commented on Oct 28, 2025

    @zhao-oai
    Contributor

    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

  3. Slooz commented on Nov 2, 2025

    @Slooz

    @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.

  4. PauloBoaventura commented on Nov 14, 2025

    @PauloBoaventura

    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.

  5. etraut-openai commented on Dec 9, 2025

    @etraut-openai
    Contributor

    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.

  6. facelezzzz commented on Dec 9, 2025

    @facelezzzz
    Author

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

  7. etraut-openai commented on Dec 9, 2025

    @etraut-openai
    Contributor

    You can provide instructions after the /review slash command.

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

  8. facelezzzz commented on Dec 9, 2025

    @facelezzzz
    Author

    I’ll try it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcode-reviewIssues relating to code reviews performed by codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions