Feature Request: Add SlashCommand tool-style auto invocation to Codex CLI

Resolved 💬 0 comments Opened Sep 26, 2025 by alexx-ftw Closed Sep 26, 2025

What changed

Why

How to try locally

  1. Place a command such as write-unit-test.md into ~/.codex/prompts/, restart Codex, and confirm it appears in the / menu. (https://tech-bridge-log.com/blog/codex-cli-latest-gpt5)
  2. In a session, tell Codex "please run /write-unit-test before touching tests" and observe that it echoes the text instead of invoking the command. (https://github.com/openai/codex/issues/3641)
  3. Compare against Claude Code, which auto invokes custom commands through the SlashCommand tool when instructions mention /name. (https://docs.claude.com/en/docs/claude-code/slash-commands)

Flags removed or added

  • None.

Safety limits

Fallback behavior

Related issues

View original on GitHub ↗