Skip to main content
Toolsbase Logo

Claude Code Commands

Complete reference for Claude Code CLI commands, slash commands, and keyboard shortcuts. Search by category and copy commands with one click.

Last updated:

Compatible with v2.1.x | Updated April 2026

How to Use

Expand how to use
  1. 1

    Search for commands

    Enter a command name in the search field, or filter by category (Slash Commands, Keyboard Shortcuts, etc.) to find the command you need.

  2. 2

    Review descriptions and examples

    Check the command description and practical usage examples.

  3. 3

    Copy commands

    Click the copy button to copy the command to your clipboard for immediate use in your terminal.

Latest Updates (Summary)

Check the most important updates at a glance. See the section below for details.

v2.1.105 (2026-04-13)

Added `/proactive` as an alias for `/loop`, PreCompact hook block support, plugin `monitors` manifest key, and numerous streaming, UI, and rendering improvements and fixes.

v2.1.101 (2026-04-10)

Added /team-onboarding command, OS CA certificate store trusted by default, remote session improvements, and numerous bug fixes.

View detailed update history

/help
Show help and documentation

Examples

/help
Display available commands and help

/compact
Compact the context window

Examples

/compact
Summarize and compress conversation history
/compact [instructions]
Compact with custom instructions

/clear
Clear conversation history

Examples

/clear
Reset the current conversation

/config
Manage settings

Examples

/config
View and modify current settings

/context
Visualize context usage

Examples

/context
Check current context window usage as a colored grid

/copy
Copy last response to clipboard (with code block selection)

Examples

/copy
Copy Claude's last response to clipboard (shows picker for multiple code blocks)

/cost
Show token usage and costs

Examples

/cost
Display token usage for the current session

/debug
View session debug log

Examples

/debug
Display debug information and logs

/desktop
Hand off CLI session to Desktop app

Examples

/desktop
Open current session in Claude Desktop app

/doctor
Diagnose installation status

Examples

/doctor
Check environment and connection status

/exit
Exit the REPL

Examples

/exit
End the Claude Code session

/export
Export conversation to file or clipboard

Examples

/export
Export current conversation

/init
Initialize project with CLAUDE files

Examples

/init
Generate CLAUDE.md file to set up the project

/mcp
Configure and manage MCP servers

Examples

/mcp
Check and manage MCP server status

/memory
Edit CLAUDE files

Examples

/memory
Open and edit CLAUDE.md files

/model
Switch AI model and Effort level

Examples

/model
Select and change model (use arrow keys to adjust Effort level)
/model claude-sonnet-4-6
Switch to a specific model

/permissions
Manage permission settings

Examples

/permissions
View and modify tool permissions

/plan
Enter plan mode directly

Examples

/plan
Switch to plan mode for creating implementation plans

/rename
Rename the current session

Examples

/rename [new name]
Give the session a name for easier management

/resume
Resume a session by ID or name

Examples

/resume
Select and resume from previous sessions

/rewind
Rewind conversation or code changes

Examples

/rewind
Undo recent changes and revert to previous state

/stats
Visualize usage statistics and session history

Examples

/stats
Display usage statistics

/status
Show current session status

Examples

/status
Display model, context usage, and more

/statusline
Configure the status line UI

Examples

/statusline
Customize status line display

/tasks
List and manage background tasks

Examples

/tasks
Check running background tasks

/teleport
Resume a remote session from claude.ai

Examples

/teleport
Resume a session started on claude.ai in the CLI

/terminal-setup
Display terminal key settings

Examples

/terminal-setup
Check recommended terminal settings

/theme
Change color theme

Examples

/theme
Select and change the UI color theme

/todos
List current TODO items
Available up to v2.1.70

Examples

/todos
View TODO items in the task list

/usage
Show plan usage and limits

Examples

/usage
Check current plan usage and remaining limits

/powerup
Interactive lessons for Claude Code features

Examples

/powerup
Start interactive lessons with animated demos

/agents
Manage and configure sub-agents

Examples

/agents
View available sub-agents and their settings

/effort
View or change effort level

Examples

/effort
View current effort level and change it (low/medium/high/auto)

/fast
Toggle Fast mode

Examples

/fast
Enable or disable Fast mode for faster output with the same model

/hooks
Configure and manage hooks

Examples

/hooks
Set up and view shell command hooks for tool execution

