Skip to content

Claude Code Built-in Slash Commands

Per-section reference for every built-in slash command dispatched by the Claude Code CLI.

  1. How slash commands work
  2. Session Management
  3. Memory & Context
  4. Account & Subscription
  5. Plugins, Permissions, Hooks, MCP, Skills
  6. IDE & Integrations
  7. Diagnostics & Health
  8. Team, Scheduling, Multi-Agent
  9. Help & Miscellaneous
  10. Removed / Deprecated Commands
  11. Additional / Undocumented Commands
  12. Experimental / Unreleased / Feature-Flag-Gated Commands
  13. Discrepancies and Gaps
  14. Notes on Sourcing

14 sections, 97 command entries across documented, internal, experimental, and tombstoned commands.

#SectionDescriptionEntries
1How slash commands workDispatch model, aliases, env-var disablers, provider/plan/feature-flag gating, and the [Skill] marker.narrative
2Session ManagementConversation control — clear, compact, resume, branch, model, effort, plan, tui, theme, copy, export, etc.21 commands
3Memory & Context/init, /memory, /context — read/write CLAUDE.md and visualize context usage.3 commands
4Account & SubscriptionLogin/logout, upgrade, usage, passes, privacy, mobile, stickers, setup-bedrock/vertex, web-setup.12 commands
5Plugins, Permissions, Hooks, MCP, Skills/mcp, /plugin, /reload-plugins, /hooks, /permissions, /skills, /less-permission-prompts.7 commands
6IDE & IntegrationsIDE, Chrome, Desktop, terminal setup, remote control/env, teleport, voice, diff, autofix-pr, GitHub/Slack apps, review, ultrareview.15 commands
7Diagnostics & Health/doctor, /status, /heapdump, /insights, /stats, /release-notes, /security-review, /cost, /debug, /simplify.11 commands
8Team, Scheduling, Multi-Agent/schedule, /tasks, /team-onboarding, /ultraplan, /batch, /loop — cross-session coordination primitives.6 commands
9Help & Miscellaneous/help, /powerup, /feedback, /config, /claude-api.6 commands
10Removed / Deprecated CommandsDeprecated (/vim — still registered, superseded by /config → Editor mode as of v2.1.92) and removed (/pr-comments → v2.1.91) commands with replacement guidance.2 commands
11Additional / Undocumented CommandsSource-tree commands NOT on the public commands page — includes ant-only developer tools, experimental git workflows, remote/bridge primitives, and disabled stubs.12 commands
12Experimental / Unreleased / Feature-Flag-Gated CommandsCommands gated by env flags (CLAUDE_CODE_TEAM_ONBOARDING, CLAUDE_CODE_ENABLE_TASKS, CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS, CLAUDE_CODE_ENABLE_CFC).2 commands
13Discrepancies and Gaps10 known mismatches between env vars, public docs, and source — naming collisions, dual-gate patterns, tombstones.narrative
14Notes on SourcingProvenance of each section — which data came from official docs vs source tree vs community citations.narrative

★ = commonly used by junior developers; start with these

