Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Claude Code CLI reference - Slash commands

Claude Code slash commands

Claude Code documents 118 slash commands, including /add-dir <path>, /advisor [model|off] and /agents. You type these inside an interactive Claude Code session. Each row gives the docs' description, accepted values and an example where one is documented.

Last verified 1 official pageFull Claude Code reference

Claude Code slash commands
CommandDescription
/add-dir <path>

Add a working directory for file access during the current session.

Docs: /add-dir <path>
/advisor [model|off]

Enable or disable the advisor tool, which consults a second model for guidance at key moments during a task.

fable, opus, sonnet, or a full model ID

Docs: /advisor [model|off]
/agents

Print a reminder to ask Claude to create or manage subagents, or to edit .claude/agents/ or ~/.claude/agents/ directly.

Docs: /agents
/artifact-capabilities

Skill. Load the reference for the runtime capabilities a published artifact can use.

Docs: /artifact-capabilities
/artifact-diagramming

Skill. Load diagramming guidance for Claude to follow in artifacts.

Docs: /artifact-diagramming
/artifacts

List the artifacts you own or that are shared with you.

Docs: /artifacts
/auto-mode-setup

Draft autoMode.environment entries from your project and recent sessions.

Docs: /auto-mode-setup
/autocompact [auto|<tokens>]

Set the auto-compact window: how full the context window gets before Claude Code compacts.

Docs: /autocompact [auto|<tokens>]
/autofix-pr [prompt]

Spawn a cloud session that watches the current branch's PR and pushes fixes.

Docs: /autofix-pr [prompt]
/background [prompt]

Detach the current session to run as a background agent and free this terminal.

Docs: /background [prompt]
/batch <instruction>

Skill. Orchestrate large-scale changes across a codebase in parallel.

Docs: /batch <instruction>
/branch [name]

Create a branch of the current conversation at this point.

Docs: /branch [name]
/btw [question]

Ask a side question about the current session without adding to the conversation history.

Docs: /btw [question]
/bug [report]

Report a bug or share your conversation.

Docs: /bug [report]
/cd <path>

Move this session to a new working directory, keeping the conversation.

Docs: /cd <path>
/chrome

Configure Claude in Chrome settings

Docs: /chrome
/claude-api [migrate|upgrade|managed-agents-onboard|prompt-audit|cost-optimize|build-eval|hillclimb|preserved-thinking-migration]

Skill. Load Claude API and Managed Agents reference material for your project.

Docs: /claude-api [migrate|upgrade|managed-agents-onboard|prompt-audit|cost-optimize|build-eval|hillclimb|preserved-thinking-migration]
/claude-in-chrome [task]

Skill. Have Claude carry out a task in your browser, such as testing a page.

Docs: /claude-in-chrome [task]
/clear [name]

Start a new conversation with empty context.

Aliases: /reset, /new

