Skip to Content

Slash Commands

Commands that start with /. They only work at the start of a message.

How to Use Them

Type / inside a session to see the full list. Type / plus a few letters to filter it.

The Ones You Use Most

CommandWhat it does
/planExplore and plan before making changes
/modelSwitch the AI model (Sonnet, Opus, Haiku)
/compactShorten the chat to free up space
/clearStart a new chat, keep project memory
/contextSee how full the context window is
/resumeGo back to an earlier session
/diffSee your uncommitted code changes
/code-reviewScan your changes for bugs
/initCreate a CLAUDE.md for this project
/memoryView or edit project memory
/permissionsSet which tools need approval
/helpShow all available commands

A Few More Worth Knowing

  • /status — shows your version, model, and account
  • /export — saves the chat as a text file
  • /doctor — checks if your setup is healthy
  • /feedback — report a bug

You do not need to memorize all of them. Start with /plan, /model, /compact, and /code-review — the rest you will pick up as you need them.

Next → CLAUDE.md and Memory

claude code slash commands, claude code commands list, claude code cheatsheet, claude code plan command, claude code compact command

Last updated on