Built-in Slash Commands Tour

60+ commands across session, model, review, and workflow

Intermediate 13 minBuilder
What you'll be able to do
  • State the parsing rules: commands are recognized only at message start, trailing text becomes arguments, and /help is authoritative for your version
  • Map the five command families — session, model/effort, review, workflow, and utilities — to the commands you reach for most
  • Distinguish a plain built-in from a bundled [Skill] or [Workflow], and explain why bundled skills can be invoked autonomously by Claude
  • Recall the /effort levels (low through ultracode) and which are session-only, plus the removed commands and the MCP prompt format
  • Use the highest-value commands across an everyday workflow with correct, exact syntax
At a glance

Claude Code ships 60+ built-in slash commands that control the session from inside the prompt. This tour gives you the parsing rules, the command families, the built-in-versus-bundled-skill distinction, and the high-value commands every user should know cold.

  1. 1The mental model: one input box, two languages
  2. 2Built-in vs. bundled skills vs. bundled workflows
  3. 3Family 1 — Session & context
  4. 4Families 2 & 3 — Model/effort and Review
  5. 5Families 4 & 5 — Workflow orchestration and Utilities
  6. 6Removed commands and MCP prompts

The mental model: one input box, two languages

Your prompt input speaks two languages. Most of the time you type natural-language instructions and Claude does the work. But when a line starts with /, Claude Code intercepts it first and treats it as a slash command — a direct control over the session itself: switch models, clear context, run a review, open a manager.

Three parsing rules govern every one of them:

  1. Recognized only at the start of a message. /clear on its own line clears context. please run /clear for me is just text Claude reads — the /clear in the middle does nothing.
  2. Trailing text becomes arguments. Everything after the command name is passed to the command. /compact focus on the auth refactor runs /compact with focus on the auth refactor as its instruction.
  3. Type / to discover, /help to be sure. Typing / opens an autocomplete menu of every command available to you right now; add letters to filter. Because the set changes with your version, your plugins, and your connected MCP servers, /help is the authoritative list for your install — this lesson teaches the families and the high-value commands, not a frozen catalog.

Think of slash commands as the console for the session, sitting alongside the conversation. Same input box, two distinct languages.

Key insight

Start-of-line is the whole rule

A slash command only fires when / is the first character of your message. This is what lets you mention commands inside ordinary prose ("I ran /clear") without accidentally triggering them. If a command seems to do nothing, check that nothing precedes the slash.

Watch out

Don't memorize the catalog — learn the map

There are 60+ built-ins and the list shifts every few releases (commands get added, renamed, and removed). Memorizing names is a losing game. Memorize the families and the discovery habit (/ to autocomplete, /help for the authoritative list), and you'll always find the right command for your version.

Built-in vs. bundled skills vs. bundled workflows

Not every slash command is the same kind of thing. The commands page tags each entry, and the tag tells you who can trigger it and how it behaves.

KindTag in /helpWhat it isCan Claude invoke it on its own?
Built-in(none)A direct session control implemented in Claude Code — /clear, /model, /context, /usageNo — you type it
Bundled skill[Skill]A prompt handed to Claude, packaged with Claude Code — /code-review, /batch, /simplify, /security-reviewYes — Claude can run it automatically when it's relevant
Bundled workflow[Workflow]A dynamic workflow that fans work out across many subagents and runs in the background — /deep-research, /batchYes — it's a workflow Claude can orchestrate

The crucial consequence is in that last column. A bundled skill works exactly like a skill you write yourself: it's a prompt that Claude can also invoke autonomously when the moment calls for it. So /code-review isn't only something you type — if you ask Claude to "check my diff for bugs," it may run the same review skill itself. /claude-api likewise activates on its own when your code imports anthropic or @anthropic-ai/sdk.

Plain built-ins (/clear, /model, /effort, /usage) are pure session controls — Claude never runs those for you; they only do something when you type them.

Note

Why the distinction matters

The tag predicts behavior. A [Skill] or [Workflow] may show up in your session without you typing the slash, because Claude decided it was the right tool. A plain built-in never will. When you see a review or research running that you didn't explicitly start, it's almost certainly a bundled skill Claude invoked.

Family 1 — Session & context

These manage the conversation itself: its size, its history, and where you are in it. This is the family you'll touch most, because context management is the core skill of working with Claude Code.

