Skip to content

/status doesn't mention global AGENTS.md #3793

Closed

Description

@nicholaswmin

Steps

  • launch codex CLI with global ~/.codex/AGENTS.md/$CODEX_HOME/AGENTS.md present
  • run /status

Expected

  • global AGENTS.md listed in AGENTS files row

Actual

  • reports AGENTS files: (none)

Activity

  1. changed the title [-]/status doesn't mention AGENTS.md[/-] [+]/status doesn't mention global AGENTS.md[/+] on Sep 17, 2025
  2. alexprotonotarios commented on Sep 17, 2025

    @alexprotonotarios

    it works fine in mine.

  3. nicholaswmin commented on Sep 17, 2025

    @nicholaswmin
    Author

    @alexprotonotarios what's "mine"? version? OS?

  4. alexprotonotarios commented on Sep 17, 2025

    @alexprotonotarios

    @alexprotonotarios what's "mine"? version? OS?

    macOS
    version 0.36

  5. nicholaswmin commented on Sep 17, 2025

    @nicholaswmin
    Author

    That's really weird bearing in mind the code doesn't exist yet.

    The status line’s AGENTS list just iterates the results of discover_project_doc_paths(...), which only walks the repo tree.

    This is about showing up in the /status report for a global AGENTS.md,
    not any AGENTS.md.

  6. wbdb commented on Sep 17, 2025

    @wbdb

    I have the same behavior (Windows 11 Pro / Ubuntu 24.04 WSL2). I had already considered whether it would make sense to change this. But I think that's how it's supposed to be?

  7. nicholaswmin commented on Sep 17, 2025

    @nicholaswmin
    Author

    No it doesn't make any sense not to print an AGENTS.md that is picked up and composed as context.
    Maybe if it was entirely replaced by closer memory files, sure; but that's not the case (the AGENTS.md isn't a protocol but the convention is clear about the closer-one-wins mechanics; its only if there is a conflict, otherwise they compose)

    FYI,

    • it's used as context if it exists at $CODEX_HOME/AGENTS.md
    • it consumes context and the UI reflects this
    • It is just not mentioned in /status - only.

    to me this looks like a crystal clear oversight, nothing more.

    The patch I submitted just ensures that /status mentions it as well;
    it's ready if you wanna give it a spin in: #3796

  8. wbdb commented on Sep 17, 2025

    @wbdb

    I came up with the idea because the top item was called Workspace. But yes, it is taken into account, which I then tested, and I also think it should be displayed.

  9. hi-fox commented on Sep 18, 2025

    @hi-fox

    A global agents.md file has been added now? How do I use this? I have had an AGENTS.md file in my .codex folder on windows for a while, how do i make sure this is loaded?

  10. wbdb commented on Sep 19, 2025

    @wbdb

    ~/.codex/AGENTS.md
    “Reply to me with a short joke before every message.”

    It's loading :D

    More precisely: Config::load_from_base_config_with_overrides calls Config::load_instructions, which reads codex_home/AGENTS.md (by default ~/.codex/AGENTS.md) and stores the content in config.user_instructions (codex-rs/core/src/config.rs:858 and codex-rs/core/src/config.rs:1060).

  11. bos commented on Sep 24, 2025

    @bos

    The $HOME/.codex/AGENTS.md file is read, but /status doesn't actually tell the user, which makes a situation ripe for confusion as comments above indicate. I had to actually read the codex code today to convince myself that its content probably is being used.

  12. nicholaswmin commented on Sep 24, 2025

    @nicholaswmin
    Author

    Well I've issued a PR: #3796 but it's in desperate need of a test drive.

    also yes @bos is correct, the file is read.

  13. PaulRBerg commented on Oct 3, 2025

    @PaulRBerg

    I tried Codex for the first time today, wrote my ~/.codex/AGENTS.md file, ran /status expecting AGENTS.md to be mentioned there, spent 10 mins looking through this repo's issues channel, found a bunch of related issues (that turned out to be misleading after all), proceed to ask Codex why it hasn't loaded AGENTS.md, and it says this:


    Ironically, it is in this moment that I realize that Codex has actually read my AGENTS.md file. My prompt contain this no-BS rule:

    **USE BRUTAL HONESTY**: Don't try to be polite or agreeable. Be direct, challenge assumptions, and point out flaws

    But yeah, this was extremely confusing and the /status command should mention ~/.codex/AGENTS.md file.

  14. nicholaswmin commented on Oct 4, 2025

    @nicholaswmin
    Author

    @seratch this isn't a question; it's a bug

  15. 13 remaining items

  16. self-assigned this
    on Apr 8, 2026
  17. etraut-openai commented on Apr 8, 2026

    @etraut-openai
    Contributor

    This will be addressed in the next release.

  18. PaulRBerg commented on Apr 8, 2026

    @PaulRBerg

    Thank you @etraut-openai

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

Metadata

Metadata

Assignees

Labels

TUIenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions