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 useCollapse how to use
- 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
Review descriptions and examples
Check the command description and practical usage examples.
- 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.
/helpShow help and documentation
Examples
/helpDisplay available commands and help/compactCompact the context window
Examples
/compactSummarize and compress conversation history/compact [instructions]Compact with custom instructions/clearClear conversation history
Examples
/clearReset the current conversation/configManage settings
Examples
/configView and modify current settings/contextVisualize context usage
Examples
/contextCheck current context window usage as a colored grid/copyCopy last response to clipboard (with code block selection)
Examples
/copyCopy Claude's last response to clipboard (shows picker for multiple code blocks)/costShow token usage and costs
Examples
/costDisplay token usage for the current session/debugView session debug log
Examples
/debugDisplay debug information and logs/desktopHand off CLI session to Desktop app
Examples
/desktopOpen current session in Claude Desktop app/doctorDiagnose installation status
Examples
/doctorCheck environment and connection status/exitExit the REPL
Examples
/exitEnd the Claude Code session/exportExport conversation to file or clipboard
Examples
/exportExport current conversation/initInitialize project with CLAUDE files
Examples
/initGenerate CLAUDE.md file to set up the project/mcpConfigure and manage MCP servers
Examples
/mcpCheck and manage MCP server status/memoryEdit CLAUDE files
Examples
/memoryOpen and edit CLAUDE.md files/modelSwitch AI model and Effort level
Examples
/modelSelect and change model (use arrow keys to adjust Effort level)/model claude-sonnet-4-6Switch to a specific model/permissionsManage permission settings
Examples
/permissionsView and modify tool permissions/planEnter plan mode directly
Examples
/planSwitch to plan mode for creating implementation plans/renameRename the current session
Examples
/rename [new name]Give the session a name for easier management/resumeResume a session by ID or name
Examples
/resumeSelect and resume from previous sessions/rewindRewind conversation or code changes
Examples
/rewindUndo recent changes and revert to previous state/statsVisualize usage statistics and session history
Examples
/statsDisplay usage statistics/statusShow current session status
Examples
/statusDisplay model, context usage, and more/statuslineConfigure the status line UI
Examples
/statuslineCustomize status line display/tasksList and manage background tasks
Examples
/tasksCheck running background tasks/teleportResume a remote session from claude.ai
Examples
/teleportResume a session started on claude.ai in the CLI/terminal-setupDisplay terminal key settings
Examples
/terminal-setupCheck recommended terminal settings/themeChange color theme
Examples
/themeSelect and change the UI color theme/todosList current TODO itemsAvailable up to v2.1.70
Examples
/todosView TODO items in the task list/usageShow plan usage and limits
Examples
/usageCheck current plan usage and remaining limits/powerupInteractive lessons for Claude Code features
Examples
/powerupStart interactive lessons with animated demos/agentsManage and configure sub-agents
Examples
/agentsView available sub-agents and their settings/effortView or change effort level
Examples
/effortView current effort level and change it (low/medium/high/auto)/fastToggle Fast mode
Examples
/fastEnable or disable Fast mode for faster output with the same model/hooksConfigure and manage hooks
Examples
/hooksSet up and view shell command hooks for tool execution/pluginInstall and manage plugins
Examples
/pluginList, install, or remove plugins/simplifyReview changed code for reuse, quality, and efficiency, then apply improvements
Examples
/simplifyReview recent changes and suggest quality improvements/batchExecute multiple tasks in batch mode
Examples
/batchQueue and execute multiple tasks in batch processing mode/btwSend a side message without interrupting the main conversationAvailable depending on environment/settings
Examples
/btw Also add docs for this function laterSend a side request without interrupting the main task/chromeManage Chrome integrationAvailable depending on environment/settings
Examples
/chromeView and configure Chrome integration settings/colorChange theme colorAvailable depending on environment/settings
Examples
/colorSelect and change UI theme color/diffShow changes made during the session
Examples
/diffDisplay file changes made in the current session/extra-usageManage extra usage optionsAvailable depending on environment/settings
Examples
/extra-usageView and configure extra usage settings/feedbackSend feedback
Examples
/feedbackSend feedback to the Claude Code team/forkFork the current conversationAlias for /branch
Examples
/forkFork the current conversation into a new session/ideManage IDE integration
Examples
/ideView and configure IDE integration settings/install-github-appInstall Claude GitHub App
Examples
/install-github-appInstall Claude GitHub App to your repository/install-slack-appInstall Claude Slack App
Examples
/install-slack-appInstall Claude Slack App to your workspace/keybindingsConfigure key bindingsAvailable depending on environment/settings
Examples
/keybindingsView and modify key binding settings/loginLog in to your Anthropic account
Examples
/loginStart the authentication flow to log in/logoutLog out of your Anthropic account
Examples
/logoutLog out of the current session/mobileConnect with mobile device
Examples
/mobileManage mobile device connections/pr-commentsFetch and display PR commentsAvailable up to v2.1.90
Examples
/pr-commentsDisplay review comments for the current PR/privacy-settingsManage privacy settingsAvailable depending on environment/settings
Examples
/privacy-settingsView and configure privacy-related settings/reload-pluginsReload plugins
Examples
/reload-pluginsReload installed plugins/remote-controlConnect session to browser/mobileAvailable depending on environment/settings
Examples
/remote-controlBridge your session to claude.ai/code to continue from a browser or phone/reviewRun code reviewDeprecated
Examples
/reviewRun a code review on recent changes/sandboxManage sandbox mode
Examples
/sandboxView and configure sandbox settings/skillsList available skills
Examples
/skillsDisplay configured skills/stickersManage stickers
Examples
/stickersView and manage available stickers/upgradeUpgrade your planAvailable depending on environment/settings
Examples
/upgradeView plan upgrade options/voiceToggle voice input modeAvailable depending on environment/settings
Examples
/voiceEnable or disable voice input mode/add-dirAdd a working directory to the session
Examples
/add-dir ../other-projectAdd access to another directory in the current session/branchCreate a branch of the current conversation
Examples
/branchBranch the current conversation at this point/branch my-experimentCreate a named conversation branch/insightsGenerate a session analysis reportAvailable depending on environment/settings
Examples
/insightsGenerate a report analyzing usage patterns and interaction insights/passesShare a free week of Claude CodeAvailable depending on environment/settings
Examples
/passesShare a free week pass of Claude Code with friends/release-notesView the changelog
Examples
/release-notesView the full changelog with the most recent version/remote-envConfigure remote environment
Examples
/remote-envConfigure the default remote environment for web sessions started with --remote/scheduleManage Cloud scheduled tasks
Examples
/scheduleCreate, update, list, or run Cloud scheduled tasks conversationally/security-reviewAnalyze pending changes for security vulnerabilities
Examples
/security-reviewReview the current branch's git diff for security risks/setup-bedrockConfigure Amazon Bedrock authentication, region, and model pins through an interactive wizardAvailable depending on environment/settings
Examples
/setup-bedrockWalks you through AWS auth, region, credential verification, and model selection (visible only when CLAUDE_CODE_USE_BEDROCK=1)/setup-vertexConfigure Google Vertex AI authentication, project, region, and model pins through an interactive wizardAvailable depending on environment/settings
Examples
/setup-vertexWalks you through GCP auth, project, region, credential verification, and model selection (visible only when CLAUDE_CODE_USE_VERTEX=1)/ultraplanDraft, review, and execute a plan in an ultraplan session
Examples
/ultraplan refactor the auth moduleDraft a plan, review it in your browser, then execute remotely or locally/autofix-prSpawn a web session that watches the current branch's PR and auto-fixes CI failures and review commentsAvailable depending on environment/settings
Examples
/autofix-prWatch the current branch's PR and push fixes for CI failures and review comments (requires gh CLI)/autofix-pr only fix lint and type errorsPass a prompt to narrow the fix scope/web-setupConnect your GitHub account to Claude Code on the web using local gh CLI credentials
Examples
/web-setupConnect your GitHub account to Claude Code on the web using your local gh CLI credentials/team-onboardingGenerate teammate ramp-up documentation from local usage patterns
Examples
/team-onboardingAnalyze project usage patterns and generate onboarding documentation for team members/claude-apiLoad Claude API reference for your project's language (Bundled Skill)
Examples
/claude-apiLoad Claude API reference material for your project's language (Python, TypeScript, etc.)/loopRun a prompt repeatedly on an interval (Bundled Skill)
Examples
/loop 5m check if the deploy finishedRun a prompt every 5 minutes/loopRun an autonomous maintenance check (Claude self-paces the interval)/vimToggle Vim editing modeAvailable until v2.1.91 (removed in v2.1.92)
Examples
/vimSwitch between Vim mode and Normal mode for input editing/proactiveAlias for `/loop` (run a prompt repeatedly)Alias for /loop
Examples
/proactiveRun an autonomous maintenance check (same behavior as `/loop`)/proactive 5m check if the deploy finishedRun a prompt repeatedly every 5 minutesEscapeInterrupt current operation / clear input
Examples
EscapeStop running operations or clear current inputTabAuto-complete file paths
Examples
TabComplete file paths and commands while typingEnterSend message
Examples
EnterSend the typed message to ClaudeShift+TabCycle permission modes
Examples
Shift+TabCycle through available permission modesUp ArrowBrowse input history (when input is empty)
Examples
Up ArrowShow previously entered messagesCtrl+BBackground running tasks
Examples
Ctrl+BBackground bash commands and agents (tmux users press twice)Ctrl+CInterrupt current operation
Examples
Ctrl+CStop running tasks or commandsCtrl+DExit session
Examples
Ctrl+DEnd the Claude Code sessionCtrl+GOpen in default text editor
Examples
Ctrl+GEdit input content in your text editorCtrl+JInsert newline
Examples
Ctrl+JAdd a newline while typingCtrl+KKill from cursor to end of line
Examples
Ctrl+KDelete text from cursor to end of lineCtrl+LClear screen
Examples
Ctrl+LClear the terminal screenCtrl+OToggle verbose output
Examples
Ctrl+OEnable or disable verbose output modeCtrl+RReverse search command history
Examples
Ctrl+RIncrementally search through command historyCtrl+TToggle task list visibility
Examples
Ctrl+TShow or hide the task list panelCtrl+UKill entire line
Examples
Ctrl+UDelete all text on the current lineCtrl+VPaste image from clipboard
Examples
Ctrl+VPaste clipboard image into Claude CodeCtrl+YYank (paste) killed text
Examples
Ctrl+YPaste text deleted with Ctrl+K or Ctrl+UCtrl+X Ctrl+KKill all background agents
Examples
Ctrl+X Ctrl+KStop all running background agents (press twice within 3s to confirm)Ctrl+X Ctrl+EOpen in external editor
Examples
Ctrl+X Ctrl+EEdit prompt in default text editor (readline-native alias for Ctrl+G)Esc+EscRewind or summarize conversation
Examples
Esc+EscRewind recent changes or summarize conversationOption+PSwitch model
Examples
Option+PQuickly switch the AI modelOption+TToggle extended thinking
Examples
Option+TEnable or disable extended thinking modeOption+OToggle fast mode
Examples
Option+OToggle fast mode on or off (same model, faster output)Shift+EnterInsert newline (supported terminals)
Examples
Shift+EnterAdd a newline while typing in supported terminalsAlt+BMove back one word
Examples
Alt+BMove cursor one word to the leftAlt+FMove forward one word
Examples
Alt+FMove cursor one word to the rightAlt+YCycle paste history
Examples
Alt+YAfter Ctrl+Y, cycle through previously deleted textCtrl+EToggle show all content in transcript viewer
Examples
Ctrl+EToggle full content visibility in the transcript viewer opened with Ctrl+OHold SpacePush-to-talk voice dictationAvailable depending on environment/settings
Examples
Hold SpaceHold spacebar to start voice dictation. Release to confirm input\ + EnterMultiline input (Quick escape)
Examples
\ + EnterType backslash then Enter to insert a newline. Works in all terminalsOption+EnterMultiline input (macOS default)
Examples
Option+EnterDefault macOS key for inserting a newlineLeft/RightCycle through dialog tabs
Examples
Left/RightNavigate 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 testRun a shell command directly and add its output to the conversation@File path autocomplete
Examples
@Trigger file path autocomplete for mentioning filesclaudeStart interactive mode
Examples
claudeLaunch Claude Code in interactive modeclaude "prompt"Run in one-shot mode
Examples
claude "Is there a bug in this code?"Execute a one-time question and exitclaude -p "prompt"Run in pipe mode (stdin support)
Examples
cat file.py | claude -p "Review this code"Process data from standard inputclaude -cContinue the last conversation
Examples
claude -cResume from the previous session's conversationclaude -rResume a session by ID or name
Examples
claude -rSelect and resume from session listclaude -r session-nameResume a specific named sessionclaude --modelSpecify the model to use (alias or full name)
Examples
claude --model sonnetLaunch with a model aliasclaude --model claude-sonnet-4-6Launch with a full model nameclaude --permission-modeSpecify permission mode
Examples
claude --permission-mode planLaunch in plan mode (confirm before execution)claude --debugLaunch in debug mode
Examples
claude --debugLaunch with debug information enabledclaude -d "api,hooks"Show debug info for specific categories onlyclaude --verboseEnable verbose logging
Examples
claude --verboseLaunch with detailed debug loggingclaude --system-promptCustomize system prompt
Examples
claude --system-prompt "You are a TypeScript expert"Launch with a custom system promptclaude --system-prompt-fileLoad system prompt from file
Examples
claude --system-prompt-file ./prompt.txtReplace system prompt with file contentsclaude --append-system-promptAppend to default system prompt
Examples
claude --append-system-prompt "Always respond in English"Keep the default system prompt and add custom instructionsclaude --append-system-prompt-fileAppend system prompt from file
Examples
claude --append-system-prompt-file ./rules.txtAppend file contents to the default system promptclaude --exclude-dynamic-system-prompt-sectionsMove 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 reuseclaude --effortSet effort level (low/medium/high)
Examples
claude --effort highSet model reasoning level to highclaude --worktreeCreate isolated environment with Git worktree
Examples
claude --worktreeRun in an isolated Git worktree environmentclaude --tmuxOpen worktree in a tmux session
Examples
claude --worktree --tmuxLaunch worktree in a tmux session (uses iTerm2 native panes when available)claude --bareMinimal 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 --allowedToolsSpecify allowed tools
Examples
claude --allowedTools "Bash,Read,Write"Restrict available tools on launchclaude --disallowedToolsSpecify disallowed tools
Examples
claude --disallowedTools "Bash"Completely exclude specified tools from model contextclaude --toolsSpecify the set of available tools
Examples
claude --tools "Bash,Edit,Read"Explicitly specify which built-in tools to useclaude --tools ""Disable all toolsclaude --dangerously-skip-permissionsBypass all permission checks (sandbox only)
Examples
claude --dangerously-skip-permissionsSkip all permission checks in offline sandbox environmentsclaude --allow-dangerously-skip-permissionsEnable permission bypass as an option
Examples
claude --allow-dangerously-skip-permissionsAllow permission bypass without enabling it by defaultclaude --enable-auto-modeUnlock auto mode in Shift+Tab cycle
Examples
claude --enable-auto-modeAdd auto mode to the Shift+Tab permission mode cycle (Team plan required)claude --permission-prompt-toolSpecify MCP tool for permission prompts
Examples
claude -p --permission-prompt-tool mcp_auth "query"Delegate permission prompts to an MCP tool in non-interactive modeclaude --output-formatSpecify output format (text/json/stream-json)
Examples
claude -p "test" --output-format jsonOutput results in JSON formatclaude --input-formatSpecify input format (text/stream-json)
Examples
claude -p --input-format stream-jsonRun with realtime streaming input format (--print mode only)claude --json-schemaStructured output with JSON Schema
Examples
claude -p "user info" --json-schema '{"type":"object"}'Get structured output conforming to the specified JSON Schemaclaude --include-partial-messagesInclude partial message chunks
Examples
claude -p --output-format stream-json --include-partial-messagesInclude partial message chunks in streaming outputclaude --replay-user-messagesEcho user messages to stdout
Examples
claude -p --input-format stream-json --output-format stream-json --replay-user-messagesRe-emit stdin user messages to stdout for acknowledgmentclaude --include-hook-eventsInclude hook lifecycle events in output
Examples
claude -p --output-format stream-json --include-hook-events "query"Include hook events (PreToolUse, PostToolUse, etc.) in stream outputclaude --max-turnsLimit agentic turns
Examples
claude -p --max-turns 3 "query"Stop agent after 3 turns (print mode only)claude --agentSpecify the agent to use
Examples
claude --agent my-agentStart session with a specified agent configurationclaude --agentsDefine custom agents as inline JSON
Examples
claude --agents '{"reviewer":{"description":"Reviews code","prompt":"You are a code reviewer"}}'Define and use custom agents inlineclaude --briefEnable SendUserMessage tool for agent-to-user communication
Examples
claude --briefLaunch with the SendUserMessage tool enabled for agent-to-user messagingclaude --mcp-configLoad MCP server config from file
Examples
claude --mcp-config mcp.jsonLoad MCP server settings from a JSON file on launchclaude --strict-mcp-configUse only MCP servers from --mcp-config
Examples
claude --mcp-config mcp.json --strict-mcp-configUse only the specified MCP servers, ignoring all other MCP configurationsclaude --mcp-debug[Deprecated] Enable MCP debug mode (use --debug instead)Deprecated
Examples
claude --mcp-debugShow MCP server errors (deprecated: use --debug instead)claude --disable-slash-commandsDisable all skills (slash commands)
Examples
claude --disable-slash-commandsLaunch with all custom skills disabledclaude --channelsSpecify channel notification MCP servers
Examples
claude --channels plugin:notifier@marketplaceListen for channel notifications from specified MCP serversclaude --dangerously-load-development-channelsLoad development channels
Examples
claude --dangerously-load-development-channels server:webhookLoad channels not on the approved allowlist for local developmentclaude --teammate-modeSet agent team display mode
Examples
claude --teammate-mode tmuxSet teammate display: auto, in-process, or tmuxclaude --nameSet a display name for the session
Examples
claude -n "feature-auth"Set a name shown in /resume and terminal titleclaude --fork-sessionCreate new session ID when resuming
Examples
claude -c --fork-sessionContinue conversation as a new sessionclaude --session-idSpecify a session ID
Examples
claude --session-id <uuid>Start or resume a session with a specific UUIDclaude --no-session-persistenceDisable session persistence
Examples
claude -p --no-session-persistence "test"Run as a temporary session that is not saved and cannot be resumedclaude --from-prResume session linked to a GitHub PR
Examples
claude --from-pr 123Resume a session associated with the specified PR numberclaude --fallback-modelSpecify fallback model
Examples
claude -p "test" --fallback-model sonnetAuto-switch to fallback model when default is overloadedclaude --max-budget-usdSet API spending limit
Examples
claude --max-budget-usd 10Set maximum API spending in USD for the sessionclaude --add-dirAdd additional working directories
Examples
claude --add-dir /path/to/other-projectSpecify additional directories alongside the main directoryclaude --fileDownload file resources at startup
Examples
claude --file file_abc:doc.txt file_def:img.pngDownload specified file resources on startupclaude --chromeEnable Chrome integration
Examples
claude --chromeLaunch with Claude in Chrome integration enabledclaude --no-chromeDisable Chrome integration
Examples
claude --no-chromeLaunch with Claude in Chrome integration disabledclaude --ideEnable automatic IDE connection
Examples
claude --ideAuto-connect to available IDE on startupclaude --plugin-dirSpecify plugin directory
Examples
claude --plugin-dir /path/to/pluginsLoad plugins from the specified directory on launchclaude --remoteCreate a web session on claude.ai
Examples
claude --remote "Fix the login bug"Send task to claude.ai and start a web sessionclaude --remote-controlStart with Remote Control enabled
Examples
claude --remote-controlStart an interactive session controllable from claude.ai or the Claude appclaude --remote-control-session-name-prefixSet prefix for Remote Control session names
Examples
claude --remote-control-session-name-prefix my-projectGenerate session names like "my-project-graceful-unicorn" with a custom prefixclaude --teleportResume a web session locally
Examples
claude --teleportMove a web session from claude.ai to your local terminalclaude --settingsLoad settings from file or JSON string
Examples
claude --settings settings.jsonLaunch with a custom settings fileclaude --setting-sourcesSpecify setting sources to load
Examples
claude --setting-sources user,projectLoad only user and project settingsclaude --debug-fileWrite debug logs to a file
Examples
claude --debug-file /tmp/claude-debug.logWrite debug logs to the specified file pathclaude --betasInclude beta headers (API key users)
Examples
claude --betas feature-nameInclude beta headers in API requestsclaude --initRun initialization hooks and start
Examples
claude --initRun initialization hooks then start interactive modeclaude --init-onlyRun initialization hooks and exit
Examples
claude --init-onlyRun initialization hooks without starting a sessionclaude --maintenanceRun maintenance hooks and exit
Examples
claude --maintenanceRun maintenance hooks and exitclaude authManage authentication (login/logout/status)
Examples
claude auth loginLog in to your Anthropic accountclaude auth logoutLog out of the current accountclaude agentsList configured agents
Examples
claude agentsDisplay list of available agentsclaude mcpMCP server management commands
Examples
claude mcp add server-name -s user -- commandAdd an MCP serverclaude mcp listList configured MCP serversclaude pluginPlugin management
Examples
claude plugin listList installed pluginsclaude doctorCheck auto-updater health
Examples
claude doctorDiagnose auto-updater statusclaude updateUpdate Claude Code to latest version
Examples
claude updateUpdate to the latest versionclaude installInstall Claude Code or manage versions
Examples
claude installInstall Claude Code or switch to a specific versionclaude setup-tokenSet up long-lived authentication token
Examples
claude setup-tokenConfigure a long-lived authentication token for CI/CD environmentsclaude auto-modeInspect auto mode classifier configuration
Examples
claude auto-modeView and inspect the auto mode classifier configurationclaude remote-controlStart Remote Control server
Examples
claude remote-control --name "My Project"Start a Remote Control server to connect your environment to claude.aiKey Updates (by Version)
Key changes organized based on Anthropic's official release notes.
Added `/proactive` as an alias for `/loop`, PreCompact hook block support, plugin `monitors` manifest key, and numerous streaming, UI, and rendering improvements and fixes.
/proactiveis 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
monitorskey 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
/doctorlayout overhaul with status icons; pressfto have Claude fix reported issuesWebFetchnow strips<style>and<script>contents so CSS-heavy pages no longer exhaust the content budget
Added /team-onboarding command, OS CA certificate store trusted by default, remote session improvements, and numerous bug fixes.
/team-onboardingcommand 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
/ultraplanauto-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
whichfallback for LSP binary detection
Added Google Vertex AI setup wizard, --exclude-dynamic-system-prompt-sections flag, and numerous security fixes including Bash tool permission bypass patches.
/setup-vertexcommand to interactively configure Google Vertex AI authentication, project, region, and model pins--exclude-dynamic-system-prompt-sectionsflag 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
/resumepicker with filter hints, project/worktree/branch names
Added /autofix-pr and /web-setup commands, focus view toggle (Ctrl+O), status line refreshInterval setting, running subagent indicator, numerous bug fixes.
/autofix-prcommand to spawn a web session that auto-fixes PR CI failures and review comments/web-setupcommand to connect your GitHub account to Claude Code on the web- Focus view toggle (
Ctrl+O) inNO_FLICKERmode showing prompt, tool summary, and response refreshIntervalstatus 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
Added /powerup and /ultraplan commands, removed /vim and /tag, Remote Control session name customization, Bedrock setup wizard, and many performance improvements.
/powerupcommand for interactive feature lessons with animated demos/ultraplancommand for drafting plans, reviewing in browser, and executing remotely--remote-control-session-name-prefixto customize Remote Control session name prefix/vimcommand removed (toggle via/config→ Editor mode)- Interactive Bedrock setup wizard added to login screen
- Per-model and cache-hit breakdown added to
/costfor subscription users
Added /simplify and /batch commands, HTTP hooks support, worktree settings sharing, and numerous memory leak fixes.
/simplifycommand for reviewing and improving changed code quality/batchcommand 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
Added auto-memory feature, /copy command, and improved bash prefix suggestions.
- Auto-memory feature for automatically retaining context across sessions
/copycommand to copy last response or code blocks to clipboard- Improved bash command prefix suggestions for more accurate completions
Fixed UI flickering, improved bulk agent kill, and enhanced Windows stability.
- 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
Added remote-control subcommand, improved plugin marketplace, and security fixes.
remote-controlsubcommand for controlling Claude Code from external processes- Improved plugin marketplace UI for easier plugin discovery and installation
- Security fixes to strengthen sandbox robustness
Claude Sonnet 4.6 support, Agent Teams multi-provider fix, spinner customization.
- Claude Sonnet 4.6 model support added
spinnerTipsOverridesetting to customize spinner tips- Agent Teams now works on Bedrock, Vertex, and Foundry
- Fixed sandbox temp file write errors on macOS
PDF page-range reading, MCP OAuth support, /debug command, token optimization.
pagesparameter added to Read tool for PDF page-range reading--client-id/--client-secretoptions for MCP server OAuth/debugcommand for session troubleshooting- Unnecessary text block API sends fixed, reducing token waste
PR review status display, --add-dir CLAUDE.md loading, task deletion, CJK rendering fix.
- PR review status indicator in prompt footer (approved/changes requested/pending/draft)
--add-dirdirectories can now loadCLAUDE.mdfiles- Task deletion via
TaskUpdatetool - Wide character (emoji, CJK) rendering artifacts fixed
MCP auto:N threshold, plansDirectory setting, PreToolUse hook extension, session stability.
- MCP tool search auto-enable threshold configurable with
auto:Nsyntax plansDirectorysetting for custom plan file locationPreToolUsehooks can now returnadditionalContext- Long session parallel tool call errors fixed
Image preview, plugin marketplace search, theme picker improvement, VSCode tab badges.
- Clickable
[Image #N]links to open attached images in default viewer - Plugin search screen filtering (name, description, marketplace)
/themecommand 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.
