Slash commands
Introduction
Claude Code is Anthropic's AI coding agent for the terminal. This sheet lists every slash command it accepts.
- Commands (code.claude.com)
- Interactive mode (code.claude.com)
- Skills (code.claude.com)
Conversation
| Command | Description |
|---|---|
/help | Show commands and shortcuts |
/clear | Start with empty context |
/compact | Summarize to free context |
/context | Show context-window usage |
/copy | Copy the last response |
/btw | Ask a side question |
/recap | Summarize the session |
/rename | Rename the session |
/color | Set the prompt bar color |
/exit | Exit the CLI (/quit) |
/stop | Stop the attached session |
See: Commands
Planning
| Command | Description |
|---|---|
/plan | Enter plan mode |
/goal | Work until a condition is met |
/branch | Branch the conversation here |
Plan mode writes a plan before it edits. See: Permission modes
History
| Command | Description |
|---|---|
/resume | Resume a previous conversation |
/rewind | Restore code and conversation |
/export | Export the conversation as text |
/resume opens the picker; pass an ID or name to skip it. See: Checkpointing
Review and background
Review
| Command | Description |
|---|---|
/diff | Review working-tree changes |
/code-review | Review the diff, a PR, or a path |
/review | Alias of /code-review |
/security-review | Scan changes for vulnerabilities |
/simplify | Apply cleanup findings |
/ultrareview | Deep multi-agent cloud review |
/autofix-pr | Watch a PR and push fixes |
/code-review also takes an effort level and --fix. See: Review locally with /code-review
Background work
| Command | Description |
|---|---|
/background | Detach this session as an agent |
/fork | Copy it into a background session |
/subtask <task> | Run a task in a forked subagent |
/tasks | Show background work |
/batch | Fan work across worktrees |
/loop | Repeat a prompt on a schedule |
/schedule | Manage cloud scheduled tasks |
/workflows | Watch running workflows |
See: Agent view
Settings and usage
Usage
| Command | Description |
|---|---|
/status | Show version, model, account |
/usage | Show cost and plan limits |
/cost | Alias of /usage |
/stats | Alias of /usage, stats tab |
/insights | Analyze your recent sessions |
/release-notes | Browse the changelog |
/rate-limit-options | Options when a limit hits |
/usage-credits | Configure usage credits |
/upgrade | Upgrade your plan |
/passes | Share a free week |
See: Costs
Settings
| Command | Description |
|---|---|
/config | Open settings or set a value |
/model | Switch the AI model |
/effort | Set reasoning effort |
/fast | Toggle fast mode |
/advisor | Enable the advisor tool |
/autocompact | Set the auto-compact window |
/output-style | Switch output styles |
/theme | Change the color theme |
/tui | Pick the terminal renderer |
/focus | Toggle the focus view |
/statusline | Configure the status line |
/keybindings | Edit keyboard shortcuts |
/terminal-setup | Install a Shift+Enter binding |
/scroll-speed | Adjust mouse scroll speed |
/voice | Toggle voice dictation |
/sandbox | Toggle sandbox mode |
See: Settings
Account
| Command | Description |
|---|---|
/login | Sign in |
/logout | Sign out |
/privacy-settings | View privacy settings |
/feedback | Send feedback |
/bug | Report a bug with context |
/mobile | Show the mobile app QR code |
/desktop | Continue in the Desktop app |
/teleport | Pull a cloud session down |
/remote-env | Pick a cloud environment |
/restart | Restart and resume the session |
See: Commands
Project and integrations
Project
Files and memory
| Command | Description |
|---|---|
/init | Generate a starter CLAUDE.md |
/memory | Edit memory files |
/add-dir | Add a working directory |
/cd | Move the session directory |
/permissions | Allow, ask, and deny rules |
/hooks | View hook configurations |
Extensions
| Command | Description |
|---|---|
/mcp | Manage MCP connections |
/plugin | Manage plugins |
/reload-plugins | Apply plugin changes |
/agents | Create or manage subagents |
/skills | List and filter skills |
/reload-skills | Rescan skill directories |
/doctor | Run a setup checkup |
/debug | Diagnose runtime issues |
/import | Import another agent's setup |
/ide | Manage IDE integrations |
/chrome | Configure Chrome integration |
See: Memory
Integrations
| Command | Description |
|---|---|
/install-github-app | Install the Claude GitHub App |
/install-slack-app | Install the Claude Slack app |
/web-setup | Connect GitHub for cloud sessions |
/remote-control | Control from claude.ai |
/setup-bedrock | Configure Amazon Bedrock |
/setup-vertex | Configure Google Cloud |
/team-onboarding | Generate a team onboarding guide |
/list-agents | List messageable sessions |
Bundled skills
| Command | Description |
|---|---|
/run | Launch and drive your app |
/verify | Prove a change works |
/run-skill-generator | Teach /run your project |
/deep-research | Research with cited sources |
/dataviz | Design charts and dashboards |
/design | Draft UI artboards |
/slides | Build a presentation |
/claude-api | Load Claude API reference |
/claude-in-chrome | Drive a task in the browser |
/update-config | Apply a settings change |
/fewer-permission-prompts | Build an allowlist |
/artifacts | List and attach artifacts |
Type / to see every skill your install ships. See: Skills
Also see
- Claude Code cheatsheet
- Commands (code.claude.com)
- Skills (code.claude.com)
- Interactive mode (code.claude.com)
- Agent view (code.claude.com)
0 Comments for this cheatsheet. Write yours!