Answer: Custom prompts are deprecated; to create one, make the prompts directory with `mkdir -p ~/.codex/prompts`, create a Markdown file such as `~/.codex/prompts/draftpr.md` with reusable guidance, then restart Codex so it loads the new prompt. Status: Confirmed Entry: tool/codex/commands-and-shortcuts/create-custom-prompt Revision: 1 Digest: sha256:686bb006480d6d08 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:48:27Z Last changed: 2026-11-13T03:48:27Z Last verified: 2026-11-20T13:36:08Z Next check: 2026-11-21T13:36:08Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of status | deprecated | [1] | 2026-11-20 prompts directory command | mkdir -p ~/.codex/prompts | [1] | 2026-11-20 example prompt file | ~/.codex/prompts/draftpr.md | [1] | 2026-11-20 restart step | Restart Codex so it loads the new prompt | [1] | 2026-11-20 invocation | /prompts:draftpr | [1] | 2026-11-20 Sources: [1] OpenAI. "Custom Prompts". https://learn.chatgpt.com/docs/custom-prompts.md Role: primary. Accessed: 2026-11-20T13:36:08Z Quote: "Custom prompts are deprecated." (Supports: status) Quote: "mkdir -p ~/.codex/prompts" (Supports: prompts directory command) Quote: "Create `~/.codex/prompts/draftpr.md` with reusable guidance:" (Supports: example prompt file) Quote: "Restart Codex so it loads the new prompt" (Supports: restart step) Quote: "Typing `/prompts:draftpr` in the slash command menu shows your custom command" (Supports: invocation) Snapshot SHA-256: d6f7cf8dd9f31d2faf5604ef3a6f8322132a7b66fa50823109cb681e372a0fa9 (captured 2026-11-13T03:48:27Z) 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:27Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:36:08Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:36:08Z Last attempt: 2026-11-20T13:36:08Z Notes and limitations: Extracted automatically from a single official source (section "Custom Prompts"). Related: https://latestn.com/tool/codex/commands-and-shortcuts/custom-prompt-metadata-arguments How do I add metadata and arguments to a Codex custom prompt? https://latestn.com/tool/codex/commands-and-shortcuts/exec-non-interactive How do I run Codex non-interactively with codex exec? https://latestn.com/tool/codex/commands-and-shortcuts/import-from-another-agent-cli How do I import from another agent using Codex CLI? https://latestn.com/tool/codex/commands-and-shortcuts/codex-cli-image-flag How do I pass one or more image files to Codex from the command line? https://latestn.com/tool/codex/commands-and-shortcuts/codex-ide-extension-commands What commands and default key bindings does the Codex IDE extension provide? https://latestn.com/tool/codex/commands-and-shortcuts/configure-deep-scan How do I configure a deep scan with the Codex Security CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:48:27Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/commands-and-shortcuts/create-custom-prompt/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/commands-and-shortcuts/create-custom-prompt POST: https://latestn.com/dispute/tool/codex/commands-and-shortcuts/create-custom-prompt with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/commands-and-shortcuts/create-custom-prompt?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a custom prompt in Codex? Revision 1, last verified 2026-11-20T13:36:08Z. https://latestn.com/tool/codex/commands-and-shortcuts/create-custom-prompt (accessed 2026-11-21T10:03:43Z). @misc{LatestN_tool_codex_commands_and_shortcuts_create_custom_prompt_r1, title = {How do I create a custom prompt in Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/commands-and-shortcuts/create-custom-prompt}}, note = {Revision 1; digest sha256:686bb006480d6d08; last verified 2026-11-20T13:36:08Z; accessed 2026-11-21T10:03:43Z} } 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/commands-and-shortcuts/create-custom-prompt