/plugin
Install and manage plugins

Examples

/plugin
List, install, or remove plugins

/simplify
Review changed code for reuse, quality, and efficiency, then apply improvements

Examples

/simplify
Review recent changes and suggest quality improvements

/batch
Execute multiple tasks in batch mode

Examples

/batch
Queue and execute multiple tasks in batch processing mode

/btw
Send a side message without interrupting the main conversation
Available depending on environment/settings

Examples

/btw Also add docs for this function later
Send a side request without interrupting the main task

/chrome
Manage Chrome integration
Available depending on environment/settings

Examples

/chrome
View and configure Chrome integration settings

/color
Change theme color
Available depending on environment/settings

Examples

/color
Select and change UI theme color

/diff
Show changes made during the session

Examples

/diff
Display file changes made in the current session

/extra-usage
Manage extra usage options
Available depending on environment/settings

Examples

/extra-usage
View and configure extra usage settings

/feedback
Send feedback

Examples

/feedback
Send feedback to the Claude Code team

/fork
Fork the current conversation
Alias for /branch

Examples

/fork
Fork the current conversation into a new session

/ide
Manage IDE integration

Examples

/ide
View and configure IDE integration settings

/install-github-app
Install Claude GitHub App

Examples

/install-github-app
Install Claude GitHub App to your repository

/install-slack-app
Install Claude Slack App

Examples

/install-slack-app
Install Claude Slack App to your workspace

/keybindings
Configure key bindings
Available depending on environment/settings

Examples

/keybindings
View and modify key binding settings

/login
Log in to your Anthropic account

Examples

/login
Start the authentication flow to log in

/logout
Log out of your Anthropic account

Examples

/logout
Log out of the current session

/mobile
Connect with mobile device

Examples

/mobile
Manage mobile device connections

/pr-comments
Fetch and display PR comments
Available up to v2.1.90

Examples

/pr-comments
Display review comments for the current PR

/privacy-settings
Manage privacy settings
Available depending on environment/settings

Examples

/privacy-settings
View and configure privacy-related settings

/reload-plugins
Reload plugins

Examples

/reload-plugins
Reload installed plugins

/remote-control
Connect session to browser/mobile
Available depending on environment/settings

Examples

/remote-control
Bridge your session to claude.ai/code to continue from a browser or phone

/review
Run code review
Deprecated

Examples

/review
Run a code review on recent changes

/sandbox
Manage sandbox mode

Examples

/sandbox
View and configure sandbox settings

/skills
List available skills

Examples

/skills
Display configured skills

/stickers
Manage stickers

Examples

/stickers
View and manage available stickers

/upgrade
Upgrade your plan
Available depending on environment/settings

Examples

/upgrade
View plan upgrade options

/voice
Toggle voice input mode
Available depending on environment/settings

Examples

/voice
Enable or disable voice input mode

/add-dir
Add a working directory to the session

Examples

/add-dir ../other-project
Add access to another directory in the current session

/branch
Create a branch of the current conversation

Examples

/branch
Branch the current conversation at this point
/branch my-experiment
Create a named conversation branch

/insights
Generate a session analysis report
Available depending on environment/settings

Examples

/insights
Generate a report analyzing usage patterns and interaction insights

/passes
Share a free week of Claude Code
Available depending on environment/settings

Examples

/passes
Share a free week pass of Claude Code with friends

/release-notes
View the changelog

Examples

/release-notes
View the full changelog with the most recent version

/remote-env
Configure remote environment

Examples

/remote-env
Configure the default remote environment for web sessions started with --remote

/schedule
Manage Cloud scheduled tasks

Examples

/schedule
Create, update, list, or run Cloud scheduled tasks conversationally

/security-review
Analyze pending changes for security vulnerabilities

Examples

/security-review
Review the current branch's git diff for security risks

/setup-bedrock
Configure Amazon Bedrock authentication, region, and model pins through an interactive wizard
Available depending on environment/settings

Examples

/setup-bedrock
Walks you through AWS auth, region, credential verification, and model selection (visible only when CLAUDE_CODE_USE_BEDROCK=1)

/setup-vertex
Configure Google Vertex AI authentication, project, region, and model pins through an interactive wizard
Available depending on environment/settings

Examples

/setup-vertex
Walks you through GCP auth, project, region, credential verification, and model selection (visible only when CLAUDE_CODE_USE_VERTEX=1)

