Chat
General conversation, with no access to files. For questions, doubts and brainstorming. No slash commands.
Claude's modes plus Claude Code's slash commands and shortcuts. Keep this page open as a reference while you work.
Claude Desktop has three tabs. Knowing which one you are in avoids confusion: slash commands only exist in Code mode.
General conversation, with no access to files. For questions, doubts and brainstorming. No slash commands.
An autonomous agent that works on its own on a cloud machine. You delegate, it delivers. No slash commands.
An interactive assistant with access to your files. This is where all the "/" commands and keyboard shortcuts live.
| Command | What it does |
|---|---|
| /help | Shows help and the list of available commands. |
| /clear | Starts a new conversation and clears the context, keeping the project memory. |
| /compact | Summarizes the conversation to free up context without losing the thread. |
| /context | Shows how much of the context is in use and suggests what to optimize. |
| /model | Picks or switches the AI model in use. |
| /effort | Adjusts the reasoning level (from low to max). |
| /config | Opens the settings (theme, model, style). |
| /cost | Shows session spend, plan limits and statistics. |
| /memory | Edits the CLAUDE.md files, the project memory. |
| /init | Creates an initial CLAUDE.md, documenting the project for future sessions. |
Session and context
| Command | What it does |
|---|---|
| /resume | Resumes an earlier conversation by name or identifier. |
| /rewind | Rolls the session back to an earlier point. |
| /export | Exports the current conversation as text. |
| /copy | Copies the last answer to the clipboard. |
| /btw | Asks a quick side question without adding it to the history. |
| /plan | Enters plan mode, without changing files. |
Project and code
| Command | What it does |
|---|---|
| /review | Reviews a pull request inside the session. |
| /security-review | Analyzes pending changes looking for vulnerabilities. |
| /diff | Opens a viewer for changes not yet saved in history. |
| /agents | Manages subagent settings. |
| /mcp | Manages connections to MCP servers. |
| /skills | Lists the available skills. |
| /permissions | Sets the permission rules for tools. |
| /hooks | Shows the event hook settings. |
Productivity and automation
| Command | What it does |
|---|---|
| /loop | Runs a prompt repeatedly, at a set interval. |
| /background | Lets the session run as a background agent. |
| /tasks | Lists and manages background tasks. |
| /schedule | Creates and manages scheduled routines in the cloud. |
| /simplify | Reviews recent files and applies improvements. |
Account and system
| Command | What it does |
|---|---|
| /doctor | Diagnoses and checks the Claude Code installation. |
| /theme | Changes the terminal color theme. |
| /feedback | Sends feedback or reports a problem. |
| /login | Logs in to your Anthropic account. |
| /logout | Logs out of the account. |
| /exit | Exits Claude Code. |
Session control
| Shortcut | What it does |
|---|---|
| Esc | Interrupts Claude, keeping the work already done. |
| Esc + Esc | Goes back in the conversation. |
| Ctrl + C | Interrupts the current input or generation. |
| Ctrl + D | Exits the Claude Code session. |
| Ctrl + L | Redraws the screen if it gets garbled. |
| Ctrl + O | Shows or hides the tool usage history. |
| Shift + Tab | Cycles through permission modes. |
Text editing
| Shortcut | What it does |
|---|---|
| Ctrl + A | Moves the cursor to the start of the line. |
| Ctrl + E | Moves the cursor to the end of the line. |
| Ctrl + K | Deletes from the cursor to the end of the line. |
| Ctrl + U | Deletes from the cursor to the start of the line. |
| Ctrl + W | Deletes the previous word. |
| Ctrl + R | Searches the command history. |
Knowing the command is the start. Use them while you build your prompts and systems.