CommandSyntaxWhat it does
/clear/clear [name]Empty the context window for a fresh start; prior conversation stays reachable via /resume. Aliases /reset, /new
/compact/compact [instructions]Summarize the conversation to reclaim context, keeping CLAUDE.md, skills, and memory; optional focus instructions
/context/context [all]Show a colored grid of where your tokens are going, plus optimization tips
/rewind/rewind (or Esc Esc)Open the checkpoint menu to restore or summarize to an earlier point. Aliases /checkpoint, /undo
/branch/branch [name]Fork the conversation at this point into a new session. Alias /fork
/resume/resume [session]Switch to another saved conversation by ID/name, or open the picker. Alias /continue
/rename/rename [name]Rename the current session (auto-generates a name if you give none)
/export/export [filename]Export the conversation as plain text to clipboard or a file
/copy/copy [N]Copy the Nth-latest response; offers a picker for individual code blocks (w writes to a file)

The everyday rhythm: /clear between unrelated tasks so context from one doesn't pollute the next; /compact when a single long task fills the window; /context to see why it's full before you decide which to use.

Tip

Compact at ~60%, not at 95%

Running /compact manually around 60% of the window — rather than waiting for auto-compaction near the limit — produces a sharper, cheaper summary while the conversation is still coherent. Check the gauge with /context first. (/branch, /resume, and /rewind get full treatment in the Sessions & Checkpoints lesson.)

Families 2 & 3 — Model/effort and Review

Model & effort controls how much brain you spend on the next turn — a direct lever on cost, latency, and depth.

CommandSyntaxWhat it does
/model/model [model]Switch model and save it as your default; no argument opens a picker (press s on a row to switch for this session only)
/effort/effort [level|auto]Set the reasoning effort level; no argument opens an interactive slider
/fast/fast [on|off]Faster, less deliberate responses

