Skip to Content
CommandsBuilt-in Commands

Built-in Commands

A reference of all 103+ built-in commands available in Claude Code. Each command is implemented as a module under src/commands/.

Git & Version Control

CommandDescription
/commitCreate a git commit with AI-generated message
/diffShow current git diff
/commit-push-prCommit, push, and create a pull request

Session Management

CommandDescription
/clearClear conversation history
/compactCompress conversation to save context
/resumeResume a previous session
/sessionSession management utilities

Configuration

CommandDescription
/configView/edit settings
/themeChange terminal theme
/colorColor configuration
/loginAuthenticate with Claude
/logoutClear authentication

Development Tools

CommandDescription
/doctorDiagnose environment issues
/debug-tool-callDebug tool execution
/autofix-prAuto-fix PR review comments
/bughunterAutomated bug detection
CommandDescription
/add-dirAdd a working directory
/ideOpen in IDE
/desktopDesktop app integration

Information

CommandDescription
/costDisplay token usage and cost
/helpShow help information
/briefBrief summary of conversation

Extensions

CommandDescription
/mcpMCP server management
/skillsSkills management
/agentsAgent management
/tasksTask management

Input Modes

CommandDescription
/vimToggle vim mode
/voiceToggle voice input

Advanced

CommandDescription
/memoryMemory file management
/onboardingRe-run onboarding flow
/advisorAI advisor mode
/chromeChrome extension integration
Last updated on