/help #shows complete command list
/help compact #shows detailed syntax for the compact command
/init #scans package.json, tsconfig.json, etc., and creates a 15-30 line CLAUDE.md file with detected conventions
/doctor #runs 5-8 checks in under 15 seconds and reports any issues with green (OK) or red (failure) status
/compact #compresses current session
/clear #use when switching topics or after 20+ exchanges; keyboard shortcut Ctrl+L
/rewind #runs once to undo one turn; can be run multiple times to go back further
/memory #edit project-level conventions; supports three levels: project (CLAUDE.md), user (~/.claude/CLAUDE.md), and directory (.claude/CLAUDE.md)
/context #Displays detailed state of the active context window, showing token usage, fill percentage, and which files/conversations consume the most space. If fill rate exceeds 80%, run /compact immediately to free space
/cost #Shows real-time token consumption (input and output) and estimated cost for the current session in dollars. Typical 30-minute session shows 20,000-120,000 tokens and $0.50-3.00 cost.
/usage #Alternative command for monitoring token consumption across the session. displays cumulative usage statistics.
/config #Opens interactive configuration panel to adjust theme, verbosity level, default permissions, and notification settings
/model #Switches between available LLM models mid-session without restarting
/permissions #Inspects or modifies tool approval settings and permission levels for the current session
/status #Shows current session status, including active project, model, and context usage
/terminal-setup #Configures terminal-specific settings like color scheme and prompt appearance
/vim #Toggles Vim mode for the Claude Code input prompt
/agents #Lists available subagents and their capabilities
/hook #Manages automation hooks that execute shell commands on specific events
/hook list #shows active hooks
/hook run pre-commit #executes pre-commit hook manually
/review #starts review mode for current changes
/pr_comments #loads PR feedback into the session
Created
March 22, 2026 14:40
-
-
Save karthiks/3511bca78da6d27f934d98aaf3859265 to your computer and use it in GitHub Desktop.
List of Built-in Slash Commands in Claude Code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment