Slash Commands Reference
Built-in Commands
Section titled “Built-in Commands”| Command | Description |
|---|---|
/help | Show all available commands |
/compact | Summarize and compress context |
/clear | Clear conversation history |
/model [name] | Switch to different model |
/config | View or modify settings |
/context | Show context window usage |
/status | Show session status |
Project Commands
Section titled “Project Commands”| Command | Description |
|---|---|
/init | Generate CLAUDE.md from codebase analysis |
/hooks | Configure hooks via interactive menu |
/agents | Create or manage custom subagents |
Terminal Commands
Section titled “Terminal Commands”| Command | Description |
|---|---|
/terminal-setup | Install Shift+Enter key binding |
/statusline | Customize terminal prompt display |
Remote Commands
Section titled “Remote Commands”| Command | Description |
|---|---|
/teleport | Resume remote sessions at claude.ai/code |
/remote-env | Configure remote environment settings |
MCP Commands
Section titled “MCP Commands”| Command | Description |
|---|---|
/mcp list | List all configured MCP servers |
/mcp enable [name] | Enable a specific MCP server |
/mcp disable [name] | Disable a specific MCP server |
Usage Examples
Section titled “Usage Examples”Plan Mode
Section titled “Plan Mode”Use Alt+M to cycle modes:
> add user authentication
# Claude asks questions, presents options, creates plan, waits for approval/model
Section titled “/model”> /model haiku # Fast, cheap> /model sonnet # Balanced (default)> /model opus # Most capable/compact
Section titled “/compact”> /compact # Summarize conversation to save tokens> /init # Scans project, generates CLAUDE.md with structure/commands/conventions/hooks
Section titled “/hooks”> /hooks # Interactive menu to add/edit/remove hooks> /mcp list # Show all servers> /mcp enable X # Enable server> /mcp disable X # Disable serverCustom Commands
Section titled “Custom Commands”Create custom commands in .claude/commands/:
Review my staged changes for:1. Bugs and logic errors2. Security issues3. Performance problems4. Missing testsUse with:
> /reviewSee Slash Commands guide for details.