Commands

Claude Code ships with 80+ built-in slash commands plus dynamically loaded skills and plugin commands. Commands can be local (terminal execution), prompt (text expanded to the model), or local-jsx (Ink UI panels).

Discovery Type / in the REPL to see all available commands in your build. Commands are registered in src/commands.ts and loaded from built-in, plugin, skill, bundled, and workflow sources.

Session & Context

CommandDescription
/clearClear conversation history and free up context
/compactCompress session context — log/trace snipping, consolidation, pruning
/contextVisualize current context usage as a colored grid
/resumeResume a previous conversation
/renameRename the current conversation
/rewindRestore code and/or conversation to a previous point
/copyCopy Claude's last response to clipboard (or /copy N for Nth-latest)
/exportExport the current conversation to a file or clipboard
/sessionShow remote session URL and QR code
/branchCreate a branch of the current conversation at this point
/filesList all files currently in context

Model & Provider

CommandDescription
/modelSwitch model or provider at runtime
/provider-selectShow or change the active AI provider and model
/effortSet effort level for model usage (low, medium, high, max)
/costShow the total cost and duration of the current session
/usageShow plan usage limits
/usage-creditsConfigure usage credits to keep working when limits are hit
/statsShow your Claude Code usage statistics and activity
/rate-limit-optionsShow options when rate limit is reached
/upgradeUpgrade to Max for higher rate limits and more Opus

Tools & Permissions

CommandDescription
/toolsList all tools with usage stats and estimated token cost
/permissionsManage allow & deny tool permission rules
/planEnable plan mode or view the current session plan
/privacy-settingsView and update your privacy settings
/datadogManage individual telemetry and analytics settings (Datadog, Anthropic, Global)
/capabilitiesShow available system capabilities (git, tmux, browser, network, shells)
/hooksView hook configurations for tool events
/sandbox-toggleToggle sandbox mode for tool execution

Extensions (Plugins, MCP, Skills)

CommandDescription
/pluginManage plugins — list, install, remove
/plugin-detailsShow plugin component inventory, hooks, MCP servers, and per-session token cost
/reload-pluginsActivate pending plugin changes in the current session
/mcpManage MCP servers
/skillList available skills or show skill details
/skillsList available skills

Agents

CommandDescription
/agentManage Claude Code AI Agents execution, state checkpoints, and approvals
/agentsManage agent configurations
/tasksList and manage background tasks
/daemonOpen an interactive 24/7 autonomous daemon control panel; subcommands still support start/stop/status/restart
/taskCreate scheduled tasks with an interactive form; subcommands still manage the autonomous task queue
/loopRun a prompt or slash command on a recurring interval (e.g. /loop 5m /check-deploy)
/autofix-prFix CI errors and address review comments on a PR using Claude Code on the web

System & Diagnostics

CommandDescription
/helpShow help and available commands
/statusShow Claude Code status including version, model, account, API connectivity, and tool statuses
/doctorDiagnose and verify your Claude Code installation and settings
/exitExit the REPL
/versionShow version
/release-notesView release notes
/upgradeUpgrade to Max for higher rate limits

Configuration

CommandDescription
/configOpen config panel
/themeChange the theme
/colorSet the prompt bar color for this session
/keybindingsOpen or create your keybindings configuration file
/scroll-speedSet mouse wheel scroll speed multiplier (1-20)
/output-styleDeprecated: use /config to change output style
/remote-envConfigure the default remote environment for teleport sessions
/setting-sourcesConfigure setting sources
/initRun Setup hooks with init trigger

Git & Code Review

CommandDescription
/diffView uncommitted changes and per-turn diffs
/commitStage and commit changes
/commit-push-prCommit, push, and create a PR
/reviewReview code changes
/security-reviewRun a security review
/pr-commentsGet comments from a GitHub pull request
/install-github-appSet up Claude GitHub Actions for a repository

Research & Search

CommandDescription
/researchDeep source-grounded research across local files, wiki, and memory
/memoryEdit Claude memory files
/memory-searchSearch memories using semantic search (cross-lingual)
/searxngStart, stop, or check status of the local SearXNG Docker container
/explorerToggle file explorer sidebar

Evaluation

CommandDescription
/evalEvaluate AI agent performance with the verification harness

Utilities

CommandDescription
/btwAsk a quick side question without interrupting the main conversation
/buddyConfigure your AI companion (Buddy)
/desktopContinue the current session in Claude Desktop
/mobileShow QR code to download the Claude mobile app
/powerupInteractive lessons teaching Claude Code features with animated demos
/feedbackSubmit feedback about Claude Code
/onboardingRun the interactive onboarding wizard
/team-onboardingGenerate a teammate ramp-up guide from your local usage
/add-dirAdd a new working directory
/goalSet a session goal
/heapdumpDump the JS heap to ~/Desktop
/stickersOrder Claude Code stickers
/thinkbackYour 2025 Claude Code Year in Review

Feature-Gated Commands

These commands require specific environment variables to be enabled:

CommandFlagDescription
/bridgeBRIDGE_MODE=1Connect this terminal for remote-control sessions
/voiceVOICE_MODE=1Toggle voice mode
/briefKAIROS=1Brief command
/assistantKAIROS=1Assistant mode
/antUSER_TYPE=antToggle ant-only beta features
/ultraplanInternalExtended plan mode
/bughunterInternalBug hunting workflow

Interactive Autocomplete

Claude Code features an inline ghost text system that predicts the next argument as you type commands:

For mid-input command completion, the same ghost text engine fills in partial command names:

Command Loading

Commands are loaded from multiple sources at startup:

Use /reload-plugins to reload plugin-provided commands without restarting. Remote-safe and bridge-safe commands have explicit allowlists in src/commands.ts.