Skip to content
BENIBIX Learn

Claude Code Slash Command

Also known as Slash command, Command menu, Built-in command

A word that starts with /, like /clear, that steers Claude Code.

Think of it like

It is like a magic word. You say it first, and the helper does that one job.

Example

Lucy's chat has grown long and slow. She types /co, sees /compact in the list, picks it, and the chat is squeezed into a short summary.

Why it matters

Most things you change in a session, from the model to the rules, take one slash command.

Definition

A slash command is a word that starts with / and that you type at the start of a message, such as /clear or /model. It steers Claude Code itself, not the task you are working on. Type / to open the menu, then type letters to filter it. Any text after the name goes to the command. Many commands are built in. Skills and plugins add more of their own.

Example code

console
/help
List the commands you can use.
Type a slash and a few letters, and the list shows the commands that match.

Common mistake

Typing a command in the middle of a message. It only counts at the very start, so later in the line it is just text.

Key takeaways

  1. 1
    Starts with /. At the start of a message.
  2. 2
    Steers Claude Code. Not the task itself.
  3. 3
    Type to filter. The menu narrows.

Compare

Learn it properly