Claude Code slash commands

Every documented Claude Code slash command in one place, 43 in total, with what each one does, examples, and aliases. Bookmark it as a cheat sheet, then memorize them with /cards.

Drill these in /cardsCatalog version 2026-05-18.1

Built-in commands (35)

/help

Added in v0.1.0

Show help for Claude Code

Displays a list of available commands, keyboard shortcuts, and pointers to documentation.

Show top-level help
/help

/clear

Added in v0.1.0

Clear the conversation history

Wipes the current conversation transcript and starts a fresh session in the same project.

Clear and start fresh
/clear

Local state like CLAUDE.md is preserved.

/compact

Added in v0.1.0

Compress conversation history to save tokens

Summarizes the prior conversation into a condensed form so you can keep working without hitting context limits.

Compact the current session
/compact

Can be run with custom instructions for what to keep.

/resume

Added in v0.1.0

Resume a previous conversation

Lists prior sessions in the current project and lets you pick one to resume.

Open the picker
/resume

/model

Added in v0.1.0

Switch which Claude model is active

Choose the Claude model used for this session, e.g. an Opus variant for harder work or a Haiku variant for speed.

Open the model picker
/model

/config

Added in v0.1.0

View or update Claude Code settings

Opens the configuration UI for things like default editor, theme, telemetry, and other user-level settings.

Open settings
/config

For automated/programmatic changes prefer editing settings.json directly.

/init

Added in v0.1.0

Initialize a new CLAUDE.md for the project

Scans the current codebase and produces a CLAUDE.md scaffold with project layout, commands, and conventions.

Generate CLAUDE.md
/init

/review

Added in v0.1.0

Review a pull request

Performs a code review on a GitHub pull request, summarizing the diff and flagging issues.

Review by PR number
/review 1234

/security-review

Added in v0.1.0

Run a security review of pending changes

Audits the diff on the current branch for security issues like injection, secrets, and OWASP-style vulnerabilities.

Audit current branch
/security-review

/pr_comments

Added in v0.1.0

Show comments on a GitHub pull request

Fetches and displays the review comments on a GitHub PR so you can address them.

List PR comments
/pr_comments 1234

/cost

Added in v0.1.0

Show token usage and cost for the session

Displays cumulative token usage and estimated API cost for the current session.

Print session cost
/cost

/status

Added in v0.1.0

Show Claude Code status

Prints the current version, model, working directory, and other diagnostic info about the session.

Print status
/status

/login

Added in v0.1.0

Sign in to your Anthropic account

Authenticates the local Claude Code installation against your Anthropic account so API calls are billed correctly.

Sign in
/login

/logout

Added in v0.1.0

Sign out of your Anthropic account

Clears local credentials. You'll need to /login again before sending API requests.

Sign out
/logout

/doctor

Added in v0.1.0

Diagnose Claude Code installation issues

Runs a series of environment and connectivity checks to help identify why Claude Code might not be working.

Diagnose problems
/doctor

/memory

Added in v0.1.0

Edit project memory (CLAUDE.md files)

Opens an editor on the project's CLAUDE.md and any nested CLAUDE.md files used as long-lived instructions.

Open memory editor
/memory

/add-dir

Added in v0.1.0

Add a directory to the working set

Makes another directory available to Claude Code in this session, useful for monorepos.

Add a sibling repo
/add-dir ../other-repo

/agents

Added in v0.1.0

Manage and switch between subagents

Lists registered subagents and lets you create or activate one. Subagents are specialized helpers like code review or planning.

Manage agents
/agents

/bug

Added in v0.1.0

Report a bug to Anthropic

Opens a bug-report flow that bundles relevant context like version and platform with your description.

File a bug
/bug

/feedback

Added in v0.1.0

Submit feedback about Claude Code

Sends free-form feedback to Anthropic about the Claude Code experience.

Send feedback
/feedback

/vim

Added in v0.1.0

Toggle Vim mode for input

Enables modal Vim-style editing in the Claude Code input box.

Toggle vim mode
/vim

/hooks

Added in v0.1.0

Manage hooks configuration

Hooks are shell commands the harness runs in response to events. This command opens the hooks editor.

Open hooks editor
/hooks

Hooks are persisted in settings.json.

/mcp

Added in v0.1.0

Manage Model Context Protocol servers

Lists, adds, or removes MCP servers — external processes that provide tools and resources to Claude Code.