/ultraplan
Draft, review, and execute a plan in an ultraplan session

Examples

/ultraplan refactor the auth module
Draft a plan, review it in your browser, then execute remotely or locally

/autofix-pr
Spawn a web session that watches the current branch's PR and auto-fixes CI failures and review comments
Available depending on environment/settings

Examples

/autofix-pr
Watch the current branch's PR and push fixes for CI failures and review comments (requires gh CLI)
/autofix-pr only fix lint and type errors
Pass a prompt to narrow the fix scope

/web-setup
Connect your GitHub account to Claude Code on the web using local gh CLI credentials

Examples

/web-setup
Connect your GitHub account to Claude Code on the web using your local gh CLI credentials

/team-onboarding
Generate teammate ramp-up documentation from local usage patterns

Examples

/team-onboarding
Analyze project usage patterns and generate onboarding documentation for team members

/claude-api
Load Claude API reference for your project's language (Bundled Skill)

Examples

/claude-api
Load Claude API reference material for your project's language (Python, TypeScript, etc.)

/loop
Run a prompt repeatedly on an interval (Bundled Skill)

Examples

/loop 5m check if the deploy finished
Run a prompt every 5 minutes
/loop
Run an autonomous maintenance check (Claude self-paces the interval)

/vim
Toggle Vim editing mode
Available until v2.1.91 (removed in v2.1.92)

Examples

/vim
Switch between Vim mode and Normal mode for input editing

/proactive
Alias for `/loop` (run a prompt repeatedly)
Alias for /loop

Examples

/proactive
Run an autonomous maintenance check (same behavior as `/loop`)
/proactive 5m check if the deploy finished
Run a prompt repeatedly every 5 minutes

Escape
Interrupt current operation / clear input

Examples

Escape
Stop running operations or clear current input

Tab
Auto-complete file paths

Examples

Tab
Complete file paths and commands while typing

Enter
Send message

Examples

Enter
Send the typed message to Claude

Shift+Tab
Cycle permission modes

Examples

Shift+Tab
Cycle through available permission modes

Up Arrow
Browse input history (when input is empty)

Examples

Up Arrow
Show previously entered messages

Ctrl+B
Background running tasks

Examples

Ctrl+B
Background bash commands and agents (tmux users press twice)

Ctrl+C
Interrupt current operation

Examples

Ctrl+C
Stop running tasks or commands

Ctrl+D
Exit session

Examples

Ctrl+D
End the Claude Code session

Ctrl+G
Open in default text editor

Examples

Ctrl+G
Edit input content in your text editor

Ctrl+J
Insert newline

Examples

Ctrl+J
Add a newline while typing

Ctrl+K
Kill from cursor to end of line

Examples

Ctrl+K
Delete text from cursor to end of line

Ctrl+L
Clear screen

Examples

Ctrl+L
Clear the terminal screen

Ctrl+O
Toggle verbose output

Examples

Ctrl+O
Enable or disable verbose output mode

Ctrl+R
Reverse search command history

Examples

Ctrl+R
Incrementally search through command history

Ctrl+T
Toggle task list visibility

Examples

Ctrl+T
Show or hide the task list panel

Ctrl+U
Kill entire line

Examples

Ctrl+U
Delete all text on the current line

Ctrl+V
Paste image from clipboard

Examples

Ctrl+V
Paste clipboard image into Claude Code

Ctrl+Y
Yank (paste) killed text

Examples

Ctrl+Y
Paste text deleted with Ctrl+K or Ctrl+U

Ctrl+X Ctrl+K
Kill all background agents

Examples

Ctrl+X Ctrl+K
Stop all running background agents (press twice within 3s to confirm)

Ctrl+X Ctrl+E
Open in external editor

Examples

Ctrl+X Ctrl+E
Edit prompt in default text editor (readline-native alias for Ctrl+G)

Esc+Esc
Rewind or summarize conversation

Examples

Esc+Esc
Rewind recent changes or summarize conversation

Option+P
Switch model

Examples

Option+P
Quickly switch the AI model

Option+T
Toggle extended thinking

Examples

Option+T
Enable or disable extended thinking mode

Option+O
Toggle fast mode

Examples

Option+O
Toggle fast mode on or off (same model, faster output)

Shift+Enter
Insert newline (supported terminals)

