A complete, categorized reference to all 60+ slash commands, bundled skills, and CLI flags in Claude Code — from everyday session tools to enterprise-grade automation.
The first time you type claude in your terminal, the sheer number of available commands can feel overwhelming. There are slash commands for session control, model switching, context management, code review, voice input, and even ordering stickers. Where do you even start?
This guide organizes everything into logical groups so you can learn progressively — starting with the handful of commands you’ll use every single day, then working out to the more specialized power features. Whether you’re a solo developer or part of an enterprise engineering team, this is the reference you’ll want bookmarked.
/help at any time to see all available commands filtered to your platform, plan, and any connected MCP servers or custom commands you’ve added.
What Is Claude Code?
Claude Code is Anthropic’s agentic coding tool — not a chat interface with a syntax highlighter, but a full autonomous agent that reads your codebase, edits files, runs terminal commands, manages git workflows, and connects to external services. As of early 2026, roughly 4% of all public GitHub commits are authored by Claude Code, a figure that has grown at a remarkable pace since the tool’s research preview.
Claude Code is available across multiple environments: the terminal CLI, VS Code and JetBrains IDE extensions, a standalone desktop app, and a browser-based interface at claude.ai/code. Most surfaces require a Claude subscription or Anthropic Console account.
The commands in this guide apply primarily to the terminal CLI, which remains the most fully-featured surface. Many slash commands are also accessible in the IDE extensions and desktop app.
Getting Started: Installation and Launch
Claude Code can be installed in three ways. The native binary via the install script is the recommended approach:
# Option 1 — Native binary (recommended, macOS/Linux/WSL)
curl -fsSL https://claude.ai/install.sh | bash
# Option 2 — Homebrew (macOS only)
brew install --cask claude-code
# Option 3 — npm (any OS, legacy — migrate with `claude install`)
npm install -g @anthropic-ai/claude-code
Once installed, launching Claude Code is straightforward. Always start it from inside your project directory:
claude # Interactive mode — opens a session in your repo
claude "Fix the bug in auth" # Start with an initial prompt
claude -p "Explain this module" # One-time query (no persistent session)
claude -c # Continue the most recent session
Before your first session, authenticate your account:
claude auth login # Sign in or switch accounts
claude auth status # Check your current auth state
claude auth logout # Clear stored credentials
Session Management Commands
These are the commands you’ll reach for most often during any working session. They control how you navigate, manage, and save your conversations with Claude.
| Command | Parameter | What It Does |
|---|---|---|
| /clear | — | Wipes conversation history and starts fresh. Aliases: /reset, /new. Use when approaching rate limits or switching to a new task. |
| /compact | [instructions] | Compresses the conversation while preserving key context. Pass optional instructions to control what’s kept, e.g., /compact retain error handling patterns. |
| /resume | [session] | Resume a past conversation by ID, name, or interactive picker. Alias: /continue. |
| /fork | [name] | Creates a branch of the current conversation at this exact point, so you can explore different approaches without losing your current path. |
| /rewind | — | Roll back the conversation and/or code changes to a previous checkpoint. The 2026 update added the ability to rewind code only while keeping conversation history. Alias: /checkpoint. |
| /rename | [name] | Give the current session a human-readable name, displayed on the prompt bar. Without an argument, auto-generates a name from the conversation. |
| /export | [filename] | Save the conversation as plain text. Provide a filename to write directly to disk, or omit to get a dialog for copying to clipboard. |
| /cost | — | Displays detailed token usage and cost statistics for the current session. |
| /usage | — | Shows plan limits and current rate limit status. |
| /tasks | — | Lists and manages any background tasks running in the session. |
| /btw | <question> | Ask a side question without adding it to the main conversation thread — useful when Claude is mid-task and you have a quick question. |
| /copy | — | Copies the last response to clipboard. If the response contains code blocks, shows an interactive picker so you can grab individual blocks or the entire response. |
| /exit | — | Exits the CLI. Alias: /quit. |
/compact when context usage exceeds 80% and you want to keep working on the same task. Use /clear when switching to a completely different task. Since v2.0.64, compaction completes almost instantly.
Model and Performance Commands
Claude Code gives you direct control over which model powers your session, and at what effort level. The current model lineup includes Opus 4.7 for complex reasoning, Sonnet 4.6 for general work, and Haiku 4.5 for fast, token-efficient tasks.
| Command | Parameter | What It Does |
|---|---|---|
| /model | [model] | Switch models mid-session. Type /model opus, /model sonnet, or /model haiku. Use arrow keys in the picker to also adjust effort level. Takes effect immediately. |
| /effort | [low | medium | high | xhigh | max | auto] | Sets how hard Claude thinks before responding. low, medium, and high persist across sessions. xhigh is Opus 4.7 only. max is session-only. auto resets to default. |
| /fast | [on | off] | Toggles fast mode for Opus 4.6/4.7 — delivers approximately 2.5× faster output at higher cost. Best for live debugging and rapid iteration. Not a different model, just speed-optimized API settings. |
| /plan | [description] | Enters plan mode: Claude drafts a structured plan before writing any code. Useful for complex, multi-step work where you want to review the approach first. |
A practical decision rule: use Haiku for simple exploration and quick lookups, Sonnet for everyday coding and cost-sensitive work, and Opus for architecture decisions, complex refactoring, agentic loops, and security analysis.
Context and Memory Commands
Managing context is one of the most important skills for working efficiently with Claude Code. These commands help you visualize, optimize, and persist what Claude knows about your project.
| Command | Parameter | What It Does |
|---|---|---|
| /context | — | Visualizes context window usage as a color grid with optimization suggestions. Use this to know when you’re approaching limits before performance degrades. |
| /memory | — | Opens and edits your CLAUDE.md memory files, toggles auto-memory, and lets you view auto-generated memory entries Claude has saved across sessions. |
| /init | — | Initializes a new project by generating a CLAUDE.md guide file. This file defines coding standards, architecture decisions, and project conventions Claude reads at the start of every session. |
| /insights | — | Generates an analysis report of your Claude Code sessions — surfacing project areas worked on, interaction patterns, and friction points to help you improve your workflow. |
| /stats | — | Visualizes daily usage, session history, streaks, and model preferences over time. |
Code and Git Commands
These commands are specifically designed for code review, diffing, and integrating Claude Code into your version control workflow.
| Command | Parameter | What It Does |
|---|---|---|
| /diff | — | Opens an interactive diff viewer for uncommitted changes and per-turn diffs. Navigate with arrow keys to step through each modification Claude has made. |
| /pr-comments | [PR URL | number] | Pulls in GitHub PR comments directly into the session. Auto-detects the current branch’s PR or accepts a URL or PR number as argument. |
| /security-review | — | Analyzes pending changes specifically for security vulnerabilities — injection risks, authentication issues, and data exposure. Run this before merging sensitive changes. |
| /install-github-app | — | Sets up the Claude GitHub Actions integration, enabling Claude Code to participate in automated PR workflows. |
| /sandbox | — | Toggles sandbox mode, which isolates Claude’s actions from your live environment. Supported platforms only. |
| /add-dir | <path> | Adds an additional working directory to the current session, useful when your project spans multiple repositories or monorepo packages. |
Configuration and Settings Commands
Claude Code is highly customizable. These commands expose the configuration surface — from visual theming to permissions management to keybinding customization.
| Command | Parameter | What It Does |
|---|---|---|
| /config | — | Opens the settings interface for theme, model, and output style. Alias: /settings. |
| /theme | — | Changes the color theme. Supports light/dark modes, colorblind variants, and ANSI themes. |
| /color | [color | default] | Sets the prompt bar color for the current session. Options: red, blue, green, yellow, purple, orange, pink, cyan. Useful for visually distinguishing multiple open sessions. |
| /vim | — | Toggles between Vim and Normal editing modes for the prompt input. |
| /keybindings | — | Opens or creates the keybindings configuration file at ~/.claude/keybindings.json. |
| /permissions | — | View or update tool permissions — what Claude is allowed to read, edit, execute, or fetch. Alias: /allowed-tools. |
| /hooks | — | View current hook configurations. Hooks let you run shell commands automatically before or after Claude Code actions (e.g., auto-format after every file edit). |
| /terminal-setup | — | Configures terminal keybindings for Shift+Enter in VS Code, Alacritty, and Warp. |
| /statusline | [description] | Configures the Claude Code status line in your terminal. Describe what you want shown, or run without arguments for auto-configuration. |
| /doctor | — | Diagnoses and verifies your Claude Code installation — helpful when something seems broken. |
| /release-notes | — | Displays the full changelog. Claude Code ships weekly, so this is worth checking regularly. |
| /plugin | — | Manages Claude Code plugins: install, uninstall, and browse available plugins. |
| /reload-plugins | — | Reloads all active plugins to apply changes without restarting the session. |
Collaboration and Integration Commands
These commands connect Claude Code to your broader toolchain — teammates, mobile devices, MCP servers, and external services.
| Command | Parameter | What It Does |
|---|---|---|
| /remote-control | [name] | Makes the current session controllable from claude.ai or the Claude mobile app. Alias: /rc. Useful for dispatching tasks from your phone and reviewing results on desktop. |
| /desktop | — | Continues the current session in the Claude Code Desktop app. macOS and Windows only. Alias: /app. |
| /mobile | — | Displays a QR code linking to the Claude mobile app. Aliases: /ios, /android. |
| /mcp | — | Manages MCP (Model Context Protocol) server connections and OAuth authentication. MCP lets Claude connect to databases, GitHub, Sentry, Slack, and hundreds of other external services. |
| /agents | — | Manages subagent configurations and agent teams. Subagents are specialized Claude instances with their own context windows, useful for domain-specific tasks like code review or security analysis. |
| /install-slack-app | — | Sets up the Claude Slack integration so your team can interact with Claude from Slack. |
| /ide | — | Manages IDE integrations with VS Code and JetBrains and shows current integration status. |
| /chrome | — | Configures the Claude in Chrome extension settings. |
| /login | — | Signs in to your Anthropic account. |
| /logout | — | Signs out from your Anthropic account. |
| /extra-usage | — | Configures extra usage allowances to keep working when rate limits are hit. |
| /upgrade | — | Opens the plan upgrade page if you need a higher tier. |
| /voice | — | Activates push-to-talk voice mode. Hold spacebar to speak; supports 20+ languages. Ideal for hands-free prompt entry while working through complex problems. |
| /feedback | [report] | Submits feedback directly to the Anthropic team. Alias: /bug. |
Bundled Skills
Skills are different from slash commands. While slash commands perform a specific action immediately, skills give Claude a detailed playbook and let it orchestrate complex, multi-step work autonomously — including spawning parallel subagents and managing file output.
Five skills ship with every Claude Code installation:
/batch "migrate src/ from Solid to React"anthropic or @anthropic-ai/sdk.Keyboard Shortcuts
Knowing these keyboard shortcuts will save you significant time, especially in interactive sessions where you’re rapidly switching modes:
| Shortcut | Action |
|---|---|
| Shift+Tab | Cycles through permission modes: default → acceptEdits → auto → plan |
| Option+T / Alt+T | Enables Extended Thinking — Claude reasons through complex problems before responding |
| Option+P / Alt+P | Opens the model picker inline |
| Ctrl+G | Opens the current prompt in your external editor (respects $EDITOR) |
| Esc (twice) | Opens the rewind menu for conversation or code rollback |
| Spacebar (hold) | Push-to-talk in voice mode (after /voice is active) |
All keybindings are customizable. Run /keybindings to open the configuration file at ~/.claude/keybindings.json. First match wins; Enterprise settings cannot be overridden.
Creating Your Own Commands
One of Claude Code’s most powerful features is the ability to define your own reusable slash commands. These live in .claude/commands/ (project-level) or ~/.claude/commands/ (global) as Markdown files, and they show up automatically in /help.
Commands support YAML frontmatter for descriptions, model overrides, tool restrictions, and argument interpolation:
---
description: Fix a GitHub issue using our coding standards
allowed-tools: Read, Edit, Bash(git:*)
model: opus
argument-hint: [issue-number]
---
Fix GitHub issue #$ARGUMENTS following our conventions.
Check CLAUDE.md for style rules before making any edits.
You can reference files, directories, and even URLs directly in prompts using @ mentions:
@README.md # Include a specific file
@src/components/ # Include an entire directory
@https://example.com # Fetch a URL (read-only)
Teams can package frequently-used workflows — like /review-pr or /deploy-staging — as shared skills or commands checked into version control, making them available to every developer on the team.
Putting It All Together
Claude Code’s command surface is large, but you don’t need to master all 60+ commands on day one. Start with the handful that matter most for everyday work — /clear, /compact, /model, /diff, and /init — and let the rest reveal themselves as your workflows grow more sophisticated.
The real leverage comes from combining these primitives: a well-maintained CLAUDE.md feeding Claude project context, hooks enforcing code quality automatically, custom commands packaging team workflows, and MCP servers connecting Claude to your existing tools. That stack turns Claude Code from a smart autocomplete into a genuine development partner.
Claude Code ships weekly, so the command set keeps expanding. Run /release-notes regularly to catch new additions — several of the most useful commands in this guide (like /security-review, /voice, and /color) were added in the past few months alone.
Want More Deep Dives Like This?
ToolTechSavvy covers AI tools, developer workflows, cloud platforms, and enterprise software — written for practitioners who want clarity without the fluff.
Explore More at ToolTechSavvy →


