How the command menu matches what you type
Claude Code filters the / menu as you type. Each bullet below covers one thing you might notice while filtering:
- Highlighting: Claude Code highlights the top suggestion only when the letters after the
/match a command's name or alias, from the start of the name or from a word within it, ignoring the:,_, and-separators. Typing/adddirhighlights/add-dir, and typing/newhighlights/clearthrough its alias. PressEnterto run the highlighted suggestion. These highlighting rules require Claude Code v2.1.236 or later. - After a typo: Claude Code highlights nothing. The close matches stay listed, and you can pick one with
Tabor the arrow keys, butEntersubmits your text as typed and reports Unknown command. - Commands that aren't available to you: Claude Code leaves them out of the menu. When nothing matches, Claude Code shows
No commands match "/name". Most unavailable commands return Unknown command when you submit them; a few, such as/scheduleon a Console API key, answer with their own availability message instead. Some commands also answer with a message of their own when your organization's policy disables them. - Hidden commands: Claude Code keeps a few available commands, such as
/heapdump, out of the menu by design. A partial name never brings a hidden command into the menu: if the partial matches nothing visible, Claude Code shows the same no-match message. Claude Code lists the command only once you've typed its full name, and submitting the full name runs it.