The effort levels, lowest to highest, are: low, medium, high, xhigh, max, ultracode. Which levels are available depends on the model. Two are session-only (you can't save them as a default): max and ultracode. And ultracode is special — it's a Claude Code setting that combines xhigh reasoning with automatic workflow orchestration, so Claude not only thinks harder but can fan the work out across subagents on its own. /effort auto resets to the model's default.

Review & quality are bundled skills (the [Skill] tag) — meaning Claude can also run them autonomously — that audit your current git diff.

CommandSyntaxWhat it does
/code-review/code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [target]Review the diff for correctness bugs and cleanup; --fix applies findings, --comment posts inline GitHub PR comments, ultra runs a deep cloud review
/simplify/simplify [target]Cleanup-only review (v2.1.154+): four agents run in parallel for reuse, simplification, efficiency, and abstraction — and apply fixes. Does not hunt for bugs
/security-review/security-reviewScan the diff for security issues — SQL injection, XSS, exposed credentials, insecure config

The division of labor is clean: /code-review finds bugs, /simplify cleans up, /security-review checks security.

Tip

ultracode = xhigh + auto-orchestration

Reach for /effort ultracode when a task is both hard to reason about and big enough to parallelize — it pairs maximum-tier reasoning with automatic workflow orchestration across subagents. Because max and ultracode are session-only, you set them for the task at hand, not as a forever default.

Watch out

/code-review and /simplify do different jobs

From v2.1.154, /simplify is cleanup-only — it will not catch correctness bugs. If you want bugs found, run /code-review. (On versions before 2.1.154, /simplify was equivalent to /code-review --fix.)

Families 4 & 5 — Workflow orchestration and Utilities

Workflow orchestration scales work out across plan mode, subagents, and the background. Several carry the [Skill] or [Workflow] tag, so Claude can also reach for them itself.

CommandSyntaxWhat it does
/plan/plan [description]Enter plan mode directly — read-only exploration that drafts a plan before any edits
/batch/batch <instruction>[Skill] Decompose a large change into 5–30 independent units, plan, then spawn one background subagent per unit in an isolated worktree. Requires a git repo
/agents/agentsOpen the subagent manager
/background/background [prompt]Detach the whole session to run as a background agent. Alias /bg
/loop/loop [interval] [prompt][Skill] Run a prompt repeatedly while the session is open, e.g. /loop 5m check if the deploy finished
/tasks/tasksList background tasks running in the current session
/deep-research/deep-research <question>[Workflow] Fan out web searches, cross-check sources, synthesize a cited report

Utilities & diagnostics are the supporting cast — copying output, exporting, checking spend, and fixing the install.

CommandSyntaxWhat it does
/copy/copy [N]Copy the Nth-latest response or a chosen code block
/export/export [filename]Export the conversation as plain text
/usage/usageSession cost + plan usage + breakdown by skill/subagent/plugin/MCP. Aliases /cost, /stats
/doctor/doctorInstall/config diagnostics (f to fix). CLI equivalent: claude doctor
/help/helpThe authoritative list of commands for your version
/config/configSettings UI — theme, model, editor mode, output style. Alias /settings

Keep /help, /usage, and /doctor in muscle memory: one tells you what's available, one tells you what you're spending, one tells you what's broken.

Example

A command per phase of a real task

Set up: /plan refactor the auth module. Spend more brain: /effort high. Run wide: /batch migrate src/ from Solid to React. Review: /code-review --fix, then /security-review. Ship & account: /usage to check spend, /copy to grab the summary for your PR. Each command belongs to a moment in the workflow — that's the map to internalize.

Removed commands and MCP prompts

Two once-common commands are gone, and following stale tutorials that still list them is a common source of confusion:

Removed commandRemoved inWhat to do instead
/pr-commentsv2.1.91Just ask Claude directly to view a pull request's comments
/vimv2.1.92Toggle editing modes via /configEditor mode

If you type a removed command on a current version, it simply isn't recognized — which is another reason /help (not a blog post) is your source of truth.

Finally, your command surface isn't fixed — it grows with your connected MCP servers. An MCP server can expose prompts, and each surfaces as a command in the format /mcp__<server>__<prompt>: double-underscore separated, namespaced by server. These are dynamically discovered from your connected servers, so they appear in your / autocomplete only when the relevant server is connected. For example, a connected linear server exposing a create_issue prompt would surface as /mcp__linear__create_issue.

Note

Your `/` menu is personalized

Two installs on the same version can show different command menus: bundled skills, installed plugins, custom commands in .claude/, and connected MCP servers all add entries. That's exactly why the lesson teaches families plus the /help habit rather than a fixed list — the fixed list doesn't exist.

Try it: Tour the surface in five minutes

Build muscle memory for the families and the discovery habit in any project directory (use a throwaway repo so reviews have a diff to chew on).

  1. Discover, don't memorize. Type / and skim the autocomplete menu. Then run /help and find three commands you didn't know existed. Notice which entries carry a [Skill] or [Workflow] tag.
  2. Prove the parsing rule. Send the message please /clear this for me and confirm the context is not cleared (the line doesn't start with /). Then send /clear on its own and confirm it does.
  3. Tune the dial. Run /effort with no argument to open the slider; note which levels your current model exposes and which are marked session-only. Set /effort high, then /effort auto to reset.
  4. Trigger a bundled skill two ways. Make a small code change so there's a diff. Run /code-review explicitly. Then, in a fresh attempt, simply ask Claude in plain English to 'review my diff for bugs' and observe the same skill running without the slash — the [Skill] tag in action.
  5. Check the removed ones. Try typing /vim and /pr-comments. Confirm neither is recognized, then open /config and locate Editor mode as the replacement for /vim.
  6. Account for it. Run /usage to see session cost and the per-skill/subagent breakdown, then /copy to grab the last response.

Deliverable: a one-paragraph note listing one command from each of the five families, which two /effort levels are session-only on your model, and one bundled skill you saw Claude invoke without typing its slash.

Key takeaways

  1. 1A slash command is recognized only at the start of a message; everything after the name becomes its arguments. Type `/` to autocomplete and `/help` for the authoritative, version-specific list.
  2. 2The five families are session/context (/clear /compact /resume /rewind /branch), model/effort (/model /effort /fast), review (/code-review /simplify /security-review), workflow (/plan /batch /agents /background /loop), and utilities (/copy /export /usage /doctor).
  3. 3Built-ins are pure session controls you type; bundled skills ([Skill]) and workflows ([Workflow]) are prompts Claude can also invoke autonomously when relevant.
  4. 4Effort levels run low → medium → high → xhigh → max → ultracode; max and ultracode are session-only, and ultracode = xhigh reasoning plus automatic workflow orchestration.
  5. 5/pr-comments was removed in v2.1.91 (ask Claude directly) and /vim in v2.1.92 (use /config → Editor mode); don't trust stale tutorials.
  6. 6MCP servers add commands dynamically in the format /mcp__<server>__<prompt>, so your command menu is personalized to your version, plugins, and connected servers.

Quiz

Lock in what you learned

Check your understanding

0 / 4 answered

1.You type the message: `please run /clear and then summarize the file`. What happens?

2.You ask Claude, in plain English, to 'review my current diff for bugs and fix them.' Without you typing any slash command, a code review begins running. What best explains this?

3.Which statement about /effort levels is correct?

4.A 2025 tutorial tells you to run `/vim` to enable Vim keybindings and `/pr-comments` to read PR feedback, but neither is recognized in your current Claude Code. What's the right understanding?

Go deeper

Hand-picked sources to keep learning