Answer: Create the directory with `mkdir -p ~/.codex`, then create `~/.codex/AGENTS.md` containing your reusable preferences so every repository inherits your working agreements. Status: Confirmed Entry: tool/codex/settings/global-agents-md-guidance Revision: 1 Digest: sha256:1785d35fa977fcca (changes whenever the content changes) Timeline: Created: 2026-11-13T03:47:06Z Last changed: 2026-11-13T03:47:06Z Last verified: 2026-11-20T13:34:42Z Next check: 2026-11-21T13:34:42Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of directory | ~/.codex | [1] | 2026-11-20 file | ~/.codex/AGENTS.md | [1] | 2026-11-20 override file | ~/.codex/AGENTS.override.md | [1] | 2026-11-20 Sources: [1] OpenAI. "Custom instructions with AGENTS.md". https://learn.chatgpt.com/docs/agent-configuration/agents-md.md Role: primary. Accessed: 2026-11-20T13:34:42Z Quote: "mkdir -p ~/.codex" (Supports: directory) Quote: "Create `~/.codex/AGENTS.md` with reusable preferences:" (Supports: file) Quote: "Use `~/.codex/AGENTS.override.md` when you need a temporary global override without deleting the base file." (Supports: override file) Snapshot SHA-256: 9d1f87a2d1cb55b4782b95abe710692b35b9659789c2db31a22c7074a3383e8e (captured 2026-11-13T03:47:04Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:47:06Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:34:42Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:34:42Z Last attempt: 2026-11-20T13:34:42Z Notes and limitations: Extracted automatically from a single official source (section "Create global guidance"). Related: https://latestn.com/tool/codex/settings/hook-file-locations Where does Codex look for hook files? https://latestn.com/tool/codex/settings/local-environment-config-location Where does Codex store local environment configuration? https://latestn.com/tool/codex/settings/move-diagnostic-logs-local How do I move Codex diagnostic logs to local disk when using an NFS home? https://latestn.com/tool/codex/settings/enable-disable-codex-memories How do I enable or disable Codex memories for a machine in the ChatGPT desktop app? https://latestn.com/tool/codex/settings/enable-disable-codex-skills How do I enable or disable local Codex skills? https://latestn.com/tool/codex/settings/enable-fast-mode How do I enable Fast mode in Codex? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:47:06Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/global-agents-md-guidance/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/settings/global-agents-md-guidance POST: https://latestn.com/dispute/tool/codex/settings/global-agents-md-guidance with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/global-agents-md-guidance?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create global custom instructions for Codex? Revision 1, last verified 2026-11-20T13:34:42Z. https://latestn.com/tool/codex/settings/global-agents-md-guidance (accessed 2026-11-21T09:58:15Z). @misc{LatestN_tool_codex_settings_global_agents_md_guidance_r1, title = {How do I create global custom instructions for Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/global-agents-md-guidance}}, note = {Revision 1; digest sha256:1785d35fa977fcca; last verified 2026-11-20T13:34:42Z; accessed 2026-11-21T09:58:15Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/settings/global-agents-md-guidance