VCode home

The slash menu

Agents: claude, codex, opencode · On: phone, desktop

Type / in the composer and a list appears above it: the commands VCode runs itself, and the skills the agent can load. Tap one, walk it with the arrows, or press Tab to take the top match.

Why you would use it

You cannot remember whether the command is /effort or /reasoning, and on a phone you do not want to find out by sending it. The menu is the list, scoped to the agent this tab is running.

How to use it

  1. Type / in the box (#draft). The menu (#slashmenu) opens between the transcript and the box.

    The slash menu open above the composer, listing /clear, /new, /resume, /model, /effort and /autocompact.

  2. Keep typing to filter. Matching is fuzzy: tdd finds test-driven-development.

    The menu filtered to one row by /tdd, with the matched letters highlighted and the header offering it to Tab.

  3. Press ↓ and ↑ to walk the rows. The list wraps at both ends, and ↑ from nothing selected starts at the bottom.

    The menu with the second row selected, its border and background lit, and the header hint reading ⇥ /new.

  4. Take the selected row with Enter, with Tab, or by tapping it. All three do the same thing to it. With no row selected, Tab completes the top match and Enter sends what you typed. Escape closes the menu.

  5. Taking a row writes /name into the box with a trailing space, leaving the rest of your message alone — unless the command runs on its own, and then it runs where you took it. /clear clears, /new opens a tab in this folder, /resume opens the session list, /exit closes the tab.

  6. A command you typed out in full runs on Tab as well: /clear and one press, with nothing left to complete. /cl and one press is still /clear.

What you see

Options and settings

VCode's own commands, from public/commands.js. Each is listed only for the agents that have it; all ten are listed for all three agents today.

A command with a dash under Takes runs on the pick, and so does /new, whose folder is optional; the rest are written into the box for you to finish.

Command Takes What it does
/clear — clear-the-context
/new [folder] a folder, or nothing new-tab-command
/resume, /sessions — resume-a-session-from-disk
/model [value] a model switch-the-model
/effort [value] an effort set-the-effort
/autocompact [mark] a token count, off, default auto-compact
/handoff [agent] (+ /vendor, /harness, /agent) an agent id hand-a-tab-to-another-agent
/rename, /r a name rename-a-tab
/colour, /color a colour name or none tab-colours — red, orange, yellow, green, cyan, blue, purple, pink, or none
/exit, /quit — close-and-reopen-tabs — the log stays on disk and the Closed list brings it back

/compact is also listed, for claude and opencode, as a pass-through: the menu offers it, and the text is sent to the CLI exactly as typed.

Limits and known gaps