Support for Slash Commands and Custom Command Definitions via .codex File in VS Code Extension

Resolved 💬 3 comments Opened Oct 20, 2025 by y4coub Closed Oct 22, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

Overview
It would be incredibly useful if the Codex VS Code extension supported command-style inputs directly within the edito allowing developers to trigger context-aware actions using commands that start with /, similar to modern AI IDEs or Discord-style interactions.

Proposal
Introduce two complementary features:

  1. Slash Commands (/) in the Command Palette and Inline Editor Input

Developers could type / followed by a command (e.g., /generate-tests, /explain, /refactor to async, /specify, etc.) to trigger Codex actions.

  • These could be auto-completed with descriptions (just like GitHub Copilot’s inline suggestions).
  • Commands would support arguments (e.g., /api doc create user.ts) and could operate on highlighted code blocks, files, or entire projects.
  1. Custom Command Registry via .codex File

A new .codex configuration file at the project root would allow developers or teams to define their own commands essentially extending Codex behavior.

These custom commands could integrate into the Codex workflow, letting teams define their own AI syntax without hard-coding everything into the extension.

Benefits

  • Makes Codex a programmable assistant rather than a static tool.
  • Enables team-wide workflows and standardized AI conventions across repositories.
  • Reduces cognitive friction: developers can interact with Codex through short, intuitive commands instead of long prompts.
  • Encourages creative, scriptable AI development patterns (e.g., /speckit.plan, /testify, /summarize PR #123).

Long-Term Vision
Imagine the Codex extension as a true command-driven interface for software creation where each repo defines its own AI-powered commands that evolve with the codebase. Codex becomes the shell, and the .codex file defines the dialect.

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 10 months ago

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

  • #5114
  • #3706
  • #4734
  • #3707

Powered by Codex Action

gpeal contributor · 10 months ago

Duplicate of #5114

tienanh0903k · 4 months ago

Currently not in use