Claude Code
Anthropic’s coding agent for terminal, desktop, web and IDE — 92 built-in commands.
ALL COMMANDS · 92
/add-dirAdds an additional working directory for file access in the current session./advisorTurns the Advisor tool on or off, which brings in a second model for consultation at key moments in a task./agentsManages subagent configurations./autofix-prStarts a Claude Code web session that watches the current branch's pull request and automatically pushes fixes for CI failures or reviewer comments./backgroundDetaches the current session from the terminal and lets it keep running as a background agent, freeing up the terminal./batchOrchestrates large changes in parallel across the entire codebase: researches, splits the work into units, and has subagents implement them./branchCreates a branch of the current conversation from this point, to try a different direction without losing the history so far./btwAsks a quick side question without adding it to the main conversation./cdMoves the session to a new working directory./chromeOpens the settings for 'Claude in Chrome'./claude-apiLoads Claude API reference material for the project language (Python, TypeScript, Java, Go, Ruby, C#, PHP, cURL) as well as Managed Agents reference./clearStarts a new conversation with an empty context; the previous one remains available via /resume./code-reviewReviews the current diff for correctness bugs as well as reuse, simplification, and efficiency improvements./colorSets the prompt bar color for the current session./compactSummarizes the conversation so far to free up context./configOpens the settings interface for theme, model, output style, and other preferences./contextVisualizes current context usage as a colored grid with optimization suggestions./copyCopies Claude's last response to the clipboard./costAlias for /usage./datavizProvides design help for charts, graphs, and dashboards./debugEnables debug logging for the current session and helps with troubleshooting via the session debug log./deep-researchFans out web searches for a question, fetches and cross-checks sources, and produces a cited report./design-loginAuthorizes access to the design system for /design-sync via the claude.ai account./design-syncConverts your repo's React design system and uploads it to Claude Design, so designs it creates use real components./desktopContinues the current session in the Claude Code desktop app./diffOpens an interactive diff viewer for uncommitted changes and turn-by-turn diffs./doctorRuns a setup check that diagnoses and can fix problems./effortSets the model's effort level (reasoning depth)./exitExits the CLI./exportExports the current conversation as plain text./fastTurns Fast mode on or off./feedbackSends feedback, reports a bug, or shares the conversation./fewer-permission-promptsScans your own transcripts for common read-only Bash and MCP tool calls and adds a prioritized allowlist to the project-wide .claude/settings.json to reduce permission prompts./focusToggles Focus view: only the last prompt, a one-line tool summary with edit diffstats, and the final answer./forkStarts a background subagent that inherits the full conversation and continues working on the given directive, while the main session keeps running./goalSets a goal: Claude keeps working across multiple turns until the condition is met./heapdumpWrites a JavaScript heap snapshot and a memory breakdown to diagnose high memory usage./helpShows help and available commands./hooksShows hook configurations for tool events./ideManages IDE integrations and shows their status./initInitializes the project with a CLAUDE.md guide./insightsGenerates a report that analyzes your own Claude Code sessions, including project areas, interaction patterns, and friction points./install-github-appInstalls the Claude GitHub App for a repository, optionally including GitHub Actions workflows and secrets./install-slack-appInstalls the Claude Slack app./keybindingsOpens the keybindings file./loginSigns in to your Anthropic account./logoutSigns out of your Anthropic account./loopRuns a prompt repeatedly for as long as the session stays open./mcpManages MCP server connections and OAuth authentication./memoryEdits CLAUDE.md memory files, toggles auto-memory on/off, and shows auto-memory entries./mobileShows a QR code to download the Claude mobile app./modelSwitches the AI model and saves it as the default for new sessions./passesShares a free week of Claude Code with friends./permissionsManages allow, ask, and deny rules for tool permissions./planSwitches directly from the prompt into Plan mode./pluginManages Claude Code plugins./powerupShows Claude Code features through short interactive lessons with animated demos./privacy-settingsShows and changes your privacy settings./radioOpens 'Claude FM' lo-fi radio in the browser./recapGenerates a one-line summary of the current session on demand./release-notesShows the changelog in an interactive version picker./reload-pluginsReloads all active plugins to apply pending changes without a restart./reload-skillsRescans skill and command directories so skills changed during the session become available without a restart./remote-controlMakes the session available for remote control from claude.ai./remote-envSelects the default environment for cloud agents./renameRenames the current session and shows the name in the prompt bar./resumeResumes a conversation by ID or name, or opens the session picker./reviewRuns a quick, read-only single-pass review of a GitHub pull request by number./rewindResets the conversation and/or the code to an earlier point, or summarizes from a selected message onward./runStarts and drives the project app so you can actually see a change take effect (not just tests)./run-skill-generatorTeaches /run and /verify how to build, start, and drive the project app from a clean environment, by writing a project-specific skill./sandboxToggles Sandbox mode./scheduleCreates, updates, lists, or runs routines that run on a schedule on Anthropic-managed cloud infrastructure./scroll-speedInteractively adjusts the mouse wheel scroll speed./security-reviewAnalyzes pending changes on the current branch for security vulnerabilities./setup-bedrockConfigures Amazon Bedrock authentication, region, and model pins via an interactive wizard./setup-vertexConfigures authentication, project, region, and model pins for Google Cloud's Agent Platform./simplifyReviews changed code for cleanup opportunities (reuse, simplification, efficiency) and applies the fixes directly, without hunting for correctness bugs./skillsLists available skills./statsAlias for /usage, opens directly to the Stats tab./statusOpens the settings interface to the Status tab with version, model, account, and connectivity./statuslineConfigures Claude Code's status line./stickersOrders Claude Code stickers./tasksLists background tasks of the current session and attached background sessions./teleportBrings a web session into the terminal./thinkingTurns Extended Thinking on or off for the current session./upgradeUpdates Claude Code to the latest version./usageShows API usage, token counts, and spending./verifyStarts the project app and verifies that a change works end-to-end./vimTurns Vim key bindings on or off./webSearches the web and fetches page content using natural language./web-searchSearches the web for current information and fetches results.