Tab to accept one. Most .claude/ configuration isn't discovered from the added directory. You can't add most network paths, such as \\server\share. After a successful add, your DirectoryAdded hooks run. When you run it while Claude is responding, Claude Code asks you to confirm the directory right away, and once you confirm, Claude's next tool call in the same turn can access it. Before v2.1.234, Claude Code queued the command until the turn finishedfable, opus, sonnet, or a full model ID. fable requires Fable access. Without an argument, opens a picker. In a session without an interactive terminal, or over Remote Control, pass the model or off as an argument; with no argument there, the command prints the current advisor as text. These forms require Claude Code v2.1.260 or later.claude/agents/ or ~/.claude/agents/ directly. On v2.1.197 and earlier, opens an interactive interface for creating and managing subagent configurationsautoMode.environment entries from your project and recent sessions, then review the draft and save it to your user settings. On a Pro, Max, Ultra, or Team plan, requires Claude Code v2.1.228 or later, or v2.1.233 or later on native Windows. On an Enterprise plan or with a Claude Console API key, requires v2.1.283 or later. If the command is missing, see /auto-mode-setup returns "Unknown command"500k, or auto to return to the window tuned for your model. Claude Code saves the value to user settings and applies it to the current session. See Set the auto-compact window for accepted values and what overrides it. Without an argument, opens a dialog that shows the current window. Requires Claude Code v2.1.221 or latergh pr view; to watch a different PR, check out its branch first. By default the cloud session is told to fix every CI failure and review comment; pass a prompt to give it different instructions, for example /autofix-pr only fix lint and type errors. Requires the gh CLI and access to cloud sessionsclaude agents. To copy the conversation into a new background session while this one keeps running, use /fork. Alias: /bgWorktreeCreate hook that creates the worktrees. Outside a git repository, /batch requires Claude Code v2.1.281 or later. Example: /batch migrate src/ from JavaScript to TypeScript/resume. To run a copy as a separate background session instead of switching into it, use /fork; to hand a side task to a subagent that reports back into this conversation, use /subtask/btw without a question, Claude Code shows your most recent side question so you can browse earlier answers; if you haven't asked one yet, Claude Code prints a usage line~/.claude/feedback-bundles/ that you forward yourself. In the VS Code extension, /bug opens the extension's own feedback dialog instead; requires Claude Code v2.1.229 or later. When you run it while Claude is responding, Claude Code opens the dialog immediately. Before v2.1.232, Claude Code queued the command until the turn finished. Alias: /share. Before v2.1.212, /bug and /share were aliases of /feedbackTab to accept one. For what Claude Code applies from the new directory as soon as you move, and how /cd differs from /add-dir, see Move the session to another directoryanthropic or @anthropic-ai/sdk. For what each subcommand does and the version it requires, see Work on Claude API projectsclaude --chrome, or when Claude Code can offer to install the extension/resume picker. To free up context while continuing the same conversation, use /compact instead. Resume the previous conversation with /resume, or, in the same Claude Code process, restore it from the rewind menu's previous-session entry. Aliases: /reset, /new--fix to have Claude apply the findings, --comment to post them on the GitHub PR or GitLab merge request, or ultra to run a deep cloud review. Posting to a GitLab merge request requires Claude Code v2.1.257 or later. With ultra on a github.com PR target, pass --post to preselect posting the finished findings to the PR in the launch dialog; --post requires Claude Code v2.1.227 or later. See Review locally with /code-review for the effort levels, targeting, and how it relates to /simplify. Alias: /reviewred, blue, green, yellow, purple, orange, pink, cyan. Use default to reset, or run with no argument to pick a random color. When Remote Control is connected, the color syncs to claude.ai/code. Also available in non-interactive mode (-p)key=value pairs to set a setting directly without opening the interface, for example /config thinking=false, /config theme=dark, or /config model=sonnet. The key=value form also works in non-interactive mode (-p) and from the Claude mobile app via Remote Control. The key=value form can't turn on a setting that needs your confirmation in the panel, such as autoContinueAtUsageLimit, though it can turn one off. Run /config --help to list the keys it accepts. Alias: /settings/context collapses the per-item breakdown to keep the grid visible. Pass all to expand itN to copy the Nth-latest response: /copy 2 copies the second-to-last. When code blocks or blockquotes are present, shows an interactive picker to select individual blocks or the full response. Press w in the picker to write the selection to a file instead of the clipboard, which is useful over SSH/usageclaude --debug, so running /debug mid-session starts capturing logs from that point forward. Optionally describe the issue to focus the analysis/design a settings screen for a mobile banking app. You edit the artboards in a desktop browser, and your edits save automatically. You can export each artboard as PNG or PDF. Requires Claude Code v2.1.265 or later, a session where artifacts are available, and an account where the Design template is available; if your organization has turned that template off, /design doesn't draft designs. Available on the Anthropic API. On Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, and Claude Platform on AWS, artifacts aren't available, so the command is unavailable there/design consent, type it at the Claude Code prompt yourself/design-sync with your claude.ai account. Sign in with /design-login whenever /design-sync or /design consent tells you to. This sign-in is for the standalone Claude Design site at claude.ai/design, which closes by December 14, 2026; see Migrate from standalone Claude Design to Claude/design-sync Acme DS. A first-time sync verifies every component and can take a few hours on a large repo. Available on the Anthropic API. It needs claude.ai, which the CLI doesn't contact on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, or Claude Platform on AWS, or through a Claude apps gateway. The command is unavailable there. This command uploads to the standalone claude.ai/design site, which closes by December 14, 2026; see Migrate from standalone Claude Design to Claude/appCLAUDE.md problems and proposes fixes that Claude applies after you confirm. For what the checkup covers, or to audit your instructions with prompt-audit instead, see Check your setup with /doctor. The prompt-audit subcommand requires Claude Code v2.1.283 or later. Alias: /checkuplow to xhigh, max, or auto; status prints it. ultracode or ultracode on turns ultracode on for the session, and ultracode off turns it off; the ultracode key persists. max is session-only. The on and off arguments require Claude Code v2.1.284 or later. If you run /effort while Claude is working, see when the new level starts. Works in -p on v2.1.205 or later/quit-p is limited; see Toggle fast mode/bug, with the same consent step, sending rules, and mid-turn behavior. In sessions with Claude-drafted feedback, /feedback with no argument opens the drafts queue instead, where you review, edit, send, or discard the drafts Claude queued; the queue includes an option to write a new report in the dialog. With an argument, and for /bug always, the dialog opens directly.claude/settings.json to reduce permission promptsviewMode in settings to override it. Only available in fullscreen rendering. From a Remote Control client, run /focus [on|off] to turn the focus view on or off for the current session only, without changing your saved selection; this requires Claude Code v2.1.281 or later. The VS Code extension offers its own Focus view as a command-menu toggle, stored as an extension setting, independent of viewMode/subtask; to switch into a copy yourself, use /branch. When agent view is turned off, /fork starts a forked subagent insteadclear, stop, off, reset, none, or cancel removes an active goal early~/Desktop, or your home directory on Linux without a Desktop folder, for diagnosing high memory usage. Attach only the -diagnostics.json file when reporting a memory issue; the .heapsnapshot contains your full conversation and credentials, so don't share it. Hidden from the command menu; type it in full. See what to do with the output-p, /import lists what it found and gives you the command that confirms the import. Add --dry-run to preview without writing anything, or --yes to skip the interactive picker. Not available on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, or Claude Platform on AWS, or through a Claude apps gateway. Also unavailable when you turn off feature-flag fetching. Importing from Cursor requires v2.1.265 or laterCLAUDE.md guide. Set CLAUDE_CODE_NEW_INIT=1 for an interactive flow that also walks through skills, hooks, and personal memory files. If /init finds OpenAI Codex or Google Gemini CLI configuration, it offers to carry it over with /import/peers. Requires Claude Code v2.1.224 or later; earlier versions report Unknown command: /list-agents. Teammate rows and the first line showing this session's own name require v2.1.239 or later. Available only in sessions where cross-session messaging is enabledloop.md. Example: /loop 5m check if the deploy finished. See Run prompts on a schedule. Alias: /proactivereconnect, enable, or disable with a server name or all to change connection state without opening it. reconnect all retries every server that failed or needs authentication. In non-interactive mode (-p), running it with no argument prints a text summary of server status instead of opening the listCLAUDE.md files, enable or disable auto memory, and view auto memory entries/ios, /androids on a row to switch for the current session only. See when the new model starts. Before v2.1.242, it could wait. With -p, pass a model argument, which isn't saved as your default; requires v2.1.205 or later/output-style concise. See Change your output style. Requires Claude Code v2.1.269 or later/allowed-tools/plan fix the auth buglist, install, enable, or disable to act directly. Claude Code can activate a plugin during the install; the install summary tells you whether it did or whether to run /reload-pluginsgh CLI--force. Also available in non-interactive mode (-p), the Agent SDK, and the desktop app, where it runs only on input typed directly into the session and doesn't apply plugin MCP server changes; requires Claude Code v2.1.260 or later. See Apply plugin changes without restarting/rc-p). From every rename surface, including claude.ai and the desktop app, Claude Code replaces control and invisible characters in the new name with spaces and caps the name at 200 characters. If the name is empty once invisible characters are removed, Claude Code rejects it and shows That name is empty once invisible characters are removed. Usage: /rename <name>. The character replacement and length cap require Claude Code v2.1.221 or later/updatebg. Resuming one that is still running, from the picker or by ID or name, opens that session: your current conversation moves to the background and this terminal attaches to the running one. Press ← on an empty prompt to return to agent view, which also lists the conversation you left. Before v2.1.285, Claude Code refused and told you to open the session with claude attach or stop it first. Alias: /continue/code-review: reviews the current diff, or a PR number, branch, or path you pass, such as /review 1234, and takes the same effort levels and flags. With no level given, the review reuses the last low through max level you typed; see Review locally with /code-review for the exact rules. For a deep cloud review, use /code-review ultra. Before v2.1.223, /review was a separate command that ran a single-pass, read-only review of a GitHub pull request by number, listing open PRs to pick from when run with no argument; from v2.1.186 through v2.1.201, it ran the same multi-agent engine as /code-review medium/checkpoint, /undo/run and /verify how to build, launch, and drive your project's app from a clean environment by writing a per-project skill/routinesorigin remote; if the review fails with an ambiguous argument error, see the error referenceCLAUDE_CODE_USE_BEDROCK=1 is set; type it in full. First-time Amazon Bedrock users can also access this wizard from the login screenCLAUDE_CODE_USE_VERTEX=1 is set; type it in full. First-time Google Cloud's Agent Platform users can also access this wizard from the login screen/code-review to find bugs. Pass a path or PR reference to review a specific targett to sort by token count, Space or Enter to cycle a skill's visibility to Claude and the / menu, and Esc to save and close. You can't cycle plugin skills, skills whose frontmatter sets disable-model-invocation: true, or skills with a skillOverrides entry in managed settings or the --settings flag/slides a quarterly review of the platform team. Requires Claude Code v2.1.265 or later, a session where artifacts are available, and an account where the Slides template is available; otherwise the command doesn't appear. Available on the Anthropic API. On Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, and Claude Platform on AWS, artifacts aren't available, so the command is unavailable there/usage. Opens on the Stats tabSession kind row reads background job · attached or background job · unattended in a background session, depending on whether a terminal is attached, and interactive in any other session. Before v2.1.221, /status didn't show this row. Works while Claude is responding/exit or press ←/fork. When agent view is turned off, /subtask isn't available and /fork spawns the forked subagent instead/bashes/tp. Requires a claude.ai subscription/copy worksauto option that matches your terminal's light or dark background, light and dark variants, colorblind-accessible (daltonized) themes, ANSI themes that use your terminal's color palette, and any custom themes from ~/.claude/themes/ or plugins. Select New custom theme… to create onefullscreen enables the flicker-free alt-screen renderer. With no argument, prints the active renderer/code-review ultra, and /ultrareview is an alias. Includes 3 free runs on Pro, Max, and Ultra, then requires usage creditssettings.json file. For options such as theme and model, use /config instead/cost and /stats are aliases/extra-usage/config → Editor modegh CLI credentialsUsing slash commands
Type / in the Claude Code prompt to open the menu. Commands take arguments after a space, such as /model opus or /compact focus on the failing tests. Arguments in angle brackets are required and ones in square brackets are optional.
Your own commands live in .claude/skills/ for a project or ~/.claude/skills/ for every project. Plugins add namespaced commands like /plugin-name:command. Browse thousands of community skills in the skills directory.
Frequently asked questions
How do I see all slash commands in Claude Code?
Type / at the start of the prompt to open the command menu, then keep typing to filter it. The menu also lists your own commands, skills, plugin commands and MCP prompts. This page lists the built-in ones with a full description of each.
What is the difference between a slash command and a skill?
Built-in commands such as /compact or /model are coded into Claude Code. Skills are SKILL.md files that Claude can also run on its own when they are relevant; some ship with Claude Code (marked Skill here) and you can write your own in .claude/skills/. Custom commands in .claude/commands/ still work and behave like skills.
How do I create a custom slash command?
Create .claude/skills/<name>/SKILL.md (or the older .claude/commands/<name>.md) with a description in the frontmatter and the instructions in the body. It shows up as /<name>. Use the SKILL.md validator on this site to check the frontmatter.
What does /compact do?
/compact summarises the conversation so far and replaces it with the summary, freeing up context window space while keeping the important details. You can pass instructions, for example /compact keep the API design decisions.
Sources: Claude Code commands reference. Claude Code Agents is an independent site, not affiliated with Anthropic.