Manage MCP servers
/mcp

/permissions

Added in v0.1.0

View or edit tool permissions

Lists which tools Claude Code is allowed to invoke without prompting and lets you adjust the allowlist.

Open permissions UI
/permissions

/release-notes

Added in v0.1.0

View Claude Code release notes

Opens the changelog for the currently installed Claude Code version.

Show release notes
/release-notes

/upgrade

Added in v0.1.0

Upgrade Claude Code to the latest version

Checks for a newer Claude Code release and installs it in place.

Aliases: /update

Upgrade now
/upgrade

/export

Added in v0.1.0

Export the current conversation

Saves the current transcript to a file so you can share, archive, or post-process it.

Export to a file
/export

/terminal-setup

Added in v0.1.0

Set up terminal integration

Configures your terminal so Claude Code can detect window context and support multi-line input.

Run terminal setup
/terminal-setup

/ide

Added in v0.1.0

Connect Claude Code to your IDE

Pairs Claude Code with VS Code, JetBrains, or another supported IDE so they share state.

Connect IDE
/ide

/context

Added in v0.1.0

Show what's currently in your context window

Prints the files, tools, and memory entries currently loaded into the model's context.

Show context
/context

/statusline

Added in v0.1.0

Configure the status line

Sets the command that produces the persistent status-line content at the bottom of Claude Code.

Configure status line
/statusline

/todos

Added in v0.1.0

View the current task list

Shows the in-session todo list Claude Code is tracking for the current task.

Show todos
/todos

/usage

Added in v0.1.0

Show recent token usage and limits

Displays your recent API usage, rate-limit status, and remaining budget.

Show usage
/usage

/migrate-installer

Added in v0.1.0

Migrate to the native Claude Code installer

Migrates a legacy npm-based Claude Code install to the new native installer.

Migrate installer
/migrate-installer

/exit

Added in v0.1.0

Quit Claude Code

Ends the current Claude Code session and returns you to the shell.

Aliases: /quit

Quit
/exit

Plugin commands (8)

/loop

Run a prompt on a recurring interval

Schedules a slash command or prompt to be re-run on a cron-style cadence or self-paced loop.

Every five minutes
/loop 5m /status
Self-paced loop
/loop /babysit-prs

From the superpowers plugin.

/schedule

Schedule a recurring remote agent

Creates a cron-style schedule that runs a remote Claude Code agent on a routine.

Daily at 9 AM
/schedule 'daily at 9am' /status

Powered by remote-agent infrastructure.

/commit

Organize changes into logical commits

Groups staged and unstaged changes into a series of conventional commits, asking for confirmation before committing.

Commit current work
/commit

User-defined or plugin-provided; not built in.

/pr

Build, commit, and open a pull request

Bundles outstanding changes into logical commits, pushes the branch, and opens a GitHub PR with a summary.

Ship the branch
/pr

/push

Push the current branch to remote

Pushes the current Git branch, setting upstream tracking if needed.

Push to origin
/push

/branch

Create a new Git branch from a description

Formats your description into a clean conventional branch name and creates the branch.

New feature branch
/branch onboarding redesign

/init-skill

Experimental

Bootstrap a new skill file

Scaffolds a new skill (Markdown + frontmatter) in the appropriate skills directory.

New skill
/init-skill my-helper

Part of the writing-skills workflow.

/ultrareview

Multi-agent cloud code review

Runs a fleet of parallel reviewer agents against the current branch or a GitHub PR, then synthesizes their findings.

Review current branch
/ultrareview
Review GitHub PR
/ultrareview 1234

Billed per run; user-triggered only.

Make them stick

A list you scan is a list you forget

/cards turns this catalog into a quiz so the right command comes to mind in your editor, not on this page.

FAQ

Questions, answered

How many slash commands does Claude Code have?+
This reference lists 43 documented Claude Code slash commands, spanning built-in and plugin commands. Claude Code's command set grows over time, so the list is kept current as new releases ship.
What is the fastest way to learn Claude Code slash commands?+
Spaced repetition. Reviewing a small deck a little each day moves commands from "I have to look it up" to instant recall. /cards for Claude Code is a flashcards app built for exactly this.
Where is the official Claude Code slash command documentation?+
The official Claude Code documentation is the source of truth for exact, current syntax. This page is an independent reference and is not affiliated with Anthropic.