Claude Code Slash Commands
Complete reference for all built-in slash commands in Claude Code CLI
Table of Contents
Core Commands
Essential commands for managing your session
/help
Display all available commands
/clear
Clear conversation history and start fresh
/exit
Exit Claude Code CLI
/status
View current status and configuration
Conversation Management
Manage conversation state, history, and context
/compact
Compress conversation to reduce token usage
/context
Visualize current context usage
/resume
Restore previous conversation
/rewind
Return conversation to earlier state
/export
Export conversation to file or clipboard
Project & Files
Project initialization and file management
/init
Initialize project with CLAUDE.md
/memory
Edit CLAUDE.md memory file
/add-dir
Add supplementary working directories
Code Review & Quality
Code analysis, review, and security checks
/review
Request code review from Claude
/security-review
Comprehensive security audit
/bug
Report bugs to Anthropic
Configuration & Settings
Customize Claude Code behavior and preferences
/config
Open Settings interface
/model
Switch AI model
/output-style
Set response output style
Tools & Integration
Manage plugins, MCP servers, and integrations
/mcp
Manage Model Context Protocol servers
/plugin
Manage Claude Code plugins
/hooks
Configure event-triggered automation
System & Diagnostics
Health checks and system administration
/doctor
Check Claude Code installation health
/permissions
Manage tool and file access
/sandbox
Enable isolated execution environment
Custom Commands
Create your own slash commands
Project Custom Command
Create team-shared custom command
User Custom Command
Create personal custom command
Command with File Reference
Use @file syntax in custom commands
Command with Bash Execution
Run bash before command prompt