Vibe Coder · Unit 9: Claude Code Commands and Extensions · Lesson 1 of 10

Slash commands

Slash commands are shortcuts you type inside Claude Code to control the session: clear it, compact it, see the cost, open settings.

Read the short notes and pictures.Do everything inside a blue frame.

Controlling the session

Slash commands are typed at the prompt and run immediately. They do not ask Claude to do work on your project. They change the session: what is in context, which model is used, what the agent is allowed to do.

A 3D scene of coloured blocks and cards. Everyday commands: /clear, /compact, /model, /help.
Clear, compact, switch model, get help.

The ones you will use most

/clear

Empty the conversation. Use between unrelated tasks.

/compact

Replace the history with a summary to free up context.

/model

Choose a different model for the session.

/help

List every command available to you.

A 3D scene of coloured blocks and cards. : A message, A command.
A command controls the session, not your code.

Finding the rest

  1. Type /

    A menu shows the available commands.

  2. Read the descriptions

    Built-in ones, plus any your project or plugins add.

  3. Try them in a scratch folder

    So nothing important is affected.

ActivityBuild stepYour Claude Code setup

Learn your commands

Open Claude Code in your project, list the commands, and use clear and compact once each. Write the five commands you expect to use most into "My build".

Done when

You will add your own commands and skills next.

Keep these

  • Slash commands control the session.
  • Clear between tasks, compact within one.
  • Type / to discover them.