Slash commands are the control panel for Claude Code. Type / at any prompt to see them. Here’s what each one does, organized by what you’re trying to accomplish.
Starting and Navigating Sessions
/resume — Pick up where you left off. Opens an interactive list of past sessions, searchable by branch name or content. You can also do claude –resume from the terminal.
/branch (alias: /fork) — Splits the conversation into an independent copy at the current point. The original is preserved — resume it with claude -r . Great for trying two different
approaches from the same starting point.
/clear — Wipes the current conversation and starts fresh. Foreground tasks stop; background agents keep running.
/rename — Gives the session a custom name. Shows in the /resume picker and terminal tab title. Call without arguments and it auto-generates a name from context.
/rewind — Opens a picker to travel back to a prior point in the conversation, undoing file changes made after that point.
Understanding Your Context
/context — Shows a breakdown of how your context window is being used: system prompt, tools, memory files, skills, messages, and free space. Also surfaces optimization tips when you’re running
heavy.
/cost — Shows token usage and estimated cost for the current session, with per-model and cache-hit breakdown.
/usage — Shows your plan’s usage limits (5-hour and 7-day windows) and how much you’ve consumed.
/stats — Session statistics: favorite model, usage graph, streaks. Press r to cycle date ranges (7 days, 30 days, all time). Ctrl+S copies a screenshot.
/status — Account and system status.
Configuring Claude’s Behavior
/config (alias: /settings) — The main settings panel. Toggle verbose mode, thinking mode, prompt suggestions, vim mode, output style, effort level, auto-compact, and more. Search with / inside the
panel.
/model — Switch the active model (Sonnet, Opus, Haiku, and variants). Shows the currently active model in the menu. Use alt+p while typing to switch inline.
/effort — Set the thinking effort level: low, medium, or high. Type ultrathink in your prompt to temporarily bump to max for the next turn.
/fast — Toggles fast mode for Opus 4.6 (same model, faster output).
/theme — Opens the theme picker. ctrl+t inside toggles syntax highlighting.
/color — Sets a color for the prompt bar in your session: red, blue, green, yellow, purple, orange, pink, cyan, default.
/vim — Toggles vim keybindings for the input box. (Now in /config.)
/keybindings — Configure custom keyboard shortcuts. Edit ~/.claude/keybindings.json directly for chord sequences and modifier combos.
Managing Permissions and Safety
/permissions — View and manage allow/deny/ask rules for tools. Searchable with /. Tabs for Workspace, Session, and Recent.
/hooks — View, add, and edit hooks: PreToolUse, PostToolUse, Stop, SessionStart, etc.
/sandbox — Manage the Bash tool sandbox. Shows dependency status and installation instructions.
Memory and Knowledge
/memory — View and edit all loaded memory files, including CLAUDE.md and project memory. Opens files for direct editing.
/skills — Lists all active skills and their trigger descriptions, organized by source (global, project, plugin).
Agents and Tasks
/agents — Lists all configured agents (built-in and custom). You can @mention agents in prompts to invoke them.
/todos — Shows the current todo list Claude is tracking for the session.
/tasks — View background agent tasks and their status. If only one task is running, goes directly to its details.
/loop — Run a prompt or skill on a recurring interval. Example: /loop 5m check the deploy status.
MCP and Plugins
/mcp — Manage MCP server connections: enable, disable, reconnect, view tools, handle OAuth. Type /mcp enable or /mcp disable directly.
/plugin — Install, enable, disable, and uninstall plugins from the marketplace. Subcommands: install, enable, disable, uninstall, validate, marketplace.
Compaction and Context Management
/compact — Manually triggers conversation compaction: summarizes the conversation and restarts with a compressed summary, freeing context.
/plan — Enters plan mode, where Claude proposes a plan before taking action. Optionally pass a description: /plan fix the auth bug.
Productivity
/copy — Copies the last response. With code blocks present, shows an interactive picker to copy a specific block or the full response. /copy N copies the Nth-latest response. w writes directly to
file (useful over SSH).
/export — Exports the full conversation to a text file.
/btw — Ask a side question without interrupting the current task. Example: /btw what does UCITS cap mean?
/diff — View file diffs from recent edits.
/add-dir — Add an additional working directory to Claude’s scope. Supports typeahead.
Debugging and Diagnostics
/doctor — Diagnoses your Claude Code installation: checks settings files, permission rules, CLAUDE.md imports, MCP tools. Suggests fixes.
/debug — Toggles debug logging mid-session and helps Claude troubleshoot the current session.
/release-notes — Interactive version picker showing what changed in each release.
Connection and Remote
/remote-control — Bridges the session to claude.ai/code so you can continue from a browser or phone.
/teleport — Teleport a web session to your local machine.
/ide — Auto-installs and connects the VS Code extension.
/terminal-setup — Configures Shift+Enter for multi-line input in supported terminals (Windows Terminal, VS Code, Alacritty, etc.).
Voice
/voice — Toggles voice input (push-to-talk with spacebar, or a custom keybinding). Supports 20 languages.
Fun
/stickers — Opens the Claude Code sticker page in your browser.
/powerup — Interactive animated lessons teaching Claude Code features.
/buddy — Hatches a small creature that watches you code (April 1st special).
The Pattern
Most commands follow one of three shapes:
/command → opens a dialog or panel
/command → runs immediately with that argument
/command subcommand → multi-step management (plugin, mcp)
If a command isn’t available for your plan or setup (like /voice without a microphone, or /remote-control on Bedrock), it’s hidden from the menu rather than shown grayed out.