Examples

Shift+Enter
Add a newline while typing in supported terminals

Alt+B
Move back one word

Examples

Alt+B
Move cursor one word to the left

Alt+F
Move forward one word

Examples

Alt+F
Move cursor one word to the right

Alt+Y
Cycle paste history

Examples

Alt+Y
After Ctrl+Y, cycle through previously deleted text

Ctrl+E
Toggle show all content in transcript viewer

Examples

Ctrl+E
Toggle full content visibility in the transcript viewer opened with Ctrl+O

Hold Space
Push-to-talk voice dictation
Available depending on environment/settings

Examples

Hold Space
Hold spacebar to start voice dictation. Release to confirm input

\ + Enter
Multiline input (Quick escape)

Examples

\ + Enter
Type backslash then Enter to insert a newline. Works in all terminals

Option+Enter
Multiline input (macOS default)

Examples

Option+Enter
Default macOS key for inserting a newline

Left/Right
Cycle through dialog tabs

Examples

Left/Right
Navigate between tabs in permission dialogs and menus

/
Command and skill input

Examples

/
Type at the start of a prompt to show available commands and skills

!
Bash mode (direct command execution)

Examples

! npm test
Run a shell command directly and add its output to the conversation

@
File path autocomplete

Examples

@
Trigger file path autocomplete for mentioning files

claude
Start interactive mode

Examples

claude
Launch Claude Code in interactive mode

claude "prompt"
Run in one-shot mode

Examples

claude "Is there a bug in this code?"
Execute a one-time question and exit

claude -p "prompt"
Run in pipe mode (stdin support)

Examples

cat file.py | claude -p "Review this code"
Process data from standard input

claude -c
Continue the last conversation

Examples

claude -c
Resume from the previous session's conversation

claude -r
Resume a session by ID or name

Examples

claude -r
Select and resume from session list
claude -r session-name
Resume a specific named session

claude --model
Specify the model to use (alias or full name)

Examples

claude --model sonnet
Launch with a model alias
claude --model claude-sonnet-4-6
Launch with a full model name

claude --permission-mode
Specify permission mode

Examples

claude --permission-mode plan
Launch in plan mode (confirm before execution)

claude --debug
Launch in debug mode

Examples

claude --debug
Launch with debug information enabled
claude -d "api,hooks"
Show debug info for specific categories only

claude --verbose
Enable verbose logging

Examples

claude --verbose
Launch with detailed debug logging

claude --system-prompt
Customize system prompt

Examples

claude --system-prompt "You are a TypeScript expert"
Launch with a custom system prompt

claude --system-prompt-file
Load system prompt from file

Examples

claude --system-prompt-file ./prompt.txt
Replace system prompt with file contents

claude --append-system-prompt
Append to default system prompt

Examples

claude --append-system-prompt "Always respond in English"
Keep the default system prompt and add custom instructions

claude --append-system-prompt-file
Append system prompt from file

Examples

claude --append-system-prompt-file ./rules.txt
Append file contents to the default system prompt

claude --exclude-dynamic-system-prompt-sections
Move dynamic system prompt sections to user message

Examples

claude -p --exclude-dynamic-system-prompt-sections "query"
Move cwd, env info, git status from system prompt to user message for better cross-user prompt cache reuse

claude --effort
Set effort level (low/medium/high)

Examples

claude --effort high
Set model reasoning level to high

claude --worktree
Create isolated environment with Git worktree

Examples

claude --worktree
Run in an isolated Git worktree environment

claude --tmux
Open worktree in a tmux session

Examples

claude --worktree --tmux
Launch worktree in a tmux session (uses iTerm2 native panes when available)

claude --bare
Minimal mode — skip hooks, LSP, plugin sync, and more

Examples

claude --bare -p "query"
Run in minimal mode (skips hooks, LSP, plugin sync, auto-memory)

claude --allowedTools
Specify allowed tools

Examples

claude --allowedTools "Bash,Read,Write"
Restrict available tools on launch

claude --disallowedTools
Specify disallowed tools

Examples

claude --disallowedTools "Bash"
Completely exclude specified tools from model context

claude --tools
Specify the set of available tools

Examples

claude --tools "Bash,Edit,Read"
Explicitly specify which built-in tools to use
claude --tools ""
Disable all tools

claude --dangerously-skip-permissions
Bypass all permission checks (sandbox only)

