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
{{ message }}
Repository navigation
Support global/centralized instructions/AGENTS.md + configuration #3853
Looking into considering codex for company wide rollout but we are missing the ability to provide a centralized AGENTS.md/INSTRUCTIONS.md file.
Ideally we would have the ability to provide one in a central place, outside of the users home directory which takes precedence.
We use this for providing guard rails and sharing company specific details.
Note: the same for configuration files, ideally basically any user configurable options would have a global configuration as well which could be managed by a mdm solution
Are you interested in implementing this feature?
Yes
Additional information
No response
Reacted by Kuba Sobecki, InsightfulFuture, Alex Kabakaev, ahmed, Mathieu Decaffmeyer, Michael Stillwell, Ben Creasy, Manuel Carullo, Pablo Padilla, Ilhaan Rasheed and 5 more
+1. We should be able to have a ~/.codex/AGENTS.md. This would help especially on windows as I could steer the agent to not use powershell commands that don't have proper auto-approval
Reacted by Johann Dirry, cmann50, Maxwell Mapako and Michael Stillwell
The ~/.codex/AGENTS.md solution shared above would only apply to a specific user. The request here is for a global file like /etc/codex/AGENTS.md similar to Claude Code's /etc/claude-code/CLAUDE.md that would apply to Codex when launched by any user on a machine.
Reacted by Afif Elghraoui, Bob Langley and Жора Змейкин
One more option for the machine-wide case that @ilhaan describes: a path that is
not Codex-specific, so that an admin writes the host facts once for every agent
on the machine.
I wrote a draft spec for that: /etc/agents plus agents.d drop-ins
(https://etc-agents.org). Disclosure: I am the author, it is new, and it has one
implementation. A file counts only if root owns it and others cannot write it,
and its text can restrict an agent but cannot grant permissions.
It does not replace /etc/codex/AGENTS.md for Codex-specific policy. It covers
the part that is about the host and not about the tool.
Activity
InsightfulFuture commentedon Oct 1, 2025
+1. We should be able to have a ~/.codex/AGENTS.md. This would help especially on windows as I could steer the agent to not use powershell commands that don't have proper auto-approval
ithinkihaveacat commentedon Jan 11, 2026
Codex doesn't even support per-user settings for this, right? i.e. the equivalent of:
~/.gemini/GEMINI.md~/.claude/CLAUDE.mdetraut-openai commentedon Jan 11, 2026
Codex does support
~/.codex/AGENTS.md. See this documentation for details.ithinkihaveacat commentedon Jan 11, 2026
I … don't know how I missed that. Thanks for the correction.
jcrben commentedon Mar 14, 2026
should be closed
ilhaan commentedon May 23, 2026
I don't think this should be closed.
The
~/.codex/AGENTS.mdsolution shared above would only apply to a specific user. The request here is for a global file like/etc/codex/AGENTS.mdsimilar to Claude Code's/etc/claude-code/CLAUDE.mdthat would apply to Codex when launched by any user on a machine.geri4 commentedon Nov 13, 2026
One more option for the machine-wide case that @ilhaan describes: a path that is
not Codex-specific, so that an admin writes the host facts once for every agent
on the machine.
I wrote a draft spec for that:
/etc/agentsplusagents.ddrop-ins(https://etc-agents.org). Disclosure: I am the author, it is new, and it has one
implementation. A file counts only if root owns it and others cannot write it,
and its text can restrict an agent but cannot grant permissions.
It does not replace
/etc/codex/AGENTS.mdfor Codex-specific policy. It coversthe part that is about the host and not about the tool.
Katze-942 commentedon Nov 20, 2026
I agree, this feature is sorely needed. I have to duplicate AGENTS.md for different users.