Answer: Use AGENTS.md to give Codex durable project guidance that travels with your repository and applies before the agent starts work, keeping it small and focused on rules like build and test commands, review expectations, repo-specific conventions, and directory-specific instructions. Put guidance in the closest directory where it applies, and tell the agent to update AGENTS.md when you correct something so future sessions inherit the fix. Status: Confirmed Entry: tool/codex/settings/customize-codex-with-agents-md Revision: 1 Digest: sha256:ab7e6279382a2ddf (changes whenever the content changes) Timeline: Created: 2026-11-13T03:48:33Z Last changed: 2026-11-13T03:48:33Z Last verified: 2026-11-20T13:36:15Z Next check: 2026-11-21T13:36:15Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of purpose | durable project guidance that travels with your repository and applies before the agent starts work | [1] | 2026-11-20 example rules | Build and test commands | [1] | 2026-11-20 placement guidance | put guidance in the closest directory where it applies | [1] | 2026-11-20 feedback loop | tell the agent to update `AGENTS.md` when you correct something so future sessions inherit the fix | [1] | 2026-11-20 precedence | Files closer to the working directory take precedence. | [1] | 2026-11-20 repo file focus | keep repo files focused on team and codebase rules | [1] | 2026-11-20 Sources: [1] OpenAI. "Customization". https://learn.chatgpt.com/docs/customization/overview.md Role: primary. Accessed: 2026-11-20T13:36:15Z Quote: "`AGENTS.md` gives Codex durable project guidance that travels with your repository and applies before the agent starts work." (Supports: purpose) Quote: "Build and test commands" (Supports: example rules) Quote: "put guidance in the closest directory where it applies" (Supports: placement guidance) Quote: "tell the agent to update `AGENTS.md` when you correct something so future sessions inherit the fix" (Supports: feedback loop) Quote: "Files closer to the working directory take precedence." (Supports: precedence) Quote: "keep repo files focused on team and codebase rules" (Supports: repo file focus) Snapshot SHA-256: 17622d9d57d3a58c64d77917561012a49319e4ebf60fee093761e4ad45f6b8eb (captured 2026-11-13T03:48:33Z) 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:48:33Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:36:15Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:36:15Z Last attempt: 2026-11-20T13:36:15Z Notes and limitations: Extracted automatically from a single official source (section "AGENTS Guidance"). Related: https://latestn.com/tool/codex/settings/customize-command-keys How do I customize the Command Keys on Codex Micro? https://latestn.com/tool/codex/settings/disable-hooks How do I turn off hooks in Codex? 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/copy-ignored-files-worktree How do I copy ignored local files into Codex-managed worktrees? https://latestn.com/tool/codex/settings/create-codex-environment How do I create a Codex environment in the desktop app or on the web? https://latestn.com/tool/codex/settings/customize-codex-review-agents-md How do I customize what Codex reviews using AGENTS.md? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:48:33Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/customize-codex-with-agents-md/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/customize-codex-with-agents-md POST: https://latestn.com/dispute/tool/codex/settings/customize-codex-with-agents-md with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/customize-codex-with-agents-md?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I customize Codex to follow my team's conventions using AGENTS.md? Revision 1, last verified 2026-11-20T13:36:15Z. https://latestn.com/tool/codex/settings/customize-codex-with-agents-md (accessed 2026-11-21T09:54:39Z). @misc{LatestN_tool_codex_settings_customize_codex_with_agents_md_r1, title = {How do I customize Codex to follow my team's conventions using AGENTS.md?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/customize-codex-with-agents-md}}, note = {Revision 1; digest sha256:ab7e6279382a2ddf; last verified 2026-11-20T13:36:15Z; accessed 2026-11-21T09:54:39Z} } 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/customize-codex-with-agents-md