Examples

claude --dangerously-skip-permissions
Skip all permission checks in offline sandbox environments

claude --allow-dangerously-skip-permissions
Enable permission bypass as an option

Examples

claude --allow-dangerously-skip-permissions
Allow permission bypass without enabling it by default

claude --enable-auto-mode
Unlock auto mode in Shift+Tab cycle

Examples

claude --enable-auto-mode
Add auto mode to the Shift+Tab permission mode cycle (Team plan required)

claude --permission-prompt-tool
Specify MCP tool for permission prompts

Examples

claude -p --permission-prompt-tool mcp_auth "query"
Delegate permission prompts to an MCP tool in non-interactive mode

claude --output-format
Specify output format (text/json/stream-json)

Examples

claude -p "test" --output-format json
Output results in JSON format

claude --input-format
Specify input format (text/stream-json)

Examples

claude -p --input-format stream-json
Run with realtime streaming input format (--print mode only)

claude --json-schema
Structured output with JSON Schema

Examples

claude -p "user info" --json-schema '{"type":"object"}'
Get structured output conforming to the specified JSON Schema

claude --include-partial-messages
Include partial message chunks

Examples

claude -p --output-format stream-json --include-partial-messages
Include partial message chunks in streaming output

claude --replay-user-messages
Echo user messages to stdout

Examples

claude -p --input-format stream-json --output-format stream-json --replay-user-messages
Re-emit stdin user messages to stdout for acknowledgment

claude --include-hook-events
Include hook lifecycle events in output

Examples

claude -p --output-format stream-json --include-hook-events "query"
Include hook events (PreToolUse, PostToolUse, etc.) in stream output

claude --max-turns
Limit agentic turns

Examples

claude -p --max-turns 3 "query"
Stop agent after 3 turns (print mode only)

claude --agent
Specify the agent to use

Examples

claude --agent my-agent
Start session with a specified agent configuration

claude --agents
Define custom agents as inline JSON

Examples

claude --agents '{"reviewer":{"description":"Reviews code","prompt":"You are a code reviewer"}}'
Define and use custom agents inline

claude --brief
Enable SendUserMessage tool for agent-to-user communication

Examples

claude --brief
Launch with the SendUserMessage tool enabled for agent-to-user messaging

claude --mcp-config
Load MCP server config from file

Examples

claude --mcp-config mcp.json
Load MCP server settings from a JSON file on launch

claude --strict-mcp-config
Use only MCP servers from --mcp-config

Examples

claude --mcp-config mcp.json --strict-mcp-config
Use only the specified MCP servers, ignoring all other MCP configurations

claude --mcp-debug
[Deprecated] Enable MCP debug mode (use --debug instead)
Deprecated

Examples

claude --mcp-debug
Show MCP server errors (deprecated: use --debug instead)

claude --disable-slash-commands
Disable all skills (slash commands)

Examples

claude --disable-slash-commands
Launch with all custom skills disabled

claude --channels
Specify channel notification MCP servers

Examples

claude --channels plugin:notifier@marketplace
Listen for channel notifications from specified MCP servers

claude --dangerously-load-development-channels
Load development channels

Examples

claude --dangerously-load-development-channels server:webhook
Load channels not on the approved allowlist for local development

claude --teammate-mode
Set agent team display mode

Examples

claude --teammate-mode tmux
Set teammate display: auto, in-process, or tmux

claude --name
Set a display name for the session

Examples

claude -n "feature-auth"
Set a name shown in /resume and terminal title

claude --fork-session
Create new session ID when resuming

Examples

claude -c --fork-session
Continue conversation as a new session

claude --session-id
Specify a session ID

Examples

claude --session-id <uuid>
Start or resume a session with a specific UUID

claude --no-session-persistence
Disable session persistence

Examples

claude -p --no-session-persistence "test"
Run as a temporary session that is not saved and cannot be resumed

claude --from-pr
Resume session linked to a GitHub PR

Examples

claude --from-pr 123
Resume a session associated with the specified PR number

claude --fallback-model
Specify fallback model

Examples

claude -p "test" --fallback-model sonnet
Auto-switch to fallback model when default is overloaded

claude --max-budget-usd
Set API spending limit

Examples

claude --max-budget-usd 10
Set maximum API spending in USD for the session

claude --add-dir
Add additional working directories

