Skip to content

Slash Commands Reference

CommandDescription
/helpShow all available commands
/compactSummarize and compress context
/clearClear conversation history
/model [name]Switch to different model
/configView or modify settings
/contextShow context window usage
/statusShow session status
CommandDescription
/initGenerate CLAUDE.md from codebase analysis
/hooksConfigure hooks via interactive menu
/agentsCreate or manage custom subagents
CommandDescription
/terminal-setupInstall Shift+Enter key binding
/statuslineCustomize terminal prompt display
CommandDescription
/teleportResume remote sessions at claude.ai/code
/remote-envConfigure remote environment settings
CommandDescription
/mcp listList all configured MCP servers
/mcp enable [name]Enable a specific MCP server
/mcp disable [name]Disable a specific MCP server

Use Alt+M to cycle modes:

> add user authentication
# Claude asks questions, presents options, creates plan, waits for approval
> /model haiku # Fast, cheap
> /model sonnet # Balanced (default)
> /model opus # Most capable
> /compact # Summarize conversation to save tokens
> /init # Scans project, generates CLAUDE.md with structure/commands/conventions
> /hooks # Interactive menu to add/edit/remove hooks
> /mcp list # Show all servers
> /mcp enable X # Enable server
> /mcp disable X # Disable server

Create custom commands in .claude/commands/:

.claude/commands/review.md
Review my staged changes for:
1. Bugs and logic errors
2. Security issues
3. Performance problems
4. Missing tests

Use with:

> /review

See Slash Commands guide for details.