Docs: /clear [name]
/code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [--max-findings n|all|default] [pr#|branch|path]

Skill. Review the current diff, or a PR number, branch, or path you name.

Docs: /code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [--max-findings n|all|default] [pr#|branch|path]
/color [color|default]

Set the prompt bar color for the current session.

Docs: /color [color|default]
/compact [instructions]

Free up context by summarizing the conversation so far.

Docs: /compact [instructions]
/config [key=value ...]

Open the Settings interface to adjust theme, model, output style, and other preferences.

Docs: /config [key=value ...]
/context [all]

Visualize current context usage as a colored grid.

Docs: /context [all]
/copy [N]

Copy the last assistant response to clipboard.

Docs: /copy [N]
/cost

Alias for /usage

Docs: /cost
/dataviz [request]

Skill. Design guidance for charts, graphs, and dashboards.

Docs: /dataviz [request]
/debug [description]

Skill. Enable debug logging for the current session and troubleshoot issues.

Docs: /debug [description]
/design [brief]

Skill. Draft UI mockups, screen flows, landing pages, or posters as designs.

Docs: /design [brief]
/design-login

Authorize design-system access for /design-sync with your claude.ai account.

Docs: /design-login
/design-sync [hint]

Skill. Convert your repo's React design system and upload it to claude.ai.

Docs: /design-sync [hint]
/desktop

Continue the current session in the Claude Code Desktop app.

Docs: /desktop
/diff

Review the changes in your working tree, including the edits Claude made.

Docs: /diff
/doctor [prompt-audit [path]]

Skill. Run a setup checkup that diagnoses installation, settings, and configuration issues.

Docs: /doctor [prompt-audit [path]]
/effort [level|auto|status|ultracode [on|off]]

Set the effort level: low to xhigh, max, or auto.

Docs: /effort [level|auto|status|ultracode [on|off]]
/exit

Exit the CLI. In an attached background session, this detaches.

Docs: /exit
/export [filename]

Export the current conversation as plain text.

Docs: /export [filename]
/fast [on|off]

Toggle fast mode on or off.

Docs: /fast [on|off]
/feedback [report]

Send product feedback about Claude Code.

Docs: /feedback [report]
/fewer-permission-prompts

Skill. Scan your transcripts for common read-only Bash and MCP tool calls and add an allowlist.

Docs: /fewer-permission-prompts
/focus

Toggle the focus view, which shows only your last prompt and a one-line summary.

Docs: /focus
/fork [prompt]

Copy the current conversation into a new background session.

Docs: /fork [prompt]
/goal [condition|clear]

Set a goal: Claude keeps working across turns until the condition is met.

Docs: /goal [condition|clear]
/heapdump

Write a JavaScript heap snapshot and a memory breakdown to disk.

Docs: /heapdump
/help

Show help and available commands

Docs: /help
/hooks

View hook configurations

Docs: /hooks
/ide

Manage IDE integrations and show status

Docs: /ide
/import [codex|gemini|cursor] [--dry-run] [--yes]

Bring configuration from OpenAI Codex, Google Gemini CLI, or Cursor into Claude Code.

Docs: /import [codex|gemini|cursor] [--dry-run] [--yes]
/init

Initialize project with a CLAUDE.md guide.

Docs: /init
/insights

Generate an HTML report analyzing your recent sessions.

Docs: /insights
/install-github-app

Install the Claude GitHub App for a repository.

Docs: /install-github-app
/install-slack-app

Install the Claude Slack app. Opens a browser to complete the OAuth flow.

Docs: /install-slack-app
/keybindings

Open your keyboard shortcuts file

Docs: /keybindings
/list-agents

List the subagents, agent team teammates, and other Claude Code sessions.

Docs: /list-agents
/login

Sign in to your Anthropic account

Docs: /login
/logout

Sign out from your Anthropic account

Docs: /logout
/loop [interval] [prompt]

Skill. Run a prompt repeatedly while the session stays open.

Docs: /loop [interval] [prompt]
/mcp [reconnect (<server>|all)|enable|disable [<server>|all]]

Manage MCP server connections and OAuth authentication.

Docs: /mcp [reconnect (<server>|all)|enable|disable [<server>|all]]
/memory

Edit CLAUDE.md files, enable or disable auto memory, and view auto memory entries.

Docs: /memory
/mobile

Show QR code to download the Claude mobile app.

Aliases: /ios, /android

Docs: /mobile
/model [model]

Switch the AI model and save it as your default for new sessions.

Docs: /model [model]
/output-style [style]

List output styles or switch to one.

Docs: /output-style [style]
/passes

Share a free week of Claude Code with friends.

Docs: /passes
/permissions

Manage allow, ask, and deny rules for tool permissions.

Docs: /permissions
/plan [description]

Enter plan mode directly from the prompt.

Docs: /plan [description]
/plugin [subcommand]

Manage Claude Code plugins. Run with no argument to open the plugin manager.

Docs: /plugin [subcommand]
/plugin-authoring

Load the reference Claude works from to write a mod.

Docs: /plugin-authoring
/powerup

Discover Claude Code features through quick interactive lessons.

Docs: /powerup
/pr-comments [PR]

Removed in v2.1.91. Ask Claude directly to view pull request comments instead.

Docs: /pr-comments [PR]
/privacy-settings

View and update your privacy settings.

Docs: /privacy-settings
/radio

Open Claude FM lo-fi radio in your browser.

Docs: /radio
/rate-limit-options

Show ways to keep working when a claude.ai usage limit blocks a request.

Docs: /rate-limit-options
/recap

Generate a one-line summary of the current session on demand.

Docs: /recap
/release-notes

View the changelog in an interactive version picker.

Docs: /release-notes
/reload-plugins [--force]

Reload all active plugins to apply pending changes without restarting.

Docs: /reload-plugins [--force]
/reload-skills

Re-scan skill and command directories so skills added or changed on disk load.

Docs: /reload-skills
/remote-control

Make this session available for Remote Control from claude.ai.

Docs: /remote-control
/remote-env

Choose the default cloud environment for cloud sessions you start.

Docs: /remote-env
/rename [name]

Rename the current session and show the name on the prompt bar.

Docs: /rename [name]
/resume [session]

Resume a conversation by ID or name, or open the session picker.

Docs: /resume [session]
/review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [--max-findings n|all|default] [pr#|branch|path]

Alias of /code-review.

Docs: /review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [--max-findings n|all|default] [pr#|branch|path]
/rewind

Rewind the conversation and/or code to a previous point, or summarize from there.

Aliases: /checkpoint, /undo

Docs: /rewind
/run

Skill. Launch and drive your project's app to see a change working.

Docs: /run
/run-skill-generator

Skill. Teach /run and /verify how to build, launch, and drive your project.

Docs: /run-skill-generator
/sandbox

Toggle sandbox mode. Available on supported platforms only

Docs: /sandbox
/schedule [description]

Create, update, list, or run routines, which execute in the cloud.

Docs: /schedule [description]
/scroll-speed

Adjust mouse wheel scroll speed interactively.

Docs: /scroll-speed
/security-review

Analyze the changes on your current branch for security vulnerabilities.

Docs: /security-review
/setup-bedrock

Configure Amazon Bedrock authentication, region, and model pins.

Docs: /setup-bedrock
/setup-vertex

Configure Google Cloud's Agent Platform authentication, project, and region.

Docs: /setup-vertex
/simplify [target]

Skill. Review the changed code for cleanup opportunities and apply fixes.

Docs: /simplify [target]
/skill-doctor

Show what each of your skills costs in context and how often it gets used.

Docs: /skill-doctor
/skills

List available skills. Type to filter the list by name or description.

Docs: /skills
/slides [brief]

Skill. Make a new presentation as a Claude Slides artifact.

Docs: /slides [brief]
/stats

Alias for /usage. Opens on the Stats tab

Docs: /stats
/status

Open the Settings interface on the Status tab, showing version, model, account, and connectivity.

Docs: /status
/statusline

Configure Claude Code's status line.

Docs: /statusline
/stickers

Order Claude Code stickers

Docs: /stickers
/stop

Stop the background session you're attached to.

Docs: /stop
/subtask <task>

Spawn a forked subagent: a background subagent that inherits the full conversation.

Docs: /subtask <task>
/tasks

View and manage background work in the current session.

Docs: /tasks
/team-onboarding

Generate a team onboarding guide from your Claude Code usage history.

Docs: /team-onboarding
/teleport

Pull a cloud session into this terminal.

Docs: /teleport
/terminal-setup

Install a Shift+Enter keybinding for newlines in VS Code, Cursor, and other terminals.

Docs: /terminal-setup
/theme

Change the color theme.

Docs: /theme
/tui [default|fullscreen]

Set the terminal UI renderer and relaunch into it.

Docs: /tui [default|fullscreen]
/ultraplan <prompt>

Removed. Use plan mode instead.

Docs: /ultraplan <prompt>
/ultrareview [PR or branch]

Run a deep, multi-agent code review in a cloud sandbox.

Docs: /ultrareview [PR or branch]
/update-config [request]

Skill. Describe a settings change, such as allowing a command, and Claude applies it.

Docs: /update-config [request]
/upgrade

Open the upgrade page in your browser to switch to a higher plan tier.

Docs: /upgrade
/usage

Show session cost, plan usage limits, and activity stats.

Docs: /usage
/usage-credits

Configure usage credits, or request them from your admin.

Docs: /usage-credits
/verify

Skill. Confirm a code change does what it should by building and running your project.

Docs: /verify
/vim

Removed in v2.1.92. Toggle between Vim and Normal editing modes through /config instead.

Docs: /vim
/voice [hold|tap|off]

Toggle voice dictation, or enable it in a specific mode.

Docs: /voice [hold|tap|off]
/web-setup

Connect your GitHub account for cloud sessions using your local gh credentials.

Docs: /web-setup
/workflow-authoring

Skill. Load the reference for writing dynamic workflow scripts.

Docs: /workflow-authoring
/workflows

Open the workflow progress view to watch, pause, resume, or save workflows.

Docs: /workflows

The rest of the Claude Code reference

FAQ

How many slash commands does Claude Code have?

The official Claude Code docs list 118 slash commands, including /add-dir <path>, /advisor [model|off] and /agents. All of them are in the table above, in the docs' order.

What does /add-dir <path> do in Claude Code?

Add a working directory for file access during the current session.

Where are Claude Code slash commands documented?

On 1 official docs page at code.claude.com, last read on October 17, 2026. Every row in the table links the exact section it came from.

More on Claude Code

Sources

Last verified . Names and examples are copied verbatim from the official page below, and every row above links the exact section it came from.

Newsletter

Know when your tools change

One email per week. New coding agent releases, the flags and commands they add, and what they mean for how you work.