Post
Claude Code slash commands: my cheat sheet, rechecked
The Claude Code slash commands worth knowing, grouped by what you're doing. Checked against the official docs for v2.1.294.
My Notion list of Claude Code commands, checked line by line against the official docs for v2.1.294.
If you only learn six
/initcreates a starterCLAUDE.mdfor the project. Once per project is enough./planshows what Claude intends to touch before it touches anything./compactsummarizes the conversation to free up context. It costs tokens itself, so don’t wait until you’re out of room./clearstarts fresh. The old session isn’t lost;/resumebrings it back./rewindrolls code and conversation back to an earlier checkpoint. It can even restore what was there before a/clear./usageshows what the session cost and where you stand against your plan limits.
Context and conversation
/context [all]draws your context usage as a colored grid, the quickest way to decide when to compact./btw [question]asks a side question without adding it to the conversation. With no question, it shows your earlier ones./recapgives a one-line summary of the session./export [file]saves the conversation as plain text./copy [N]copies the last response, or the Nth-latest, with a picker for individual code blocks./rename [name]names the session. Leave the name out and it makes one up./autocompact [auto|tokens]sets how full the context gets before it compacts on its own, e.g.500k. Remembered per model./focushides the noise: your last prompt, a one-line tool summary and the final answer./output-style [style]lists or switches output styles.
Models and effort
/model [model]switches model and saves it as the default. Presssin the picker to switch for this session only./effort [level|auto|status]sets how hard it thinks:low,medium,high,xhigh,maxorauto.maxdoesn’t persist past the session./effort ultracode [on|off]adds automatic workflow orchestration on top of deep reasoning./advisor [model|off]lets a second model weigh in at key moments./fast [on|off]toggles fast mode.
Working on its own
/goal [condition|clear]keeps Claude going until a condition is true, like “tests pass”. With no argument it shows the current goal./loop [interval] [prompt]repeats a prompt while the session is open, e.g./loop 5m check if the deploy finished. Skip the interval and Claude paces itself./workflowsopens the progress view for running workflows, where you can pause, resume or save them.
Parallel agents
/background [prompt]detaches the session as a background agent (/bg)./taskslists what’s running./branch [name]forks the conversation so you can try another direction./resumetakes you back./fork [prompt]copies the conversation into a new background session and keeps you where you are./subtask <task>hands a side task to a background subagent that inherits the whole conversation and reports back into this one./batch <instruction>breaks a big change into 5–30 independent pieces and runs a subagent per piece in its own worktree. You approve the plan first./list-agentsshows which subagents, teammates and sessions you can message, and the name to use for each (/peers)./deep-research <question>runs parallel web searches, cross-checks the sources and returns a cited report./schedulesets up cloud routines (/routines), and/autofix-prwatches your branch’s PR and fixes CI failures and review comments.
Reviewing and shipping
/diffis an interactive viewer for uncommitted changes and per-turn diffs./code-review [level] [--fix] [--comment] [--max-findings n|all|default] [target]looks for bugs and cleanups.--fixapplies what it finds,--commentposts to the PR, andultraruns the deep cloud review. Your--max-findingschoice sticks until you set it back todefault./reviewis an alias./simplify [target]cleans up changed code for reuse, simplicity and efficiency. It doesn’t hunt bugs./security-reviewis a read-only security pass over the pending changes./ultrareview [PR]is the same as/code-review ultra. Pro and Max get three free runs.
Sessions
/resume [session]reopens an older conversation by ID, name or picker./stopstops a background session you’re attached to. The transcript and worktree stay./exitleaves the CLI. Inside a background session it only detaches.
Settings, permissions and memory
/configis the settings screen (theme, model, editor mode). It also takeskey=value, e.g./config theme=dark./permissionsmanages allow, ask and deny rules./fewer-permission-promptsscans your transcripts and builds an allowlist from the read-only calls you keep approving./update-config [request]takes a plain description, like “allownpm test”, and edits the rightsettings.json./memoryedits yourCLAUDE.mdfiles and auto-memory./hooksshows your hooks./add-dir <path>lets Claude read another directory without moving the session./cd <path>actually moves it./import [codex|gemini|cursor]brings over instruction files, MCP servers, commands, subagents and skills from those tools. Add--dry-runto preview./team-onboardingwrites a getting-started guide for a teammate from your last 30 days of usage./auto-mode-setupdraftsautoMode.environmententries from your project and recent sessions, and saves them after you review./sandboxtoggles sandbox mode where the platform supports it.
Skills, plugins and MCP
/skillslists skills.tsorts by token cost./skill-doctorshows what each skill costs in context and how often it’s used, so you can switch off the dead weight./reload-skillsand/reload-pluginspick up changes without a restart./pluginmanages plugins./runstarts your app and drives it to see a change actually work, and/verifygoes further and checks the behavior, not just the tests./run-skill-generatorwrites the project skill they rely on./mcpmanages MCP connections and OAuth./ideand/chromehandle the IDE and Claude in Chrome./plugin-authoringwrites a mod, a plugin that changes Claude Code from the inside. Mods have their own post.
Custom commands are written as skills (.claude/skills/). Old files in .claude/commands/ still work, and if a skill and a command share a name, the skill wins.
Account and limits
/login,/logout./rate-limit-optionsis what you open when a usage limit blocks you: wait for the reset, add credits, or upgrade./usage-creditssets up credits (or requests them from your admin), and/upgradeopens the plan page./privacy-settingsis for your privacy options on Pro and Max.
Everything else
- Between devices:
/teleportpulls a web session into the terminal,/desktopcontinues in the desktop app,/mobileshows a QR code, and/remote-control(/rc) makes the session reachable from claude.ai. - Terminal and looks:
/terminal-setup(Shift+Enter),/theme,/statusline,/keybindings,/color,/voicefor dictation, and/tui fullscreenfor the flicker-free renderer. - Setup and diagnosis:
/doctorchecks your setup and proposes fixes you confirm first (/doctor prompt-auditchecks your instructions instead)./debugturns on debug logging./heapdumpwrites a memory snapshot, and only the-diagnostics.jsonfile is safe to share. The snapshot holds your whole conversation. - Cloud and apps:
/setup-bedrock,/setup-vertex,/install-github-app,/install-slack-app,/web-setup,/remote-env. - Bundled skills:
/claude-api,/dataviz,/design,/design-sync,/slides,/workflow-authoring. - Discovery:
/insightsbuilds a report on how you use Claude Code,/poweruphas short interactive lessons,/release-notesand/statusdo what they say, and/artifactslists your artifacts. - Odds and ends:
/bugand/feedback,/radio,/stickers,/passes.
If a command misbehaves, /help shows what your version actually has, and the official reference is the source of truth. Commands change almost every release.