Examples

claude --add-dir /path/to/other-project
Specify additional directories alongside the main directory

claude --file
Download file resources at startup

Examples

claude --file file_abc:doc.txt file_def:img.png
Download specified file resources on startup

claude --chrome
Enable Chrome integration

Examples

claude --chrome
Launch with Claude in Chrome integration enabled

claude --no-chrome
Disable Chrome integration

Examples

claude --no-chrome
Launch with Claude in Chrome integration disabled

claude --ide
Enable automatic IDE connection

Examples

claude --ide
Auto-connect to available IDE on startup

claude --plugin-dir
Specify plugin directory

Examples

claude --plugin-dir /path/to/plugins
Load plugins from the specified directory on launch

claude --remote
Create a web session on claude.ai

Examples

claude --remote "Fix the login bug"
Send task to claude.ai and start a web session

claude --remote-control
Start with Remote Control enabled

Examples

claude --remote-control
Start an interactive session controllable from claude.ai or the Claude app

claude --remote-control-session-name-prefix
Set prefix for Remote Control session names

Examples

claude --remote-control-session-name-prefix my-project
Generate session names like "my-project-graceful-unicorn" with a custom prefix

claude --teleport
Resume a web session locally

Examples

claude --teleport
Move a web session from claude.ai to your local terminal

claude --settings
Load settings from file or JSON string

Examples

claude --settings settings.json
Launch with a custom settings file

claude --setting-sources
Specify setting sources to load

Examples

claude --setting-sources user,project
Load only user and project settings

claude --debug-file
Write debug logs to a file

Examples

claude --debug-file /tmp/claude-debug.log
Write debug logs to the specified file path

claude --betas
Include beta headers (API key users)

Examples

claude --betas feature-name
Include beta headers in API requests

claude --init
Run initialization hooks and start

Examples

claude --init
Run initialization hooks then start interactive mode

claude --init-only
Run initialization hooks and exit

Examples

claude --init-only
Run initialization hooks without starting a session

claude --maintenance
Run maintenance hooks and exit

Examples

claude --maintenance
Run maintenance hooks and exit

claude auth
Manage authentication (login/logout/status)

Examples

claude auth login
Log in to your Anthropic account
claude auth logout
Log out of the current account

claude agents
List configured agents

Examples

claude agents
Display list of available agents

claude mcp
MCP server management commands

Examples

claude mcp add server-name -s user -- command
Add an MCP server
claude mcp list
List configured MCP servers

claude plugin
Plugin management

Examples

claude plugin list
List installed plugins

claude doctor
Check auto-updater health

Examples

claude doctor
Diagnose auto-updater status

claude update
Update Claude Code to latest version

Examples

claude update
Update to the latest version

claude install
Install Claude Code or manage versions

Examples

claude install
Install Claude Code or switch to a specific version

claude setup-token
Set up long-lived authentication token

Examples

claude setup-token
Configure a long-lived authentication token for CI/CD environments

claude auto-mode
Inspect auto mode classifier configuration

Examples

claude auto-mode
View and inspect the auto mode classifier configuration

claude remote-control
Start Remote Control server

Examples

claude remote-control --name "My Project"
Start a Remote Control server to connect your environment to claude.ai

Key Updates (by Version)

Key changes organized based on Anthropic's official release notes.

v2.1.105 (2026-04-13)

Added `/proactive` as an alias for `/loop`, PreCompact hook block support, plugin `monitors` manifest key, and numerous streaming, UI, and rendering improvements and fixes.

View official release

  • /proactive is now an alias for /loop (same behavior as the existing /loop)
  • PreCompact hooks can now block compaction by exiting with code 2 or returning {"decision":"block"}
  • Plugin manifests support a top-level monitors key that auto-arms background monitors at session start or on skill invoke
  • Stalled API streams now abort after 5 minutes of no data and retry non-streaming instead of hanging indefinitely
  • /doctor layout overhaul with status icons; press f to have Claude fix reported issues
  • WebFetch now strips <style> and <script> contents so CSS-heavy pages no longer exhaust the content budget
v2.1.101 (2026-04-10)

Added /team-onboarding command, OS CA certificate store trusted by default, remote session improvements, and numerous bug fixes.

