codex icon indicating copy to clipboard operation
codex copied to clipboard

Unable to create custom "/" commands.

Open michaelwa opened this issue 1 month ago • 2 comments

What version of Codex is running?

v0.72.0

What subscription do you have?

plus

Which model were you using?

gpt-5.1-codex-max medium

What platform is your computer?

Linux 6.17.4-76061704-generic x86_64 x86_64

What issue are you seeing?

i do not have access to the features described in the documentation, custom "/" commands.

https://developers.openai.com/codex/guides/slash-commands#create-your-own-slash-commands-with-custom-prompts

What steps can reproduce the bug?

Uploaded thread: 019b1984-

What is the expected behavior?

ability to run custom "/" commands from either "prompts" or "tools".

Additional information

No response

michaelwa avatar Dec 13 '25 21:12 michaelwa

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #7975
  • #7974

Powered by Codex Action

github-actions[bot] avatar Dec 13 '25 21:12 github-actions[bot]

We're not aware of any problems with this feature. Many codex users depend on it. Perhaps this is a configuration issue.

Can you describe the specific steps you've tried?

etraut-openai avatar Dec 13 '25 21:12 etraut-openai

Here is an overview of my setup. [image: image.png] When I type in other "/" commands there is an indicator below. [image: image.png] When I type "/prompts" there is no indicator that there is "/" command starting with these letters. [image: image.png] codex version is codex-cli 0.72.0.

Not sure what else I can provide here but let me know.

On Sat, Dec 13, 2025 at 1:20 PM Eric Traut @.***> wrote:

etraut-openai left a comment (openai/codex#7993) https://github.com/openai/codex/issues/7993#issuecomment-3649821781

This feature should work fine. Many codex users depend on it.

Can you describe the specific steps you've tried?

— Reply to this email directly, view it on GitHub https://github.com/openai/codex/issues/7993#issuecomment-3649821781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZX3RMOFZKWJYEYYLMEDL4BR7ITAVCNFSM6AAAAACO6SA362VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNBZHAZDCNZYGE . You are receiving this because you authored the thread.Message ID: @.***>

michaelwa avatar Dec 14 '25 15:12 michaelwa

以下是我的设置概览。[图片:image.png] 当我输入其他以“/”开头的命令时,下方会显示一个指示器。[图片:image.png] 但当我输入“/prompts”时,却没有指示器显示存在以这些字母开头的“/”命令。[图片:image.png] codex 版本为 codex-cli 0.72.0。我不确定还能提供什么信息,如有需要请告知。

You can try configuring the codex_home path, or try reinstalling via npm install -g @openai/[email protected]. After that, verify that the absolute path to ~/.codex/prompts/example.md is correct.

Proview-China avatar Dec 14 '25 16:12 Proview-China

Okay, that helped me identify where I went wrong. The font in the documentation made the "~" hard to read when creating the prompts directory. It needs to be in the ~/.codex directory and not in /.codex directory. Which seems strange to me that mean prompts can only be global rather than project specific.

Thank you for your help!

On Sun, Dec 14, 2025 at 8:06 AM Proview @.***> wrote:

Proview-China left a comment (openai/codex#7993) https://github.com/openai/codex/issues/7993#issuecomment-3651571704

以下是我的设置概览。[图片:image.png] 当我输入其他以“/”开头的命令时,下方会显示一个指示器。[图片:image.png] 但当我输入“/prompts”时,却没有指示器显示存在以这些字母开头的“/”命令。[图片:image.png] codex 版本为 codex-cli 0.72.0。我不确定还能提供什么信息,如有需要请告知。 … <#m_3740808552583003031_>

You can try configuring the codex_home path, or try reinstalling via npm install -g @@.*** After that, verify that the absolute path to ~/.codex/prompts/example.md is correct.

— Reply to this email directly, view it on GitHub https://github.com/openai/codex/issues/7993#issuecomment-3651571704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZX3T64D5V2FAGFQR5UHL4BWDI7AVCNFSM6AAAAACO6SA362VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNJRGU3TCNZQGQ . You are receiving this because you authored the thread.Message ID: @.***>

michaelwa avatar Dec 14 '25 16:12 michaelwa

好的,这帮我找到了问题所在。文档中的字体导致创建提示目录时“~”符号难以辨认。它应该放在 ~/.codex 目录下,而不是 /.codex 目录下。这让我觉得很奇怪,难道提示只能是全局的,而不能是项目特定的吗?谢谢你的帮助!

Image

LMAO. wtf a ~ can be mistakenly read for the fonts hard to distinguish. the "~" and the "-" ought to have its distinct appearance.

Proview-China avatar Dec 15 '25 16:12 Proview-China