← Claude Code Hub
✦ Tip #067 May 11, 2026

Slash commands in Claude Code: the cheat sheet the docs don't give you

Searching the official Claude Code docs is like looking up a friend in a phone book: entries are alphabetical, but you don't remember the surname. Here are all ~80 slash commands grouped by intent, not by first letter.

Slash commands in Claude Code: alphabetical docs vs cheat sheet by intent

TL;DR Claude Code has nearly 80 slash commands. The official docs list them alphabetically; here they are grouped by what you want to do. Starting a session, freeing context, letting Claude work without you, reviewing before merge, debugging when something's off. Typing / shows you the ones available to your plan — but knowing where to look saves the 5-minute scroll.

If you landed here from a "claude code slash commands" search, you've probably already seen the official docs: 80 alphabetical entries, one after another. Useful when you know what you want. Useless when what you know is "I want Claude to watch something while I keep coding" but can't remember whether that's /loop, /schedule, /monitor, or /batch.

Here they are by intent. Each entry: the command, what it does in one line, and a link to the dedicated tip when we have one.

1. When you start a project

Command For
/init Generate a starter CLAUDE.md. CLAUDE_CODE_NEW_INIT=1 unlocks the interactive flow (tip)
/login · /logout Sign in/out of your Anthropic account
/web-setup Connect GitHub for Claude Code on the web
/install-github-app Set up Claude GitHub Actions for a repo (tip)
/team-onboarding Generate a ramp-up guide of your setup for a new teammate (tip)
/setup-bedrock · /setup-vertex Wizards for AWS Bedrock and Google Vertex AI
/terminal-setup Configure Shift+Enter and shortcuts in VS Code, Cursor, Windsurf, Alacritty, Zed (and what to do when your terminal cannot)

2. While you're working on a task

Command For
/model [model] Switch model without losing your prompt (tip)
/effort [level] Dial reasoning up or down. xhigh is the sweet spot on Opus 4.7 (tip)
/fast Toggle fast mode
/plan [description] Plan mode directly, optionally with the task already written
/branch [name] Fork the conversation here, preserve the original (tip)
/btw <question> Side question without polluting history (tip)
/copy [N] Copy Claude's last reply to clipboard
/diff Interactive diff viewer: uncommitted + per-turn (tip)
/add-dir <path> Add an extra directory to the session
/sandbox Toggle sandbox mode

3. When context fills up

Command For
/context See where your context window is going (tip)
/compact [instructions] Compress the conversation; optionally with focus ("keep only the plan and the diff")
/clear [name] Start a new conversation, the previous one stays in /resume
/recap One-line summary of the current session (tip)
/memory Edit CLAUDE.md and review auto-memory entries (tip)

4. When you want Claude to work without you

Command For
/goal <condition> Claude won't return control until the condition holds (tip)
/loop [interval] [prompt] Recurring intra-session. Omit the interval, Claude self-paces (tip)
/schedule [description] Create a Routine in cloud. Alias /routines
/batch <instruction> Decompose a refactor into 5-30 parallel PRs (tip)
/autofix-pr [prompt] Web session that watches your PR and pushes fixes when CI fails
/tasks Panel of everything running in parallel. Alias /bashes (tip)
/bg · claude agents Push the session to the background and open the panel where all your sessions live (tip)

To see how they all fit together: the full map of autonomous primitives.

5. Before you merge

Command For
/review [PR] Local review in the session. Since v2.1.224 it is an alias of /code-review
/ultrareview [PR] Cloud review with a parallel fleet of agents (tip)
/security-review Scans the diff for vulnerabilities
/simplify [focus] 3 parallel agents review recent files and apply quality/efficiency fixes

6. When something feels off

Command For
/doctor Audits install, settings, MCP, skills, context. Press f and Claude fixes the issues (tip)
/debug [description] Enables debug logging and analyzes the session log
/heapdump Memory snapshot to ~/Desktop when usage spikes
/feedback [report] Report a bug to Anthropic with session context attached. Alias /bug

7. Between sessions

Command For
/resume [session] Open the session picker. Accepts pasting a PR URL to find the session that created it. Alias /continue
/list-agents See which of your other sessions Claude can reach to send them a message. Alias /peers
/rename [name] Rename the current session (tip)
/teleport Pull a Claude Code on the web session into your terminal. Alias /tp (tip)
/desktop Continue in the Desktop app. Alias /app
/remote-control Make the session reachable from claude.ai for remote control (tip)
/export [file] Export the conversation as plain text

8. Metrics and usage

Command For
/usage Cost, plan limits, stats. Aliases /cost, /stats (tip)
/insights Analysis of your sessions: request types, languages, patterns, friction (tip)
/release-notes Interactive changelog picker
/extra-usage Enable extra usage when you hit the rate limit

9. Customize Claude Code

Command For
/config Settings UI: theme, model, output style, editor mode, etc. Alias /settings
/theme Change theme. Includes creating a custom one
/color Change the prompt bar color
/statusline Configure the status line
/keybindings Edit custom bindings
/agents Manage subagents
/hooks View configured hooks (tip)
/mcp Manage MCP servers (tip)
/permissions Allow/ask/deny rules (tip). Alias /allowed-tools
/skills List skills. Press t to sort by tokens, Space to hide one
/plugin Manage plugins
/reload-plugins Reload plugins without restarting

Slash commands ≠ Skills (the classic mix-up)

Skills are markdown files at ~/.claude/skills/<name>/SKILL.md that Claude runs or auto-activates. They show up in the / menu like any other slash command, but you write or install them. Built-in slash commands (the tables above) are native Claude Code code, not editable.

A few commands are labeled as bundled skills in docs (/batch, /loop, /simplify, /debug, /fewer-permission-prompts, /claude-api): they ship with Claude Code, but technically they're skills — meaning you can look at their markdown if you want to hack them. For the full mental model: the 6 extension points.

Removed commands (in case you're looking for them)

  • /pr-comments — removed in v2.1.91. Replacement: ask Claude to read the PR comments directly.
  • /vim — removed in v2.1.92. Replacement: /config → Editor mode.
  • /ultraplan, removed in v2.1.224 along with the ultraplan keyword. Replacement: plan mode in your terminal, or Claude Code on the web if what you wanted was the work running off your machine (what exactly happened).

The command you already know without knowing it

/ alone, no text. Shows you the full menu filtered by what you have installed and your plan. Type letters after / to filter in real time. If you can't remember the exact name, that's the fastest way — without having to come back to this cheat sheet.

Official docs: Commands reference

Workshop for teams

Multiply your team's output without sacrificing quality: a 6 to 8 hour AI First workshop, online, on the Claude platform.

See the workshop
Free guide

The 51 essentials, as a PDF.

One page per tip. Five chapters. What I actually use daily in production — no theory, no fluff.

  • I. Getting started 10 tips
  • II. Awareness 3 tips
  • III. Mastery 22 tips
  • IV. Autonomy 10 tips
  • V. Comparison 6 tips
Are you a professional Web developer?

You'll receive the guide by email · You join the Gravitas newsletter · Unsubscribe anytime

of 51
#

Wmedia · 51 Tips
Free guide · 51 tips · 5 chapters

The 51 essentials, as a PDF.

Are you a professional Web developer? · Unsubscribe anytime