Slash commands are the fastest way to control Claude Code’s behavior during an interactive session. Type / at any prompt to see the full list, or type a few letters to filter. This module covers the built-in commands you’ll use every day.
Discovering Commands
Type / at the prompt and a menu appears with all available commands. Start typing to filter — /co narrows to /compact, /color, /config, /context, /cost, /copy. Arrow keys navigate, Enter selects. Commands that aren’t available for your current setup are hidden automatically, so you only see what works.
New to Claude Code? Try /powerup — it runs interactive lessons with animated demos that walk you through key features right inside the CLI.
Some commands accept arguments directly: /compact focus on the API layer, /model opus, /effort high, /rename auth-refactor. Others like /context, /cost, and /status run immediately with no arguments.
/compact focus on the payment service
Command Categories
Built-in commands group into a few categories. Knowing the categories helps you find the right command without memorizing all of them.
Context management controls how much of the conversation Claude can see.
/context— shows a visual grid of your context usage/compact— compresses the conversation. Pass instructions to control what’s preserved:/compact keep the migration plan, drop the debugging/clear— starts completely fresh
Session tools let you manage and revisit work.
/rename my-feature— gives the session a readable name/resume— picks up a previous session/branch— creates a parallel conversation to explore an alternative without losing your current state/rewind— rolls back to an earlier point./undois an alias for/rewind./export— saves the session to a file or clipboard/recap— generates a one-line summary of what happened in the session. Also runs automatically when you return to the terminal after stepping away.
Configuration commands adjust Claude’s behavior mid-session.
/model— switches between available models such as Sonnet, Opus, Haiku, and other aliases likebestoropusplan/effort— sets reasoning depth:low,medium,high,xhigh,max(session-only), orauto/permissions— manages what Claude can do without asking/config— opens the settings menu/theme(new in v2.1.118) — creates and switches between named custom themes. Themes are stored as JSON files in~/.claude/themes/and can also be hand-edited directly./tui— switches between classic and flicker-free fullscreen rendering mid-conversation. Also available as atuisetting./focus— toggles focus view for distraction-free input./fewer-permission-prompts— scans your recent transcripts for common read-only Bash and MCP tool calls, then proposes an allowlist to add to.claude/settings.jsonto reduce future permission prompts.
Diagnostics help when something isn’t working.
/cost— shows session cost, duration, code changes, and token usage/usage-credits(new in v2.1.144) — view and manage usage credits on your account. Renamed from/extra-usage; the old name still works./status— shows version, model, and account info/doctor— checks installation health/diff— opens an interactive viewer for uncommitted changes, useful for reviewing what Claude has done before committing
Pre-ship reviews check your work before it leaves your branch.
/code-review— reviews the current diff for correctness bugs and reports findings without editing files. Accepts an effort level (/code-review highreturns broader coverage;/code-review lowreturns fewer, higher-confidence findings) and--commentto post findings as inline comments on the current GitHub PR. Pass a path or PR reference to review a specific target. This is the bundled skill (formerly/simplifybefore v2.1.147);/code-review --fixapplies the findings to your working tree. From v2.1.154,/simplifyis a separate cleanup-only skill that applies fixes without hunting for bugs — use/code-reviewto find bugs./code-review ultra— runs a deep, multi-agent code review in a cloud sandbox using parallel analysis and critique. With no arguments it reviews your current branch; pass a PR number (/code-review ultra 123) to fetch and review a GitHub PR./ultrareviewis an alias. Pro and Max include a few free runs, after which it draws on usage credits./review— read-only deeper pass on the change set/security-review— security-focused review of pending changes
/context
/compact keep the auth refactor plan
/model opus
/effort high
/cost
/code-review high
/code-review --comment