View official release

  • /team-onboarding command to generate teammate ramp-up documentation from local usage patterns
  • OS CA certificate store now trusted by default for enterprise TLS proxy compatibility
  • Remote session features like /ultraplan auto-create cloud environments without web setup
  • Fixed memory leak where long sessions retained historical message copies in virtual scroller
  • Fixed command injection vulnerability in POSIX which fallback for LSP binary detection
v2.1.98 (2026-04-09)

Added Google Vertex AI setup wizard, --exclude-dynamic-system-prompt-sections flag, and numerous security fixes including Bash tool permission bypass patches.

View official release

  • /setup-vertex command to interactively configure Google Vertex AI authentication, project, region, and model pins
  • --exclude-dynamic-system-prompt-sections flag to move dynamic sections to user message for improved cross-user prompt cache reuse
  • Monitor tool for streaming events from background scripts
  • Fixed Bash tool permission bypass vulnerabilities (backslash-escaped flags, compound commands)
  • Improved /resume picker with filter hints, project/worktree/branch names
v2.1.97 (2026-04-08)

Added /autofix-pr and /web-setup commands, focus view toggle (Ctrl+O), status line refreshInterval setting, running subagent indicator, numerous bug fixes.

View official release

  • /autofix-pr command to spawn a web session that auto-fixes PR CI failures and review comments
  • /web-setup command to connect your GitHub account to Claude Code on the web
  • Focus view toggle (Ctrl+O) in NO_FLICKER mode showing prompt, tool summary, and response
  • refreshInterval status line setting to re-run the status line command every N seconds
  • Running subagent indicator (● N running) in /agents
  • Hardened Bash tool permissions around env-var prefixes and network redirects
v2.1.92 (2026-04-04)

Added /powerup and /ultraplan commands, removed /vim and /tag, Remote Control session name customization, Bedrock setup wizard, and many performance improvements.

View official release

  • /powerup command for interactive feature lessons with animated demos
  • /ultraplan command for drafting plans, reviewing in browser, and executing remotely
  • --remote-control-session-name-prefix to customize Remote Control session name prefix
  • /vim command removed (toggle via /config → Editor mode)
  • Interactive Bedrock setup wizard added to login screen
  • Per-model and cache-hit breakdown added to /cost for subscription users
v2.1.63 (2026-02-28)

Added /simplify and /batch commands, HTTP hooks support, worktree settings sharing, and numerous memory leak fixes.

View official release

  • /simplify command for reviewing and improving changed code quality
  • /batch command for executing multiple tasks in batch mode
  • HTTP hooks for event-driven external integrations
  • Settings are now shared across worktrees
  • Multiple memory leak fixes improving long session stability
v2.1.59 (2026-02-26)

Added auto-memory feature, /copy command, and improved bash prefix suggestions.

View official release

  • Auto-memory feature for automatically retaining context across sessions
  • /copy command to copy last response or code blocks to clipboard
  • Improved bash command prefix suggestions for more accurate completions
v2.1.53 (2026-02-25)

Fixed UI flickering, improved bulk agent kill, and enhanced Windows stability.

View official release

  • Fixed UI flickering issues for improved display stability
  • Improved bulk agent termination for more efficient sub-agent management
  • Enhanced Windows stability with better path handling and process management
v2.1.51 (2026-02-24)

Added remote-control subcommand, improved plugin marketplace, and security fixes.

View official release

  • remote-control subcommand for controlling Claude Code from external processes
  • Improved plugin marketplace UI for easier plugin discovery and installation
  • Security fixes to strengthen sandbox robustness
v2.1.45 (2026-02-17)

Claude Sonnet 4.6 support, Agent Teams multi-provider fix, spinner customization.

View official release

  • Claude Sonnet 4.6 model support added
  • spinnerTipsOverride setting to customize spinner tips
  • Agent Teams now works on Bedrock, Vertex, and Foundry
  • Fixed sandbox temp file write errors on macOS
v2.1.30 (2026-02-03)

PDF page-range reading, MCP OAuth support, /debug command, token optimization.

View official release

  • pages parameter added to Read tool for PDF page-range reading
  • --client-id / --client-secret options for MCP server OAuth
  • /debug command for session troubleshooting
  • Unnecessary text block API sends fixed, reducing token waste
v2.1.20 (2026-01-27)

PR review status display, --add-dir CLAUDE.md loading, task deletion, CJK rendering fix.

