All 118 Claude Code commands, and when to use each
Claude Code has 118 slash commands and most people use about a dozen. Here is every one of them, plus the 26 that map to how a session actually runs.
Claude Code commands are the slash commands you type into the prompt to change what the session is doing. Type / and the menu appears. If you haven't used Claude Code yet, start with what it is.
There are 118 of them. Most people meet about a dozen, usually by accident, and never find the ones that would have saved them the most time.
So this is all of them, grouped by the point in the work where you would actually reach for one.
In this guide, I'll show you:
- What a Claude Code command is, and how the menu matches what you type
- Why the right command at the right moment costs you less than a better prompt
- The 26 that map to a normal session, grouped by when you use them
- All 118 in one table you can search
- The 6 worth setting up before your next session
And every one of them was read from Anthropic's own command reference on September 30, 2026.
Key takeaways
/ and the menu opens./context shows what is filling the window, and /clear gives it back./permissions.What is a Claude Code command?
A Claude Code command is an instruction to the tool rather than to the model. /clear does not ask Claude to forget: it empties the context window.
You type / and a menu opens. Keep typing and it filters.
Some are core commands built into Claude Code. Others are bundled skills, which behave the same way at the prompt but are loaded rather than built in.
Why Claude Code commands matter
Most of what people try to fix with a better prompt is not a prompting problem.
A session that has gone vague usually has a full context window. A run that keeps stalling on approvals usually has no permission rules. Neither gets better by rewording the request.
For example, an hour into a session the answers get worse. The prompt is not the problem. /context shows you what is filling the window and /clear gives it back, and that takes 2 seconds.
So the commands are the controls. Prompting is what you do once the controls are set.
Your first session in a repo
Run these once and the project is set up for every session after it. This is also where your AI OS starts.
| Command | What it does |
|---|---|
/init | Initialize project with a CLAUDE.md guide. |
/memory | Edit CLAUDE.md files, enable or disable auto memory, and view auto memory entries |
/mcp [reconnect <server>|enable|disable [<server>|all]] | Manage MCP server connections and OAuth authentication. |
/permissions | Manage allow, ask, and deny rules for tool permissions. |
During a task
These are the 6 you will use every day, and 3 of them decide what the session costs you.
| Command | What it does |
|---|---|
/plan [description] | Enter plan mode directly from the prompt. |
/model [model] | Switch the AI model and save it as your default for new sessions. |
/effort [level|auto|status|ultracode [on|off]] | Set the effort level: low to xhigh, max, or auto; status prints it. |
/context [all] | Visualize current context usage as a colored grid. |
/compact [instructions] | Free up context by summarizing the conversation so far. |
/btw [question] | Ask a side question about the current session without adding to the conversation. |
Running work in parallel
Use these when 1 task is really several, or when you want your terminal back.
| Command | What it does |
|---|---|
/tasks | View and manage background work in the current session, including subagents that have finished. |
/background [prompt] | Detach the current session to run as a background agent and free this terminal. |
/batch <instruction> | Orchestrate large-scale changes across a codebase in parallel. |
Before you ship
Read what changed before anyone else has to.
| Command | What it does |
|---|---|
/diff | Review the changes in your working tree, including the edits Claude has made so far. |
/code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [pr#|branch|path] | Review the current diff, or a PR number, branch, or path you pass, for correctness bugs. |
/security-review | Analyze the changes on your current branch for security vulnerabilities. |
Between sessions
Work does not end when you close the terminal, and last week's conversation is still there.
| Command | What it does |
|---|---|
/clear [name] | Start a new conversation with empty context. |
/resume [session] | Resume a conversation by ID or name, or open the session picker. |
/branch [name] | Create a branch of the current conversation at this point, so you can try a different direction without losing the conversation as it stands. |
/fork [prompt] | Copy the current conversation into a new background session and keep working here. |
/teleport | Pull a cloud session into this terminal. |
/remote-control | Make this session available for Remote Control from claude.ai. |
When something is wrong
Reach for these before you restart from scratch, which is what most people do instead.
| Command | What it does |
|---|---|
/rewind | Rewind the conversation and/or code to a previous point, or summarize from a selected message. |
/doctor [prompt-audit [path]] | Run a setup checkup that diagnoses issues and can fix them. |
/debug [description] | Enable debug logging for the current session and troubleshoot issues by reading the session debug log. |
/feedback [report] | Send product feedback about Claude Code. |
/mcp is where you manage the MCP servers Claude Code connects to. I've published 23 open source MCP servers you can connect, and my AI OS guide shows what to set up in your first session.
All 118 Claude Code commands
Here is the full Claude Code command list, in alphabetical order.
/add-dir <path>- What it does
- Add a working directory for file access during the current session.
- Type
- Built in
/advisor [model|off]- What it does
- Enable or disable the advisor tool, which consults a second model for guidance at key moments during a task.
- Type
- Built in
/agents- What it does
- As of v2.1.198, running
/agentsprints a reminder to ask Claude to create or manage subagents, or to edit.claude/agents/or~/.claude/agents/directly. - Type
- Built in
/artifact-capabilities- What it does
- Load the reference for the runtime capabilities a published artifact can use, such as calling your connectors or offering a file download, including which ones your account has.
- Type
- Bundled skill
/artifact-diagramming- What it does
- Load diagramming guidance for Claude to follow in artifacts: when a diagram helps, what to draw, and how to write inline SVG that stays legible in light and dark themes.
- Type
- Bundled skill
/artifacts- What it does
- List the artifacts you own or that are shared with you, then attach one to the session, open it in your browser, or copy its link.
- Type
- Built in
/auto-mode-setup- What it does
- Draft
autoMode.environmententries from your project and recent sessions, then review the draft and save it to your user settings. - Type
- Built in
/autocompact [auto|<tokens>]- What it does
- Set the auto-compact window: how full the context window gets before Claude Code compacts automatically.
- Type
- Built in
/autofix-pr [prompt]- What it does
- Spawn a cloud session that watches the current branch's PR and pushes fixes when CI fails or reviewers leave comments.
- Type
- Built in
/background [prompt]- What it does
- Detach the current session to run as a background agent and free this terminal.
- Type
- Built in
/batch <instruction>- What it does
- Orchestrate large-scale changes across a codebase in parallel.
- Type
- Bundled skill
/branch [name]- What it does
- Create a branch of the current conversation at this point, so you can try a different direction without losing the conversation as it stands.
- Type
- Built in
/btw [question]- What it does
- Ask a side question about the current session without adding to the conversation.
- Type
- Built in
/bug [report]- What it does
- Report a bug or share your conversation.
- Type
- Built in
/cd <path>- What it does
- Move this session to a new working directory, keeping the conversation.
- Type
- Built in
/chrome- What it does
- Configure Claude in Chrome settings
- Type
- Built in
/claude-api [migrate|upgrade|managed-agents-onboard|prompt-audit|cost-optimize|build-eval|hillclimb|preserved-thinking-migration]- What it does
- Load Claude API and Managed Agents reference material for your project's language.
- Type
- Bundled skill
/claude-in-chrome [task]- What it does
- Have Claude carry out a task in your browser, such as testing a page, filling a form, or reading console logs, through Claude in Chrome.
- Type
- Bundled skill
/clear [name]- What it does
- Start a new conversation with empty context.
- Type
- Built in
/code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [pr#|branch|path]- What it does
- Review the current diff, or a PR number, branch, or path you pass, for correctness bugs.
- Type
- Bundled skill
/color [color|default]- What it does
- Set the prompt bar color for the current session.
- Type
- Built in
/compact [instructions]- What it does
- Free up context by summarizing the conversation so far.
- Type
- Built in
/config [key=value ...]- What it does
- Open the Settings interface to adjust theme, model, output style, and other preferences.
- Type
- Built in
/context [all]- What it does
- Visualize current context usage as a colored grid.
- Type
- Built in
/copy [N]- What it does
- Copy the last assistant response to clipboard.
- Type
- Built in
/cost- What it does
- Alias for
/usage - Type
- Built in
/dataviz [request]- What it does
- Design guidance for charts, graphs, and dashboards.
- Type
- Bundled skill
/debug [description]- What it does
- Enable debug logging for the current session and troubleshoot issues by reading the session debug log.
- Type
- Bundled skill
/deep-research <question>- What it does
- Workflow. Fan out web searches on a question, fetch and cross-check sources, and synthesize a cited report
- Type
- Built in
/design [brief]- What it does
- Draft UI mockups, screen flows, landing pages, or posters as artboards on one canvas, published as a Claude Design artifact, for example
/design a settings screen for a mobile banking app. - Type
- Bundled skill
/design-login- What it does
- Authorize design-system access for
/design-syncwith your claude.ai account - Type
- Built in
/design-sync [hint]- What it does
- Convert your repo's React design system and upload it to Claude Design, so designs it produces use your real components.
- Type
- Bundled skill
/desktop- What it does
- Continue the current session in the Claude Code Desktop app.
- Type
- Built in
/diff- What it does
- Review the changes in your working tree, including the edits Claude has made so far.
- Type
- Built in
/doctor [prompt-audit [path]]- What it does
- Run a setup checkup that diagnoses issues and can fix them.
- Type
- Bundled skill
/effort [level|auto|status|ultracode [on|off]]- What it does
- Set the effort level:
lowtoxhigh,max, orauto;statusprints it. - Type
- Built in
/exit- What it does
- Exit the CLI.
- Type
- Built in
/export [filename]- What it does
- Export the current conversation as plain text.
- Type
- Built in
/fast [on|off]- What it does
- Toggle fast mode on or off.
- Type
- Built in
/feedback [report]- What it does
- Send product feedback about Claude Code.
- Type
- Built in
/fewer-permission-prompts- What it does
- Scan your transcripts for common read-only Bash and MCP tool calls, then add a prioritized allowlist to project
.claude/settings.jsonto reduce permission prompts - Type
- Bundled skill
/focus- What it does
- Toggle the focus view, which shows only your last prompt, a one-line tool-call summary with edit diffstats, and the final response.
- Type
- Built in
/fork [prompt]- What it does
- Copy the current conversation into a new background session and keep working here.
- Type
- Built in
/goal [condition|clear]- What it does
- Set a goal: Claude keeps working across turns until the condition is met or the goal clears for another reason.
- Type
- Built in
/heapdump- What it does
- Write a JavaScript heap snapshot and a memory breakdown to
~/Desktop, or your home directory on Linux without a Desktop folder, for diagnosing high memory usage. - Type
- Built in
/help- What it does
- Show help and available commands
- Type
- Built in
/hooks- What it does
- View hook configurations for tool events
- Type
- Built in
/ide- What it does
- Manage IDE integrations and show status
- Type
- Built in
/import [codex|gemini|cursor] [--dry-run] [--yes]- What it does
- Bring configuration from OpenAI Codex, Google Gemini CLI, or Cursor on your machine into Claude Code, including instruction files, MCP servers, commands, subagents, and skills.
- Type
- Built in
/init- What it does
- Initialize project with a
CLAUDE.mdguide. - Type
- Built in
/insights- What it does
- Generate an HTML report analyzing your recent sessions on this machine: which projects you work in, how you use Claude Code, where things go wrong, and features to try.
- Type
- Built in
/install-github-app- What it does
- Install the Claude GitHub App for a repository, with an optional step to set up GitHub Actions workflows and secrets.
- Type
- Built in
/install-slack-app- What it does
- Install the Claude Slack app.
- Type
- Built in
/keybindings- What it does
- Open your keyboard shortcuts file
- Type
- Built in
/list-agents- What it does
- List the subagents, agent team teammates, and other Claude Code sessions Claude can message, with the name to use for each.
- Type
- Built in
/login- What it does
- Sign in to your Anthropic account
- Type
- Built in
/logout- What it does
- Sign out from your Anthropic account
- Type
- Built in
/loop [interval] [prompt]- What it does
- Run a prompt repeatedly while the session stays open.
- Type
- Bundled skill
/mcp [reconnect <server>|enable|disable [<server>|all]]- What it does
- Manage MCP server connections and OAuth authentication.
- Type
- Built in
/memory- What it does
- Edit
CLAUDE.mdfiles, enable or disable auto memory, and view auto memory entries - Type
- Built in
/mobile- What it does
- Show QR code to download the Claude mobile app.
- Type
- Built in
/model [model]- What it does
- Switch the AI model and save it as your default for new sessions.
- Type
- Built in
/output-style [style]- What it does
- List output styles or switch to one, for example
/output-style concise. - Type
- Built in
/passes- What it does
- Share a free week of Claude Code with friends.
- Type
- Built in
/permissions- What it does
- Manage allow, ask, and deny rules for tool permissions.
- Type
- Built in
/plan [description]- What it does
- Enter plan mode directly from the prompt.
- Type
- Built in
/plugin [subcommand]- What it does
- Manage Claude Code plugins.
- Type
- Built in
/powerup- What it does
- Discover Claude Code features through quick interactive lessons with animated demos
- Type
- Built in
/pr-comments [PR]- What it does
- Removed in v2.1.91.
- Type
- Built in
/privacy-settings- What it does
- View and update your privacy settings.
- Type
- Built in
/radio- What it does
- Open Claude FM lo-fi radio in your browser.
- Type
- Built in
/rate-limit-options- What it does
- Show ways to keep working when a claude.ai usage limit blocks a request: wait and continue automatically when the limit resets, add usage credits, or upgrade your plan.
- Type
- Built in
/recap- What it does
- Generate a one-line summary of the current session on demand.
- Type
- Built in
/release-notes- What it does
- View the changelog in an interactive version picker.
- Type
- Built in
/reload-plugins [--force]- What it does
- Reload all active plugins to apply pending changes without restarting.
- Type
- Built in
/reload-skills- What it does
- Re-scan skill and command directories so skills added or changed on disk during the session become available without restarting.
- Type
- Built in
/remote-control- What it does
- Make this session available for Remote Control from claude.ai.
- Type
- Built in
/remote-env- What it does
- Choose the default cloud environment for cloud sessions you start from the CLI
- Type
- Built in
/rename [name]- What it does
- Rename the current session and show the name on the prompt bar.
- Type
- Built in
/resume [session]- What it does
- Resume a conversation by ID or name, or open the session picker.
- Type
- Built in
/review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [pr#|branch|path]- What it does
- Alias of
/code-review: reviews the current diff, or a PR number, branch, or path you pass, such as/review 1234, and takes the same effort levels and flags. - Type
- Built in
/rewind- What it does
- Rewind the conversation and/or code to a previous point, or summarize from a selected message.
- Type
- Built in
/run- What it does
- Launch and drive your project's app to see a change working, not only passing tests.
- Type
- Bundled skill
/run-skill-generator- What it does
- Teach
/runand/verifyhow to build, launch, and drive your project's app from a clean environment by writing a per-project skill - Type
- Bundled skill
/sandbox- What it does
- Toggle sandbox mode.
- Type
- Built in
/schedule [description]- What it does
- Create, update, list, or run routines, which execute in the cloud.
- Type
- Built in
/scroll-speed- What it does
- Adjust mouse wheel scroll speed interactively, with a ruler you can scroll while the dialog is open to preview the change.
- Type
- Built in
/security-review- What it does
- Analyze the changes on your current branch for security vulnerabilities.
- Type
- Built in
/setup-bedrock- What it does
- Configure Amazon Bedrock authentication, region, and model pins through an interactive wizard.
- Type
- Built in
/setup-vertex- What it does
- Configure Google Cloud's Agent Platform authentication, project, region, and model pins through an interactive wizard.
- Type
- Built in
/simplify [target]- What it does
- Review the changed code for cleanup opportunities and apply the fixes.
- Type
- Bundled skill
/skill-doctor- What it does
- Show what each of your skills costs in context and how often it gets used, so you can find skills to turn off.
- Type
- Built in
/skills- What it does
- List available skills.
- Type
- Built in
/slides [brief]- What it does
- Make a new presentation as a Claude Slides artifact filled from your brief, for example
/slides a quarterly review of the platform team. - Type
- Bundled skill
/stats- What it does
- Alias for
/usage. - Type
- Built in
/status- What it does
- Open the Settings interface on the Status tab, showing version, model, account, and connectivity.
- Type
- Built in
/statusline- What it does
- Configure Claude Code's status line.
- Type
- Built in
/stickers- What it does
- Order Claude Code stickers
- Type
- Built in
/stop- What it does
- Stop the current background session.
- Type
- Built in
/subtask <task>- What it does
- Spawn a forked subagent: a background subagent that inherits the full conversation and works on the task while you keep working.
- Type
- Built in
/tasks- What it does
- View and manage background work in the current session, including subagents that have finished.
- Type
- Built in
/team-onboarding- What it does
- Generate a team onboarding guide from your Claude Code usage history.
- Type
- Built in
/teleport- What it does
- Pull a cloud session into this terminal.
- Type
- Built in
/terminal-setup- What it does
- Install a Shift+Enter keybinding for newlines in VS Code, Cursor, Devin Desktop, Alacritty, or Zed.
- Type
- Built in
/theme- What it does
- Change the color theme.
- Type
- Built in
/tui [default|fullscreen]- What it does
- Set the terminal UI renderer and relaunch into it with your conversation intact.
- Type
- Built in
/ultraplan <prompt>- What it does
- Removed.
- Type
- Built in
/ultrareview [PR or branch]- What it does
- Run a deep, multi-agent code review in a cloud sandbox with ultrareview.
- Type
- Built in
/update-config [request]- What it does
- Describe a settings change, such as allowing a command, setting an environment variable, or adding a hook, and Claude edits the matching
settings.jsonfile. - Type
- Bundled skill
/upgrade- What it does
- Open the upgrade page in your browser to switch to a higher plan tier.
- Type
- Built in
/usage- What it does
- Show session cost, plan usage limits, and activity stats.
- Type
- Built in
/usage-credits- What it does
- Configure usage credits, or request them from your admin, when you hit a limit.
- Type
- Built in
/verify- What it does
- Confirm a code change does what it should by building your project's app, running it, and observing the result, rather than relying on tests or type checks.
- Type
- Bundled skill
/vim- What it does
- Removed in v2.1.92.
- Type
- Built in
/voice [hold|tap|off]- What it does
- Toggle voice dictation, or enable it in a specific mode.
- Type
- Built in
/web-setup- What it does
- Connect your GitHub account for cloud sessions using your local
ghCLI credentials - Type
- Built in
/workflow-authoring- What it does
- Load the reference for writing dynamic workflow scripts: the script API, resume behavior, quality patterns, and worked examples.
- Type
- Bundled skill
/workflows- What it does
- Open the workflow progress view to watch, pause, resume, or save running and completed workflows
- Type
- Built in
The 6 Claude Code commands to set up first
/permissions once, so approvals stop interrupting every run/context on a habit: check it before you blame the prompt/effort down for work that does not need the reasoning/btw instead of stopping a run to ask something small/rename so /resume is usable next week/doctor once now, before the day you actually need itMore AI coding tools I've reviewed
Claude Code is the one I use every day, and these are the others I've reviewed:
FAQs about Claude Code commands
Have questions about Claude Code commands? Find answers to the most common ones below.
A Claude Code command is an instruction to the tool rather than to the model.
You type `/` at the prompt and a menu opens.
Some are core commands built into Claude Code.
Others are bundled skills, which you type exactly the same way.
Type `/` at the prompt and the menu opens with all of them.
Keep typing to filter.
`/help` also lists them with what each one does, and the full list is on this page.
Claude Code has 118, counting the bundled skills.
That count moves as versions ship, which is why this page is dated and the table is read from the reference rather than typed out by hand.
At the prompt there is no difference, because you type both the same way.
Underneath, core commands are built into Claude Code and bundled skills are loaded.
The table on this page marks which is which.
Learn `/context` first.
It is the one that tells you why the session stopped working, and almost nobody runs it.
It is also in the 17 most people never find.
`/clear` starts a new conversation with an empty context window.
`/compact` keeps the conversation and summarises it to free space.
Use `/clear` when you move to a different task.
Use `/compact` when you are still on the same one and it has just gone long.
You can.
Skills and plugins add their own, and they appear in the same menu.
That is also how a command becomes part of your AI OS rather than something you retype.
Most do, but not all of them.
Some are tied to where the session lives.
`/teleport` pulls a cloud session into your terminal, and `/remote-control` exposes a local one to another device.
Neither makes sense in a surface that is already the other kind.
Commands are added and removed between versions, and most lists of them are never checked again.
Run `claude --version`, then check the current reference.
A command from an article 6 months old may simply be gone.
Use `/rewind`.
It rolls the conversation and the code back to an earlier checkpoint.
Its aliases are `/checkpoint` and `/undo`, which is what most people search for first and why they never find it.
More like it are in hidden commands.
It answers a side question without adding it to the conversation.
So you can ask something small while a long run continues, instead of cancelling the run to ask and losing the work.
They operate on the same session your AI OS is loaded into, so they do in the sense that matters.
`/memory` edits the files directly, and `/context` shows you whether they loaded at all, which is the first thing to check when Claude seems to be ignoring them.
Run `/doctor`.
It runs a setup checkup, reports installation and configuration problems, and can fix some of them.
It's worth running once while nothing is wrong, so you know what its output looks like normally.
Final thoughts on Claude Code commands
The commands are the controls. Prompting is what you do once the controls are set.
And when a good prompt is what you need, my Claude Code prompt generator writes one with the files, a check Claude can run, and what done looks like.
Keep reading:
- Hidden Claude Code commands – the 17 worth learning next
- Claude Code permission modes – what
/permissionsandShift+Tabactually change - How to install Claude Code – every route, and which ones update themselves
- What is Claude Code? – what it does, and whether it is for you
Then run /context in your next session, before you blame the prompt.
Navid.me is reader-supported. When you buy through links on this site, I may earn an affiliate commission. Learn more.
Similar articles
What is a token in AI? The 4 kinds and what each one costs
All 6 Claude Code permission modes, and what each one allows
What is a vibe creator? (And how to become one)
How to install Claude Code: 8 ways, and which one to pick
What is vibe coding? (And how it works)
How to build an AI voice agent (step by step)
How to build an AI operating system (AI OS)
17 hidden Claude Code commands most people never find
How to set up VS Code for Claude Code (in one command)
What is Claude Code? What it does, where it runs and what it costs

How to make money with AI as a creator: 15 real ways (2026)

10 biggest AI lessons to 10x your creator business (2026)
Related free tools
Free AI newsletterThe most actionable AI newsletter for founders
Every week, get proven AI strategies, curated tools, and step-by-step systems to grow your audience, create better content, and build a profitable creator business.
No fluff, no filler, no BS. Just five minutes each week that might level up your online business and life.
P.S. Sign up now to get free access to my ultimate AI tools guide for creators.





