Claude Code provides a comprehensive set of slash commands for specific actions, workflow management, and configuration. These commands provide direct access to Claude Code functionality without natural language interpretation.
Commands for managing project context and file operations.
Adds additional directories to the working context for Claude to understand.
/add-dir path/to/directory
/add-dir ~/projects/frontend
/add-dir ../shared-librariesFeatures:
~ for home directory)Direct editing of all imported memory files.
/memoryFunctionality:
Helps debug context issues and understand what Claude can see.
/contextUse Cases:
Export conversations for sharing or archival.
/export
/export --format json
/export --include-metadataOutput Formats:
Switch between different conversations within Claude Code.
/resume
/resume conversation-idFeatures:
Commands for development tasks and workflow management.
Report issues directly within Claude Code.
/bug "Issue description"
/bug "Slash commands not working in VS Code extension"Functionality:
View usage and cost information.
/cost
/cost --detailed
/cost --period monthlyInformation Displayed:
List and manage current todo items.
/todos
/todos --add "Implement user authentication"
/todos --complete 1Features:
Handle GitHub pull request comments and reviews.
/pr-comments
/pr-comments --repo owner/repository
/pr-comments --pr 123Capabilities:
Install and configure GitHub app integration.
/install-github-app
/install-github-app --org organization-nameSetup Features:
Commands for managing Claude Code configuration and tools.
Validate configuration, permissions, and debug issues.
/doctor
/doctor --verbose
/doctor --fix-permissionsValidation Checks:
Manage tool permissions and security settings.
/permissions
/permissions --allow "Bash(git *)"
/permissions --block "Bash(rm -rf *)"
/permissions --listPermission Controls:
Select and configure AI models.
/model
/model claude-3-sonnet-20240229
/model --opus-plan
/model --listModel Options:
Customize terminal status line display.
/statusline
/statusline --enable
/statusline --disable
/statusline --format "claude[%project%] %status%"Customization Options:
Enable vim-style key bindings in the interface.
/vim
/vim --enable
/vim --disableVim Features:
Manage Model Context Protocol servers and tools.
/mcp
/mcp --list
/mcp --add server-name
/mcp --remove server-name
/mcp --statusMCP Operations:
Create and manage custom subagents for specialized tasks.
/agents
/agents --create agent-name
/agents --list
/agents --edit agent-nameAgent Features:
Commands for viewing system status and information.
View comprehensive system and account status.
/status
/status --detailedStatus Information:
View release notes and version information.
/release-notes
/release-notes --version 1.0.105
/release-notes --latestVersion Information:
General configuration management interface.
/config
/config --edit
/config --reset
/config --backupConfiguration Operations:
Switch to Claude Max plans for enhanced features.
/upgrade
/upgrade --claude-max
/upgrade --infoUpgrade Options:
Clear and manage conversation sessions.
/clear
/clear --all
/clear --keep-contextSession Operations:
# Basic command
/command-name
# Command with arguments
/command-name argument
# Command with quoted arguments
/command-name "argument with spaces"
# Command with flags
/command-name --flag value
/command-name --boolean-flag--help, -h # Show command help
--verbose, -v # Verbose output
--quiet, -q # Quiet mode
--force, -f # Force operation
--dry-run # Preview changes without executing
--format # Output format (json, yaml, table)Most slash commands support tab completion for:
Slash commands provide clear error messages for:
Commands that fail will display helpful suggestions for resolution and links to relevant documentation.