You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
Reacted by Paul Berg, Sebastian Thomschke, Ilmari Oranen, Webber Takken, kvcop and Andreas Arvidsson
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.
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?
~/.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).
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.
Reacted by wbdb, Mr Simon C, Paul Berg, Sebastian Thomschke, Kevin, Peiyang He, Adrian, Adam Averay and Andreas Arvidsson
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.
Activity
[-]/status doesn't mention AGENTS.md[/-][+]/status doesn't mention global AGENTS.md[/+]alexprotonotarios commentedon Sep 17, 2025
it works fine in mine.
nicholaswmin commentedon Sep 17, 2025
@alexprotonotarios what's "mine"? version? OS?
alexprotonotarios commentedon Sep 17, 2025
macOS
version 0.36
nicholaswmin commentedon Sep 17, 2025
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
/statusreport for a globalAGENTS.md,not any
AGENTS.md.wbdb commentedon Sep 17, 2025
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?
nicholaswmin commentedon Sep 17, 2025
No it doesn't make any sense not to print an
AGENTS.mdthat 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,
$CODEX_HOME/AGENTS.md/status- only.to me this looks like a crystal clear oversight, nothing more.
The patch I submitted just ensures that
/statusmentions it as well;it's ready if you wanna give it a spin in: #3796
wbdb commentedon Sep 17, 2025
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.
hi-fox commentedon Sep 18, 2025
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?
wbdb commentedon Sep 19, 2025
~/.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).
bos commentedon Sep 24, 2025
The
$HOME/.codex/AGENTS.mdfile is read, but/statusdoesn'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.nicholaswmin commentedon Sep 24, 2025
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.
PaulRBerg commentedon Oct 3, 2025
I tried Codex for the first time today, wrote my
~/.codex/AGENTS.mdfile, ran/statusexpectingAGENTS.mdto 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 loadedAGENTS.md, and it says this:Ironically, it is in this moment that I realize that Codex has actually read my
AGENTS.mdfile. My prompt contain this no-BS rule:But yeah, this was extremely confusing and the
/statuscommand should mention~/.codex/AGENTS.mdfile.nicholaswmin commentedon Oct 4, 2025
@seratch this isn't a question; it's a bug
13 remaining items
Show global AGENTS.md in /status (#17091)
etraut-openai commentedon Apr 8, 2026
This will be addressed in the next release.
PaulRBerg commentedon Apr 8, 2026
Thank you @etraut-openai
Show global AGENTS.md in /status (openai#17091)
Show global AGENTS.md in /status (openai#17091)