/BUILT-IN-COMMANDS
Commands baked into Claude Code that execute fixed logic directly. Type `/` at the prompt to see them all, or type `/` followed by any letters to filter. Unlike [bundled skills](^Prompt-driven workflows like /simplify and /batch that use Claude's tools to orchestrate work. See
$ npx -y skills add LukeRenton/explore-claude-code --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/BUILT-IN-COMMANDS
Context preview
What this command does when you run it.
Commands baked into Claude Code that execute fixed logic directly. Type `/` at the prompt to see them all, or type `/` followed by any letters to filter. Unlike [bundled skills](^Prompt-driven workflows like /simplify and /batch that use Claude's tools to orchestrate work. See
Command definition
BUILT-IN-COMMANDS.mdBuilt-in Commands
Commands baked into Claude Code that execute fixed logic directly. Type `/` at the prompt to see them all, or type `/` followed by any letters to filter. Unlike [bundled skills](^Prompt-driven workflows like /simplify and /batch that use Claude's tools to orchestrate work. See the bundled skills section), built-in commands run immediately without agentic orchestration.
Not every command is visible to every user. Some depend on your platform, plan, or environment. For example, `/desktop` only appears on macOS and Windows, `/upgrade` is only available on Pro and Max plans, and `/terminal-setup` is hidden when your terminal already supports its keybindings.
In the tables below, `<arg>` means required and `[arg]` means optional.
Session Management
Control your conversation lifecycle, context, and history.
| Command | Purpose | |---|---| | `/clear` | Clear conversation history and free up context. Aliases: `/reset`, `/new` | | `/compact [instructions]` | Compress conversation to reclaim context, with optional focus instructions | | `/context` | Visualize current context usage as a coloured grid with optimization suggestions | | `/exit` | Exit the CLI. Alias: `/quit` | | `/fork [name]` | Create a fork of the current conversation at this point | | `/rename [name]` | Rename the current session. Without a name, auto-generates one from history | | `/resume [session]` | Resume a conversation by ID or name, or open the session picker. Alias: `/continue` | | `/rewind` | Rewind conversation and code to a previous point, or summarise from a message. Alias: `/checkpoint` |
Getting Information
View status, costs, diagnostics, and session data.
| Command | Purpose | |---|---| | `/btw <question>` | Ask a quick side question without adding to conversation history | | `/copy` | Copy the last response to clipboard. Shows a picker when code blocks are present | | `/cost` | Show token usage statistics for the current session | | `/diff` | Interactive diff viewer for uncommitted changes and per-turn diffs | | `/doctor` | Diagnose and verify your Claude Code installation and settings | | `/export [filename]` | Export conversation as plain text. With a filename, writes directly to file | | `/help` | Show help and available commands | | `/insights` | Generate a report analysing your sessions: project areas, patterns, friction points | | `/release-notes` | View the full changelog, most recent version first | | `/stats` | Visualise daily usage, session history, streaks, and model preferences | | `/status` | Show version, model, account, and connectivity info | | `/usage` | Show plan usage limits and rate limit status |
Configuration
Adjust settings, permissions, themes, and editor modes.
| Command | Purpose | |---|---| | `/config` | Open the settings interface for theme, model, output style, and preferences. Alias: `/settings` | | `/fast [on\|off]` | Toggle fast mode on or off | | `/keybindings` | Open or create your keybindings configuration file | | `/model [model]` | Select or change the AI model. Use left/right arrows to adjust effort level | | `/permissions` | View or update tool permissions. Alias: `/allowed-tools` | | `/plan` | Enter plan mode directly from the prompt | | `/sandbox` | Toggle sandbox mode (supported platforms only) | | `/statusline` | Configure the status line display | | `/terminal-setup` | Configure terminal keybindings for Shift+Enter and other shortcuts | | `/theme` | Change the colour theme. Includes light, dark, colourblind, and ANSI variants | | `/vim` | Toggle between Vim and Normal editing modes |
Project Setup
Initialise projects, manage directories, and configure memory.
| Command | Purpose | |---|---| | `/add-dir <path>` | Add a new working directory to the current session | | `/init` | Analyse your codebase and generate a starter `CLAUDE.md` | | `/memory` | Edit `CLAUDE.md` files, toggle auto-memory, and view memory entries |
Claude Code Ecosystem
Manage skills, agents, hooks, plugins, and MCP servers.
| Command | Purpose | |---|---| | `/agents` | Manage agent configurations | | `/hooks` | Manage hook configurations for tool events | | `/mcp` | Manage MCP server connections and OAuth authentication | | `/plugin` | Manage Claude Code plugins | | `/reload-plugins` | Reload all active plugins to apply changes without restarting | | `/skills` | List available skills |
Integrations
Connect Claude Code to external apps and services.
| Command | Purpose | |---|---| | `/chrome` | Configure Claude in Chrome settings | | `/desktop` | Continue the session in the Claude Code Desktop app. macOS and Windows only. Alias: `/app` | | `/ide` | Manage IDE integrations and show status | | `/install-github-app` | Set up Claude GitHub Actions for a repository | | `/install-slack-app` | Install the Claude Slack app via OAuth | | `/mobile` | Show QR code to download the Claude mobile app. Aliases: `/ios`, `/android` | | `/pr-comments [PR]` | Fetch comments from a GitHub pull request. Auto-detects the current branch's PR | | `/remote-control` | Make this session available for remote control from claude.ai. Alias: `/rc` | | `/remote-env` | Configure the default remote environment for teleport sessions | | `/security-review` | Analyse pending changes on the current branch for security vulnerabilities |
Account
Manage authentication, plans, and feedback.
| Command | Purpose | |---|---| | `/extra-usage` | Configure extra usage when rate limits are hit | | `/feedback [report]` | Submit feedback about Claude Code. Alias: `/bug` | | `/login` | Sign in to your Anthropic account | | `/logout` | Sign out from your Anthropic account | | `/passes` | Share a free week of Claude Code with friends (eligible accounts only) | | `/privacy-settings` | View and update privacy settings (Pro and Max plans only) | | `/upgrade` | Open the upgrade page for a higher plan tier |
Background Tasks
| Command | Purpose | |---|---| | `/tasks` | List and manage backgrou
Read more
Built-in Commands
Commands baked into Claude Code that execute fixed logic directly. Type `/` at the prompt to see them all, or type `/` followed by any letters to filter. Unlike [bundled skills](^Prompt-driven workflows like /simplify and /batch that use Claude's tools to orchestrate work. See the bundled skills section), built-in commands run immediately without agentic orchestration.
Not every command is visible to every user. Some depend on your platform, plan, or environment. For example, `/desktop` only appears on macOS and Windows, `/upgrade` is only available on Pro and Max plans, and `/terminal-setup` is hidden when your terminal already supports its keybindings.
In the tables below, `<arg>` means required and `[arg]` means optional.
Session Management
Control your conversation lifecycle, context, and history.
| Command | Purpose | |---|---| | `/clear` | Clear conversation history and free up context. Aliases: `/reset`, `/new` | | `/compact [instructions]` | Compress conversation to reclaim context, with optional focus instructions | | `/context` | Visualize current context usage as a coloured grid with optimization suggestions | | `/exit` | Exit the CLI. Alias: `/quit` | | `/fork [name]` | Create a fork of the current conversation at this point | | `/rename [name]` | Rename the current session. Without a name, auto-generates one from history | | `/resume [session]` | Resume a conversation by ID or name, or open the session picker. Alias: `/continue` | | `/rewind` | Rewind conversation and code to a previous point, or summarise from a message. Alias: `/checkpoint` |
Getting Information
View status, costs, diagnostics, and session data.
| Command | Purpose | |---|---| | `/btw <question>` | Ask a quick side question without adding to conversation history | | `/copy` | Copy the last response to clipboard. Shows a picker when code blocks are present | | `/cost` | Show token usage statistics for the current session | | `/diff` | Interactive diff viewer for uncommitted changes and per-turn diffs | | `/doctor` | Diagnose and verify your Claude Code installation and settings | | `/export [filename]` | Export conversation as plain text. With a filename, writes directly to file | | `/help` | Show help and available commands | | `/insights` | Generate a report analysing your sessions: project areas, patterns, friction points | | `/release-notes` | View the full changelog, most recent version first | | `/stats` | Visualise daily usage, session history, streaks, and model preferences | | `/status` | Show version, model, account, and connectivity info | | `/usage` | Show plan usage limits and rate limit status |
Configuration
Adjust settings, permissions, themes, and editor modes.
| Command | Purpose | |---|---| | `/config` | Open the settings interface for theme, model, output style, and preferences. Alias: `/settings` | | `/fast [on\|off]` | Toggle fast mode on or off | | `/keybindings` | Open or create your keybindings configuration file | | `/model [model]` | Select or change the AI model. Use left/right arrows to adjust effort level | | `/permissions` | View or update tool permissions. Alias: `/allowed-tools` | | `/plan` | Enter plan mode directly from the prompt | | `/sandbox` | Toggle sandbox mode (supported platforms only) | | `/statusline` | Configure the status line display | | `/terminal-setup` | Configure terminal keybindings for Shift+Enter and other shortcuts | | `/theme` | Change the colour theme. Includes light, dark, colourblind, and ANSI variants | | `/vim` | Toggle between Vim and Normal editing modes |
Project Setup
Initialise projects, manage directories, and configure memory.
| Command | Purpose | |---|---| | `/add-dir <path>` | Add a new working directory to the current session | | `/init` | Analyse your codebase and generate a starter `CLAUDE.md` | | `/memory` | Edit `CLAUDE.md` files, toggle auto-memory, and view memory entries |
Claude Code Ecosystem
Manage skills, agents, hooks, plugins, and MCP servers.
| Command | Purpose | |---|---| | `/agents` | Manage agent configurations | | `/hooks` | Manage hook configurations for tool events | | `/mcp` | Manage MCP server connections and OAuth authentication | | `/plugin` | Manage Claude Code plugins | | `/reload-plugins` | Reload all active plugins to apply changes without restarting | | `/skills` | List available skills |
Integrations
Connect Claude Code to external apps and services.
| Command | Purpose | |---|---| | `/chrome` | Configure Claude in Chrome settings | | `/desktop` | Continue the session in the Claude Code Desktop app. macOS and Windows only. Alias: `/app` | | `/ide` | Manage IDE integrations and show status | | `/install-github-app` | Set up Claude GitHub Actions for a repository | | `/install-slack-app` | Install the Claude Slack app via OAuth | | `/mobile` | Show QR code to download the Claude mobile app. Aliases: `/ios`, `/android` | | `/pr-comments [PR]` | Fetch comments from a GitHub pull request. Auto-detects the current branch's PR | | `/remote-control` | Make this session available for remote control from claude.ai. Alias: `/rc` | | `/remote-env` | Configure the default remote environment for teleport sessions | | `/security-review` | Analyse pending changes on the current branch for security vulnerabilities |
Account
Manage authentication, plans, and feedback.
| Command | Purpose | |---|---| | `/extra-usage` | Configure extra usage when rate limits are hit | | `/feedback [report]` | Submit feedback about Claude Code. Alias: `/bug` | | `/login` | Sign in to your Anthropic account | | `/logout` | Sign out from your Anthropic account | | `/passes` | Share a free week of Claude Code with friends (eligible accounts only) | | `/privacy-settings` | View and update privacy settings (Pro and Max plans only) | | `/upgrade` | Open the upgrade page for a higher plan tier |
Background Tasks
| Command | Purpose | |---|---| | `/tasks` | List and manage backgrou
Learn Claude Code by exploring it as it was designed - interactive IDE-style docs for commands, MCP, skills, CLAUDE.md and more.
Repo: LukeRenton/explore-claude-code
Other commands on explore-claude-code.
- /my-command
Review the changes in this PR. Focus on:
Open command - /review-pr
Review the changes in this PR. Focus on:
Open command - /write-tests
Write tests for: $ARGUMENTS
Open command - /btw
Ask a quick side question about your current work without adding to the conversation history. The question and answer appear in a dismissible overlay and never enter the main context.
Open command - /compact
Compresses your conversation to reclaim context window space. Claude summarises the conversation so far, discards the original messages, and continues with the summary as its new starting point.
Open command - /diff
Opens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.
Open command