View official release

  • PR review status indicator in prompt footer (approved/changes requested/pending/draft)
  • --add-dir directories can now load CLAUDE.md files
  • Task deletion via TaskUpdate tool
  • Wide character (emoji, CJK) rendering artifacts fixed
v2.1.9 (2026-01-16)

MCP auto:N threshold, plansDirectory setting, PreToolUse hook extension, session stability.

View official release

  • MCP tool search auto-enable threshold configurable with auto:N syntax
  • plansDirectory setting for custom plan file location
  • PreToolUse hooks can now return additionalContext
  • Long session parallel tool call errors fixed
v2.0.73 (2025-12-19)

Image preview, plugin marketplace search, theme picker improvement, VSCode tab badges.

View official release

  • Clickable [Image #N] links to open attached images in default viewer
  • Plugin search screen filtering (name, description, marketplace)
  • /theme command opens theme picker directly
  • VSCode tab icon badges (pending permissions: blue, unread completions: orange)

About Claude Code Commands

Claude Code Commands is a comprehensive reference covering all commands needed for terminal-based AI coding with Anthropic's Claude Code CLI. It includes over 140 slash commands, keyboard shortcuts, and CLI options, each with descriptions and practical examples. Version-specific update history is also included, making it easy to track new commands and changes across releases.

Key Features

  • Covers slash commands, keyboard shortcuts, and CLI options
  • Descriptions and practical examples for each command
  • Category-based filtering
  • Real-time search functionality
  • One-click command copying
  • Track command changes with version-specific update history
  • Includes CI/CD pipeline usage examples

Useful When

  • Looking up the /compact vs /clear difference when your Claude Code context window is nearly full mid-session
  • Checking the correct flag for non-interactive CI/CD usage (--dangerously-skip-permissions) before adding Claude Code to a GitHub Actions workflow
  • Finding the right @ mention (file, folder, URL, git) to give Claude Code context without copy-pasting code manually
  • Reviewing MCP server setup commands (/mcp, claude mcp add) before integrating Slack, GitHub, or a database into your Claude Code workspace
  • Sharing a quick-reference cheat sheet with a new teammate who just installed Claude Code for the first time

FAQ

What is Claude Code?

Claude Code is Anthropic's official AI coding assistant that runs in your terminal. It can read, write, and execute code in your project, run shell commands, and hold multi-turn conversations about your codebase — all without leaving the CLI.

What's the difference between /compact and /clear?

/compact summarizes and compresses the conversation history to free up context window space while keeping key information. /clear wipes the entire history and starts a fresh session. Use /compact when you want continuity; use /clear when you want a clean slate.

What is the difference between claude -p and claude "prompt"?

claude "prompt" starts an interactive session with the given prompt. claude -p "prompt" runs in print (pipe) mode — it outputs the response and exits immediately, making it suitable for scripting, piping, and CI/CD workflows.

Can I switch models mid-session?

Yes. Use the /model command inside a session to see available models and switch. You can also set a default model at startup with --model claude-opus-4-5 or similar flags.

What are MCP servers and how do I add one?

MCP (Model Context Protocol) servers extend Claude Code with external tools — like GitHub, Slack, databases, or browsers. Add one with claude mcp add <name> <command>, then manage it with /mcp inside a session. Check the MCP marketplace for community-built servers.

What does /init do and when should I run it?

/init scans your project and auto-generates a CLAUDE.md file with your directory structure, common commands, and coding conventions. Claude references this file automatically in every session. Run it once per project — usually right after cloning a new repo.

What should I do when the context window is full?

Use /compact to summarize the conversation and free up context space. If you want to start completely fresh, use /clear instead. You can also use /cost to check your current token usage before deciding.

How do I run Claude Code non-interactively in GitHub Actions?

Use claude -p "your prompt" with --dangerously-skip-permissions to bypass interactive permission prompts. Combine with --output-format json for machine-readable output. For example: cat build.log | claude -p "Summarize the errors" --output-format json.

What is the memory feature in Claude Code?

The /memory command opens an interface to edit CLAUDE.md files. Content written here persists across sessions. The auto-memory feature can also automatically save important information to CLAUDE.md.

What are the most useful keyboard shortcuts?

Escape cancels the current operation. Ctrl+C interrupts a running task. Shift+Enter inserts a newline without submitting. Tab selects completions. Use /keybindings to view and customize all bindings.