Skip to content

Slash commands in the extension #3007

Closed

Description

@honjo-hiroaki-gtt

What version of the VS Code extension are you using?

[Codex VS Code extension v0.4.0]

Which IDE are you using?

Visual Studio Code [1.103.2]

What platform is your computer?

macOS [15.6.1] (arm64) uname -mprs: [Darwin 24.6.0 arm64 arm]

What steps can reproduce the bug?

This is a FEATURE REQUEST (not a bug).

Reproduction of current limitation:

  1. Open the Codex panel in the VS Code extension.
  2. Focus the input field and type “/”.
  3. No command suggestions appear.
  4. Enter “/clear” and press Enter.
  5. The message is treated as plain text; no slash command is executed.

What is the expected behavior?

  • Typing “/” opens a slash-command palette with discoverable options (e.g., /clear, /diff, /init, /approvals, /model).
  • Keyboard navigation (Tab/Enter, Up/Down) to select a command.
  • Basic argument support (e.g., /diff --staged, /model o4-mini).
  • Commands that affect state (e.g., approvals) mirror the extension’s existing UI switcher (Chat / Agent / Agent (Full Access)).
  • Respect approval/sandbox settings; non-applicable commands are disabled with a tooltip.

What do you see instead?

  • The input treats “/” as normal text.
  • No suggestions appear.
  • /clear (and other slash commands that exist in the CLI) do not execute in the extension.
  • I have to use the mouse/UI to switch modes or run equivalent actions.

Additional information

Why this matters:

  • Parity with the Codex CLI/TUI, which already exposes slash commands.
  • Better discoverability for new users; faster workflows for power users.
  • Useful initial set: /clear, /diff, /init, /approvals, /model.

Environment:

  • VS Code extension: [v0.4.0]
  • VS Code: [1.103.2]
  • OS: macOS [15.6.1] (arm64)
  • CLI (if installed): [codex v0.27.0]

Optional ideas:

  • Setting to disable slash commands or require confirmation.
  • Allow custom slash commands mapped to user-defined prompts.

Activity

  1. added
    extension
    on Sep 1, 2025
  2. rustanacexd commented on Sep 24, 2025

    @rustanacexd

    yes please

  3. tinman321 commented on Sep 26, 2025

    @tinman321

    I started to thinking, that it's about me and my configuration because /command didn't appear in Codex IDE. Thanks for the request

  4. anthnykr commented on Oct 1, 2025

    @anthnykr

    +1 this feels necessary

  5. ryanbehan commented on Nov 1, 2025

    @ryanbehan

    +1 this is a design mismatch between codex cli and codex for vs code.

  6. etraut-openai commented on Nov 2, 2025

    @etraut-openai
    Contributor

    Thanks for the feedback. The next version of the codex extension will have basic support for slash commands, but the full list of slash commands supported in the CLI are not yet supported in the extension. There are some commands that make more sense in the CLI and some that make more sense in the extension, so full parity isn't necessarily our goal. Let us know which slash commands you'd like to see prioritized in the extension.

  7. added
    enhancement
    on Nov 5, 2025
  8. m01e-40x commented on Nov 10, 2025

    @m01e-40x

    +1...
    By the way, the VS Code extension for Claude Code is way better than the one for Codex.

  9. changed the title [-]VS Code extension: Support “/” slash commands in the chat input (e.g., /clear, /diff, /init, /approvals, /model)[/-] [+]Slash commands in the extension[/+] on Nov 13, 2025
  10. bgpedersen commented on Nov 17, 2025

    @bgpedersen

    Thanks for the feedback. The next version of the codex extension will have basic support for slash commands, but the full list of slash commands supported in the CLI are not yet supported in the extension. There are some commands that make more sense in the CLI and some that make more sense in the extension, so full parity isn't necessarily our goal. Let us know which slash commands you'd like to see prioritized in the extension.

    I think many of us is requesting the need to be able run our own custom prompts/commands. Not necessarily basic available commands.

    It also seems the extension is not using .codex folder for anything, like the Codex CLI does. It would make sense that the extension reads .codex folder, as a place to live for codex custom rules and prompts/commands.

    Keep up the good work - Codex is great 🙏

  11. etraut-openai commented on Nov 27, 2025

    @etraut-openai
    Contributor

    General support for slash commands are now included in the VS Code extension. Some commands have already been added, and we will add more over time. If you'd like to see a specific command added, please open or upvote an enhancement request for that command specifically. That will help us prioritize.

  12. mannago commented on Dec 2, 2025

    @mannago

    I'm using Claude Code and Codex in a Windows environment with VS Code. To put it simply, Codex seems fast and requires less setup, but it lacks practicality. If it were self-explanatory, this wouldn't be an issue. However, there are issues like it rejecting too many documents when parsing them, or it failing to add MCP servers properly.
    One of the most critical issues is that custom commands can't be registered. Having to point out the same issue every time is incredibly frustrating.

  13. bakaburg1 commented on Dec 5, 2025

    @bakaburg1

    Thanks for the feedback. The next version of the codex extension will have basic support for slash commands, but the full list of slash commands supported in the CLI are not yet supported in the extension. There are some commands that make more sense in the CLI and some that make more sense in the extension, so full parity isn't necessarily our goal. Let us know which slash commands you'd like to see prioritized in the extension.

    Definetely the \compact command! and hopefully a \web or \search command to employ the same search-in-reasoning of chat gpt...

  14. etraut-openai commented on Dec 5, 2025

    @etraut-openai
    Contributor

    @bakaburg1, this issue is closed. If you'd like to suggest specific slash commands, please upvote other issues — or create new ones if you can't find one that covers the functionality you'd like to see.

    I'm going to lock this issue to prevent additional posts.

  15. locked as resolved and limited conversation to collaborators on Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions