Slash commands

Introduction

Claude Code is Anthropic's AI coding agent for the terminal. This sheet lists every slash command it accepts.

Conversation

CommandDescription
/helpShow commands and shortcuts
/clearStart with empty context
/compactSummarize to free context
/contextShow context-window usage
/copyCopy the last response
/btwAsk a side question
/recapSummarize the session
/renameRename the session
/colorSet the prompt bar color
/exitExit the CLI (/quit)
/stopStop the attached session

See: Commands

Planning

CommandDescription
/planEnter plan mode
/goalWork until a condition is met
/branchBranch the conversation here

Plan mode writes a plan before it edits. See: Permission modes

History

CommandDescription
/resumeResume a previous conversation
/rewindRestore code and conversation
/exportExport the conversation as text

/resume opens the picker; pass an ID or name to skip it. See: Checkpointing

Review and background

Review

CommandDescription
/diffReview working-tree changes
/code-reviewReview the diff, a PR, or a path
/reviewAlias of /code-review
/security-reviewScan changes for vulnerabilities
/simplifyApply cleanup findings
/ultrareviewDeep multi-agent cloud review
/autofix-prWatch a PR and push fixes

/code-review also takes an effort level and --fix. See: Review locally with /code-review

Background work

CommandDescription
/backgroundDetach this session as an agent
/forkCopy it into a background session
/subtask <task>Run a task in a forked subagent
/tasksShow background work
/batchFan work across worktrees
/loopRepeat a prompt on a schedule
/scheduleManage cloud scheduled tasks
/workflowsWatch running workflows

See: Agent view

Settings and usage

Usage

CommandDescription
/statusShow version, model, account
/usageShow cost and plan limits
/costAlias of /usage
/statsAlias of /usage, stats tab
/insightsAnalyze your recent sessions
/release-notesBrowse the changelog
/rate-limit-optionsOptions when a limit hits
/usage-creditsConfigure usage credits
/upgradeUpgrade your plan
/passesShare a free week

See: Costs

Settings

CommandDescription
/configOpen settings or set a value
/modelSwitch the AI model
/effortSet reasoning effort
/fastToggle fast mode
/advisorEnable the advisor tool
/autocompactSet the auto-compact window
/output-styleSwitch output styles
/themeChange the color theme
/tuiPick the terminal renderer
/focusToggle the focus view
/statuslineConfigure the status line
/keybindingsEdit keyboard shortcuts
/terminal-setupInstall a Shift+Enter binding
/scroll-speedAdjust mouse scroll speed
/voiceToggle voice dictation
/sandboxToggle sandbox mode

See: Settings

Account

CommandDescription
/loginSign in
/logoutSign out
/privacy-settingsView privacy settings
/feedbackSend feedback
/bugReport a bug with context
/mobileShow the mobile app QR code
/desktopContinue in the Desktop app
/teleportPull a cloud session down
/remote-envPick a cloud environment
/restartRestart and resume the session

See: Commands

Project and integrations

Project

Files and memory

CommandDescription
/initGenerate a starter CLAUDE.md
/memoryEdit memory files
/add-dirAdd a working directory
/cdMove the session directory
/permissionsAllow, ask, and deny rules
/hooksView hook configurations

Extensions

CommandDescription
/mcpManage MCP connections
/pluginManage plugins
/reload-pluginsApply plugin changes
/agentsCreate or manage subagents
/skillsList and filter skills
/reload-skillsRescan skill directories
/doctorRun a setup checkup
/debugDiagnose runtime issues
/importImport another agent's setup
/ideManage IDE integrations
/chromeConfigure Chrome integration

See: Memory

Integrations

CommandDescription
/install-github-appInstall the Claude GitHub App
/install-slack-appInstall the Claude Slack app
/web-setupConnect GitHub for cloud sessions
/remote-controlControl from claude.ai
/setup-bedrockConfigure Amazon Bedrock
/setup-vertexConfigure Google Cloud
/team-onboardingGenerate a team onboarding guide
/list-agentsList messageable sessions

See: Claude Code on the web

Bundled skills

CommandDescription
/runLaunch and drive your app
/verifyProve a change works
/run-skill-generatorTeach /run your project
/deep-researchResearch with cited sources
/datavizDesign charts and dashboards
/designDraft UI artboards
/slidesBuild a presentation
/claude-apiLoad Claude API reference
/claude-in-chromeDrive a task in the browser
/update-configApply a settings change
/fewer-permission-promptsBuild an allowlist
/artifactsList and attach artifacts

Type / to see every skill your install ships. See: Skills

Also see

0 Comments for this cheatsheet. Write yours!