Claude Code — Slash Commands
Slash commands are typed inside an interactive Claude Code session (they are not shell commands — see Claude Code — CLI Commands for those). Typing / shows all available commands with autocomplete.
Three things to know:
- Custom slash commands have been merged into Skills.
.claude/commands/review.mdand.claude/skills/review/SKILL.mdboth create/reviewand behave the same; on a name conflict the skill wins. See Claude Code — Agent Skills. - MCP prompts appear as
/mcp__<server>__<prompt>. - Since v2.1.199, multiple skills can be chained at the start of a message (
/skill-a /skill-b do XYZ, up to six).
Full command table
[Skill] = bundled skill, [Workflow] = bundled dynamic workflow. Commands the docs list without a description are marked ? Unable to verify.
| Command | What it does | When to use it |
|---|---|---|
/add-dir <path> | Add a working directory for the session | Working across multiple directories or repos at once |
/advisor [model|off] | Enable/disable the advisor tool — a second model consulted at key moments (v2.1.98+) | You want a second opinion on key decisions |
/agents | v2.1.198+: prints a reminder to ask Claude to manage subagents or edit .claude/agents/; earlier versions open an interactive subagent UI | Managing subagents |
/autofix-pr [prompt] | ? Unable to verify | — |
/background [prompt] | Detach the whole session as a background agent | Long-running work you want running while you do something else |
/batch <instruction> [Workflow] | Decompose a large change into units run in worktrees | Large, sweeping changes across a codebase |
/branch [name] | Fork an earlier conversation | Trying an alternate direction from a previous point |
/btw <question> | Quick aside that doesn’t enter conversation history | A throwaway question you don’t want polluting context |
/cd <path> | Move the session to a new directory (v2.1.246+ connects new plugins’ MCP servers automatically) | Switching project mid-session |
/chrome | Chrome browser integration | Sessions that need browser control |
/claude-api [migrate|managed-agents-onboard] | ? Unable to verify | — |
/clear [name] | Clear conversation history | Starting a new, unrelated task |
/code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [target] | Multi-agent diff review; ultra runs in the cloud | Deep review of your changes before merging |
/color [color|default] | ? Unable to verify | — |
/compact [instructions] | Compact conversation with optional focus instructions | Context window filling up but work continues |
/config [key=value ...] | Settings interface; can also set any setting straight from the prompt | Viewing or changing settings in-session |
/context [all] | Visualize context window usage | Checking what is consuming your context |
/copy [N] | ? Unable to verify | — |
/cost | Token usage and cost (shows prompt-cache-miss causes since 2.1.260) | Tracking spend for the session |
/dataviz [request] | Bundled skill — data visualization | Turning data into charts/visuals |
/debug [description] | Diagnose runtime issues | Something in Claude Code itself is misbehaving |
/deep-research <question> | Bundled skill — in-depth research on a question | Open-ended research questions |
/design-login | Bundled skill; details ? Unable to verify | — |
/design-sync [hint] | Bundled skill; details ? Unable to verify | — |
/desktop | Hand off the terminal session to the Desktop app | Moving from terminal to the desktop app |
/diff | Show uncommitted changes (opens a diff panel in fullscreen mode, 2.1.260+) | Reviewing what changed before committing |
/doctor | Setup checkup; diagnoses and can fix installation/config issues | A broken or misbehaving installation |
/effort [level|auto] | Adjust reasoning effort | Trading speed vs. depth of reasoning |
/exit | Exit the session | Done working |
/export [filename] | Export the conversation | Saving or sharing a transcript |
/fast [on|off] | Fast mode for Opus responses | Quicker Opus replies |
/feedback [report] | Report a bug with session context attached | Filing a bug report (replaces the legacy /bug) |
/fewer-permission-prompts | ? Unable to verify | — |
/focus | ? Unable to verify | — |
/fork <directive> | ? Unable to verify | — |
/goal [condition|clear] | Keep Claude working until a condition holds | Long autonomous runs with a clear finish line |
/heapdump | ? Unable to verify | — |
/help | Show help | Quick reference in-session |
/hooks | Manage hooks | Configuring event hooks |
/ide | IDE integration | Connecting the session to your editor |
/init | Generate a starter CLAUDE.md | First session in a new project |
/insights | ? Unable to verify | — |
/install-github-app | Install the GitHub app integration | Enabling GitHub integration features |
/install-slack-app | Install the Slack app integration | Enabling Slack integration features |
/keybindings | Manage keybindings | Customizing keyboard shortcuts |
/login | Sign in | Authenticating |
/logout | Sign out | Switching accounts |
/loop [interval] [prompt] | Repeat a prompt on an interval | Polling or recurring checks |
/mcp [reconnect <server>|enable|disable [<server>|all]] | MCP server management panel | Authenticating, reconnecting, enabling/disabling MCP servers |
/memory | Open memory files in the system editor | Editing CLAUDE.md files directly |
/mobile | ? Unable to verify | — |
/model [model] | Select the model | Switching models mid-session |
/passes | ? Unable to verify | — |
/permissions | Manage allow/ask/deny rules | Reviewing or changing tool permissions |
/plan [description] | Switch into plan mode | Planning before any edits happen |
/plugin [subcommand] | Plugin manager (/plugin list, /plugin install x@marketplace, /plugin marketplace add org/repo, …) | Installing and managing plugins |
/powerup | Fun / easter-egg command | — |
/pr-comments [PR] | Fetch pull-request comments | Working through review feedback on a PR |
/privacy-settings | Manage privacy settings | Reviewing data/privacy options |
/radio | Fun / easter-egg command | — |
/recap | ? Unable to verify | — |
/release-notes | Show release notes | Catching up on what changed |
/reload-plugins [--force] | Reload plugins after changes | Picking up plugin changes without restarting |
/reload-skills | Reload skills | Picking up skill changes without restarting |
/remote-control | Continue this local session from another device | Driving the session from Claude.ai / the app |
/remote-env | ? Unable to verify | — |
/rename [name] | Rename the session | Making sessions findable for /resume |
/resume [session] | Resume an earlier conversation (pasting a PR URL finds the session that created it) | Picking up previous work |
/review [PR] | Fast single-pass read-only review of a GitHub PR | Quick PR review |
/rewind | Roll code and conversation back to a checkpoint (Esc+Esc also rewinds; can resume from before a /clear) | Undoing a bad change |
/run | ? Unable to verify | — |
/run-skill-generator | ? Unable to verify | — |
/sandbox | Configure sandboxing | Adjusting sandbox behavior |
/schedule [description] | Create scheduled routines | Recurring automated work |
/scroll-speed | Set scroll speed | TUI preference |
/security-review | Check the diff for security vulnerabilities | Security pass before merging |
/setup-bedrock | Set up Amazon Bedrock | Running via Bedrock |
/setup-vertex | Set up Google Vertex AI | Running via Vertex |
/simplify [target] | ? Unable to verify | — |
/skills | List and manage skills | Browsing available skills |
/stats | ? Unable to verify | — |
/status | Status info: account, model, org policy line (since 2.1.261) | Checking account/model state |
/statusline | Configure a custom status line | Customizing the TUI status line |
/stickers | Fun / easter-egg command | — |
/stop | Stop the current response | Cancelling generation |
/tasks | List background tasks of the session | Checking on background work |
/team-onboarding | ? Unable to verify | — |
/teleport | Pull a web session into this terminal | Moving a claude.ai session to the terminal |
/terminal-setup | Install the Shift+Enter newline binding (iTerm2, VS Code) | Multi-line input in the terminal |
/theme | Change the UI theme | Appearance preference |
/tui [default|fullscreen] | Switch TUI display mode | Toggling fullscreen UI |
/ultraplan <prompt> | ? Unable to verify | — |
/ultrareview [PR] | Research-preview review (What’s new W17) | Heavier review of a PR |
/upgrade | Upgrade Claude Code | Getting the latest version |
/usage | Show usage information | Checking plan usage |
/usage-credits | Show credit usage | Tracking credits |
/verify | ? Unable to verify | — |
/vim | Vim input mode | Vim-style editing |
/voice [hold|tap|off] | Voice input mode | Talking instead of typing |
/web-setup | ? Unable to verify | — |
/workflows | Workflow progress view | Tracking dynamic workflow runs |
Note: /bug no longer appears in the current command table — use /feedback instead. The old /approved-tools and /allowed-tools commands are now /permissions.
Deep-dives
/init
What it does
Generates a starter CLAUDE.md for the current project — the memory file Claude Code loads automatically at launch.
When to use it
On your first session in a new project, and again when the project structure changes significantly.
Example
> /init
Notes
Review and edit the generated file; it becomes shared team context when committed to git. See Claude Code — Project Instructions (CLAUDE.md).
Official source
https://docs.claude.com/en/docs/claude-code/memory
/clear
What it does
Clears the conversation history, optionally naming the cleared session (/clear [name]).
When to use it
When switching to a new, unrelated task. Old context costs tokens and can bias answers.
Example
> /clear billing-refactor
Notes
/rewind can resume from before a /clear, so clearing is not destructive.
Official source
https://code.claude.com/docs/en/commands
/compact
What it does
Compacts the conversation, summarizing earlier turns to free context space. Optional instructions tell it what to preserve.
When to use it
When the context window is filling up but the task isn’t done. Auto-compact also fires automatically at ~95% of context (tunable via CLAUDE_AUTOCOMPACT_PCT_OVERRIDE).
Example
> /compact keep the failing test output and the refactor plan
Notes
PreCompact hooks fire with matcher manual or auto. Subagent transcripts are not affected by main-conversation compaction.
Official source
https://code.claude.com/docs/en/commands
/model
What it does
Shows and changes the model used for the session.
When to use it
When you want a stronger model for hard reasoning or a faster/cheaper one for routine work.
Example
> /model opus
Notes
The same can be set at launch with claude --model <model> (alias or full model name) or the model setting in settings.json.
Official source
https://code.claude.com/docs/en/commands
/memory
What it does
Opens your memory files (CLAUDE.md hierarchy) in the system editor and shows which memory is loaded.
When to use it
When you want to see or edit everything Claude Code knows about your project.
Example
> /memory
Notes
Quick alternative: start any input with # to add a one-line memory — you’ll be prompted to choose which memory file it goes into. See Claude Code — Project Instructions (CLAUDE.md).
Official source
https://docs.claude.com/en/docs/claude-code/memory
/agents
What it does
Entry point for managing subagents. Since v2.1.198 it prints a reminder to ask Claude to manage subagents or to edit .claude/agents/ directly; on v2.1.197 and earlier it opens an interactive subagent UI.
When to use it
Creating, inspecting, or adjusting subagents.
Example
> /agents
Notes
claude agents on the shell lists all configured subagents grouped by source, without starting a session. See Claude Code — Subagents.
Official source
https://docs.claude.com/en/docs/claude-code/sub-agents
/permissions
What it does
Opens the interface for managing allow / ask / deny permission rules.
When to use it
When Claude Code prompts too often for safe operations — add an allow rule instead of disabling protections.
Example
> /permissions
Notes
Rules are stored in settings.json under permissions; see Claude Code — Permissions for rule syntax and the six permission modes.
Official source
https://docs.claude.com/en/docs/claude-code/permissions
/mcp
What it does
Opens the MCP server management panel: authenticate, reconnect, or enable/disable servers (/mcp reconnect <server>, /mcp enable|disable [<server>|all]).
When to use it
When a connected MCP server needs re-authentication or is misbehaving.
Example
> /mcp reconnect notion
Notes
Servers are added from the shell with claude mcp add; see Claude Code — MCP.
Official source
https://docs.claude.com/en/docs/claude-code/mcp
/resume
What it does
Resumes an earlier conversation, by name/ID or from an interactive picker. Pasting a GitHub PR URL finds the session that created it.
When to use it
Picking up where you left off — yesterday’s task, or the session behind a PR.
Example
> /resume
Notes
Shell equivalents: claude --resume <id-or-name>, claude --continue (most recent in the current directory), claude --from-pr <n|url>. See Claude Code — CLI Commands.
Official source
https://code.claude.com/docs/en/commands
/review
What it does
Fast, single-pass, read-only review of a GitHub PR.
When to use it
A quick sanity check on a PR, yours or a teammate’s.
Example
> /review 123
Notes
Read-only — it won’t change code. For deeper multi-pass review with optional fixes, use /code-review; for a security pass, /security-review.
Official source
https://code.claude.com/docs/en/commands
/code-review
What it does
Multi-agent review of a diff, with tunable depth: low | medium | high | xhigh | max | ultra (ultra runs in the cloud). --fix applies suggested fixes; --comment posts review comments; an optional target selects what to review.
When to use it
Before merging a non-trivial change, when /review is too shallow.
Example
> /code-review high --fix
Notes
/code-review, /review, and /security-review coexist with different semantics — they are not aliases. See Claude Code — Workflows.
Official source
https://code.claude.com/docs/en/commands
/plan
What it does
Switches the session into plan mode: read-only exploration ending in a plan presented for approval. Accepts an optional description of what to plan.
When to use it
Before any task where you want to approve an approach before edits happen.
Example
> /plan add pagination to the /users endpoint
Notes
Plan mode is one of the six permission modes. You can also toggle it with Shift+Tab or start in it with claude --permission-mode plan. Plans are stored in ~/.claude/plans by default (plansDirectory setting).
Official source
https://code.claude.com/docs/en/commands
Last verified: 2026-09-07
Official sources:
- https://code.claude.com/docs/en/commands.md
- https://docs.claude.com/en/docs/claude-code/memory
- https://docs.claude.com/en/docs/claude-code/sub-agents
- https://docs.claude.com/en/docs/claude-code/permissions
- https://docs.claude.com/en/docs/claude-code/mcp
- https://docs.claude.com/en/docs/claude-code/interactive-mode
AI coding tools evolve quickly. If you find outdated information, please open an issue or pull request.