CommandAliasesCategoryArgumentsDisabler env varGating/condition
/add-dir—Session Management<path>——
/agents—Session Managementnone——
/autofix-pr—IDE/GitHub[prompt]—Requires gh CLI and Claude Code web access
/batch—Session Management [Skill]<instruction>—Requires git repository
/branch/forkSession Management[name]——
/btw—Session Management<question>——
/chrome—IDEnone——
/claude-api—Session Management [Skill]noneCLAUDE_CODE_DISABLE_CLAUDE_API_SKILLAuto-activates with anthropic or @anthropic-ai/sdk imports
/clear ★/reset, /newSession Managementnone——
/color—Session Management[color|default]—Colors: red, blue, green, yellow, purple, orange, pink, cyan
/compact—Session Management[instructions]DISABLE_COMPACT—
/config ★/settingsSession Managementnone——
/context—Memory/Contextnone——
/copy—Session Management[N]——
/cost ★—Diagnosticsnone——
/debug—Diagnostics [Skill][description]—Requires claude --debug flag or manual activation
/desktop/appIDEnone—macOS and Windows only
/diff—IDEnone——
/doctor—DiagnosticsnoneDISABLE_DOCTOR_COMMAND—
/effort—Session Management[level|auto]CLAUDE_CODE_DISABLE_FAST_MODELevels: low, medium, high, xhigh, max, auto
/exit ★/quitSession Managementnone——
/export—Session Management[filename]——
/extra-usage—Accountnone——
/fast—Session Management[on|off]CLAUDE_CODE_DISABLE_FAST_MODE—
/feedback ★/bugHelp[report]DISABLE_FEEDBACK_COMMAND, DISABLE_BUG_COMMAND—
/focus—Session Managementnone—Fullscreen rendering only
/heapdump—Diagnosticsnone——
/help ★—Helpnone——
/hooks—Plugin Mgmtnone——
/ide—IDEnone——
/init ★—Memory/Contextnone—Set CLAUDE_CODE_NEW_INIT=1 for interactive flow
/insights—Diagnosticsnone——
/install-github-app—IDE/GitHubnoneDISABLE_INSTALL_GITHUB_APP_COMMAND—
/install-slack-app—IDE/Integrationsnone——
/keybindings—IDEnone——
/less-permission-prompts—Plugin Mgmt [Skill]none——
/login—AccountnoneDISABLE_LOGIN_COMMAND—
/logout—AccountnoneDISABLE_LOGOUT_COMMAND—
/loop/proactiveSession Management [Skill][interval] [prompt]——
/mcp—Plugin Mgmtnone——
/memory ★—Memory/ContextnoneCLAUDE_CODE_DISABLE_AUTO_MEMORYDisabler only affects auto-memory, not the command
/mobile/ios, /androidAccountnone——
/model ★—Session Management[model]——
/passes—Accountnone—Only visible if account is eligible
/permissions ★/allowed-toolsPlugin Mgmtnone——
/plan—Session Management[description]——
/plugin—Plugin Mgmtnone——
/powerup—Helpnone——
/privacy-settings—Accountnone—Pro and Max only
/recap—Session Managementnone——
/release-notes—Helpnone——
/reload-plugins—Plugin Mgmtnone——
/remote-control/rcIDEnone——
/remote-env—IDEnone——
/rename—Session Management[name]——
/resume ★/continueSession Management[session]——
/review—IDE[PR]——
/rewind ★/checkpoint, /undoSession ManagementnoneCLAUDE_CODE_DISABLE_FILE_CHECKPOINTINGDisabler affects checkpointing feature
/sandbox—Session Managementnone—Supported platforms only
/schedule/routinesTeam[description]——
/security-review—Diagnosticsnone——
/setup-bedrock—Accountnone—Only visible with CLAUDE_CODE_USE_BEDROCK=1
/setup-vertex—Accountnone—Only visible with CLAUDE_CODE_USE_VERTEX=1
/simplify—Diagnostics [Skill][focus]——
/skills ★—Helpnone—Press t to sort by token count
/stats—Diagnosticsnone——
/status—Diagnosticsnone—Works while Claude is responding
/statusline—IDEnone——
/stickers—Accountnone——
/tasks/bashesTeamnoneCLAUDE_CODE_DISABLE_BACKGROUND_TASKSFull system gated by CLAUDE_CODE_ENABLE_TASKS
/team-onboarding—Teamnone—Requires CLAUDE_CODE_TEAM_ONBOARDING + tengu_flint_harbor flag
/teleport/tpIDEnone—Requires claude.ai subscription
/terminal-setup—IDEnone—VS Code, Alacritty, Warp only
/theme—Session Managementnone——
/tui—IDE[default|fullscreen]——
/ultraplan—Team<prompt>——
/ultrareview—Diagnostics[PR]—3 free runs on Pro/Max, then requires extra usage
/upgrade—AccountnoneDISABLE_UPGRADE_COMMANDOnly visible on Pro and Max plans
/usage—AccountnoneDISABLE_EXTRA_USAGE_COMMANDNote: env var name mismatch (see Discrepancies and Gaps)
/voice—IDEnone—Requires Claude.ai account
/web-setup—Accountnone——