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
| Command | Description |
|---|---|
/commit | Create a git commit with AI-generated message |
/diff | Show current git diff |
/commit-push-pr | Commit, push, and create a pull request |
Session Management
| Command | Description |
|---|---|
/clear | Clear conversation history |
/compact | Compress conversation to save context |
/resume | Resume a previous session |
/session | Session management utilities |
Configuration
| Command | Description |
|---|---|
/config | View/edit settings |
/theme | Change terminal theme |
/color | Color configuration |
/login | Authenticate with Claude |
/logout | Clear authentication |
Development Tools
| Command | Description |
|---|---|
/doctor | Diagnose environment issues |
/debug-tool-call | Debug tool execution |
/autofix-pr | Auto-fix PR review comments |
/bughunter | Automated bug detection |
Navigation
| Command | Description |
|---|---|
/add-dir | Add a working directory |
/ide | Open in IDE |
/desktop | Desktop app integration |
Information
| Command | Description |
|---|---|
/cost | Display token usage and cost |
/help | Show help information |
/brief | Brief summary of conversation |
Extensions
| Command | Description |
|---|---|
/mcp | MCP server management |
/skills | Skills management |
/agents | Agent management |
/tasks | Task management |
Input Modes
| Command | Description |
|---|---|
/vim | Toggle vim mode |
/voice | Toggle voice input |
Advanced
| Command | Description |
|---|---|
/memory | Memory file management |
/onboarding | Re-run onboarding flow |
/advisor | AI advisor mode |
/chrome | Chrome extension integration |
Last updated on