Skip to main content
Slash commands let you control Claude Code directly from the chat input. Type / followed by a command name at any point during a session to invoke it. Commands do not consume conversation context — they run outside the normal message flow.

Session

Code

Git

Configuration

System

Not all commands are available in every environment. Feature-gated commands (such as /voice and /desktop) may not appear if the underlying capability is not enabled in your installation.
If Claude is approaching the context limit, run /compact to summarize the conversation history. This reduces token usage without losing important context, and usually costs much less than starting a fresh session.