Session Management
/clear
Clear the current conversation and start fresh.This resets the conversation history but preserves your configuration and settings. Cached skills are also reset.
/resume
Resume a previous conversation.Resume the session linked to a specific GitHub PR number or URL
/fork
Create a new conversation branch from the current point./rename
Rename the current session.By default,
/rename updates the terminal tab title. Custom titles persist across session resume.Configuration
/config
Open the interactive configuration menu.- Search settings with real-time filtering (type to search)
- Toggle boolean settings
- Edit values inline
- See current values and defaults
- Access documentation links
/model
Change the active AI model.- Human-readable labels (e.g., “Sonnet 4.5”)
- Current selection indicator
- Upgrade hints for newer versions
- Pricing information (Anthropic API users only)
- Support for extended thinking and effort levels
- Claude Sonnet 4.6 (latest)
- Claude Opus 4.6
- Claude Sonnet 4.5
- Claude Haiku 4
/theme
Change the terminal color theme.- Light themes
- Dark themes
- High contrast themes
/keybindings
Configure custom keyboard shortcuts.- Context-specific actions
- Chord sequences (e.g., Ctrl+K Ctrl+S)
- Per-context configuration
- Standard and custom actions
Context & Memory
/memory
Manage auto-memory for the current session.- View saved memories
- Edit or remove entries
- Search memory contents
- Configure memory scope (user/project/local)
/compact
Manually trigger conversation compaction.- Automatically at ~65% context usage (configurable)
- Manually via
/compact - Before blocking at ~98% context
/context
Display current context window usage.- Total tokens used
- Percentage of context window
- Tokens remaining
- Breakdown by category (messages, tools, skills)
- Warning when approaching limit
Development Tools
/commit
Create a git commit with AI-generated message.- Analyzes
git statusandgit diff - Reviews recent commit messages for style
- Drafts appropriate commit message
- Stages relevant files
- Creates commit
/sandbox
Configure bash command sandboxing.- Enable/disable sandboxing
- Configure network restrictions
- Set excluded commands
- View dependency status
- Network isolation
- Filesystem restrictions
- Process isolation
- Unix socket controls
/mcp
Manage Model Context Protocol (MCP) servers.Claude Code supports stdio, HTTP, and SSE transport types for MCP servers.
Plugins
/plugin
Manage Claude Code plugins.Install plugin at user or project level. Auto-detected if not specified.
/skills
View and manage available skills.- Built-in skills
- Plugin-provided skills
- Custom skills from
.claude/skills/ - Skill descriptions and permissions
Tasks & Agents
/tasks
View and manage background tasks.- View running tasks
- See task progress
- View task results
- Kill tasks (Ctrl+F)
/agents
List all configured agents.- Built-in agents
- Plugin agents
- Custom agents in
.claude/agents/
Utilities
/help
Show help and available commands.- Available slash commands
- Keyboard shortcuts
- Quick tips
- Documentation links
/copy
Copy assistant response to clipboard.- Shows code block picker when multiple blocks present
- Can copy individual code blocks
- Can copy full response
- “Always copy full response” option available
/usage
Display current plan usage statistics.- Token usage for current billing period
- Percentage used
- Reset date
- Overage information
Available for Anthropic API users. Bedrock/Vertex users see different metrics.
/extra-usage
Manage extra usage for extended sessions./stats
View session statistics.- Press
rto cycle: Last 7 days → Last 30 days → All time
- Session count by date
- Token usage over time
- Most used commands
- Tool usage statistics
/doctor
Diagnostic information for troubleshooting.- Version information
- Installation method
- Auto-update channel
- Available updates
- Environment details
- Configuration status
/debug
Get Claude’s help troubleshooting the current session.- Common issues
- Configuration problems
- Error patterns
- Suggested fixes
/feedback
Submit feedback or report issues.- Bug reports
- Feature requests
- General feedback
- Documentation issues
Authentication
/login
Authenticate with Anthropic.- OAuth authentication
- API key authentication
- Enterprise SSO
- Manual URL paste fallback
/logout
Sign out of current account./auth status
Check authentication status.- Current account
- Email address
- Organization
- Authentication method
- Token expiration
Advanced Commands
/fast
Toggle fast mode for quicker responses.- Reduces thinking time
- Faster response generation
- Available for Opus 4.6 and Sonnet models
- Requires extra-usage for some plans
/simplify
Simplify code or explanations./batch
Batch process multiple items./cost
Estimate API cost for current session.- Input tokens
- Output tokens
- Model pricing
- Cache usage
Worktree Commands
When using git worktree isolation:- Isolated workspace
- Automatic cleanup
- Branch-specific context
- Shared project config
WorktreeCreate- Runs when worktree is createdWorktreeRemove- Runs when worktree is removed
Command Execution Notes
Command Queue
Command Queue
Commands are queued and executed in order. Some commands like
/model execute immediately without queuing.Interrupt Commands
Interrupt Commands
Press ESC to cancel the current command. Press Ctrl+C twice within 3 seconds to kill all background agents.
Command History
Command History
Use Up/Down arrows to navigate command history. History is preserved across sessions.
Multi-line Input
Multi-line Input
Use Shift+Enter for multi-line input. Configure with
chat:newline keybinding.Next Steps
Create Custom Commands
Learn how to create your own slash commands for custom workflows