> For the complete documentation index, see [llms.txt](/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Slash Commands

Use Slash Commands in Agent Mode or Auto-Detection Mode to quickly run built-in actions or saved prompts without leaving the input field.

When using Agent Mode or Auto-Detection Mode, typing `/` in the input field opens the Slash Commands menu.

![Slash Commands menu](/_astro/slash-commands-menu.htjt3JiN_TXojC.webp?dpl=dpl_8WQRLEGnkNwoH3s9QtGsF7h6gscX)

Slash Commands menu.

As you type, the menu filters results in real time, making it easy to find and run the command or prompt you need.

## Static slash commands

Warp currently supports the following built-in Slash Commands:

| Slash Command | Description |
| --- | --- |
| `/add-mcp` | Add a new [MCP server](/agent-platform/capabilities/mcp/). |
| `/add-prompt` | Add a new [Agent Prompt](/knowledge-and-collaboration/warp-drive/prompts/) in Warp Drive. |
| `/add-rule` | Add a new [Global Rule](/agent-platform/capabilities/rules/) for the Agent. |
| `/agent` | Start a new [agent conversation](/agent-platform/local-agents/interacting-with-agents/). Optionally include a prompt to send immediately. |
| `/changelog` | Open the latest Warp [changelog](/changelog/). |
| `/cloud-agent` | Start a new [cloud agent conversation](/agent-platform/cloud-agents/overview/). `*` |
| `/compact` | Free up context by summarizing conversation history. |
| `/compact-and` | Compact the current conversation and then send a follow-up prompt. |
| `/conversations` | Open [conversation history](/agent-platform/local-agents/interacting-with-agents/). |
| `/cost` | Toggle credit usage details in the current conversation. |
| `/create-environment` | Create a [Warp Environment](/agent-platform/cloud-agents/environments/) (Docker image + repos) via guided setup. `*` |
| `/create-new-project` | Have the Agent walk you through creating a new coding project. `*` |
| `/export-to-clipboard` | Export the current conversation to clipboard in markdown format. |
| `/export-to-file` | Export the current conversation to a markdown file. |
| `/feedback` | Send feedback to the Warp team. Only the Agent-drafted flow consumes credits. See [Using `/feedback` in Warp](/support-and-community/troubleshooting-and-support/sending-us-feedback/#using-feedback-in-warp) for details. `*` |
| `/fork` | [Forks the current conversation](/agent-platform/local-agents/interacting-with-agents/conversation-forking/) into a new thread with the full context and history of the original.  
  
You can optionally include a prompt that will be sent immediately in the forked conversation. |
| `/fork-and-compact` | [Forks the current conversation](/agent-platform/local-agents/interacting-with-agents/conversation-forking/) and automatically compacts the forked version.  
  
Useful when you want a fresh, summarized starting point that preserves relevant context while trimming the rest. |
| `/fork-from` | Open a searchable menu to [fork the conversation](/agent-platform/local-agents/interacting-with-agents/conversation-forking/) from a specific query. Select a query to create a fork that includes everything up to that point. |
| `/index` | Index the current codebase using [Codebase Context](/agent-platform/capabilities/codebase-context/). |
| `/init` | Index the current codebase and generate an [AGENTS.md file](/agent-platform/capabilities/rules/). `*` |
| `/model` | Switch the base agent model for the current conversation. |
| `/new` | Start a new [agent conversation](/agent-platform/local-agents/interacting-with-agents/) (alias for `/agent`). |
| `/open-code-review` | Open the [code review](/code/code-review/) pane. |
| `/open-file` | Open a file for editing in Warp’s [code editor](/code/code-editor/). |
| `/open-mcp-servers` | View the status of your [MCP servers](/agent-platform/capabilities/mcp/). |
| `/open-project-rules` | Open the [Project Rules](/agent-platform/capabilities/rules/#project-rules) file (`AGENTS`). |
| `/open-repo` | Switch to another indexed repository. |
| `/open-rules` | View all of your global and project [rules](/agent-platform/capabilities/rules/). |
| `/open-settings-file` | Open the Warp [settings file](/terminal/settings/) (`settings.toml`) in Warp’s code editor. |
| `/open-skill` | Open an interactive menu to browse and edit project or global [skills](/agent-platform/capabilities/skills/). |
| `/orchestrate` | Break a task into subtasks and run them in parallel with multiple agents. `*` |
| `/plan` | Prompt the Agent to do some research and create a [plan](/agent-platform/capabilities/planning/) for a task. |
| `/pr-comments` | Pull GitHub PR review comments into Warp. `*` |
| `/profile` | Switch the active [execution profile](/agent-platform/capabilities/agent-profiles-permissions/). |
| `/prompts` | Search saved [prompts](/knowledge-and-collaboration/warp-drive/prompts/). |
| `/rename-tab` | Rename the current tab. Include the new tab name as an argument (for example, `/rename-tab deploy`). |
| `/rewind` | Rewind to a previous point in the conversation. |
| `/skills` | Invoke a [skill](/agent-platform/capabilities/skills/) from a searchable menu. |
| `/usage` | Open [billing and usage](/support-and-community/plans-and-billing/) settings. |

Caution

Slash commands marked with a `*` consume credits to complete the task.

#### Using Agent Prompts via Slash Commands

In addition to static commands, the menu also shows [Agent Prompts](/knowledge-and-collaboration/warp-drive/prompts/) saved in your [Warp Drive](/knowledge-and-collaboration/warp-drive/).

-   These prompts can be custom ones you’ve created or ones shared with you.
-   As you type after `/`, prompts are filtered dynamically, so you can quickly run them without leaving the input field.

![Slash Commands menu with filtered Agent Prompts](/_astro/slash-commands-prompts.Bn4xWVZN_Z1f5gjc.webp?dpl=dpl_8WQRLEGnkNwoH3s9QtGsF7h6gscX)

Slash Commands menu with filtered Agent Prompts.

### Tips

-   **Context-aware:** Many Slash Commands use your current working directory or file selection as context.
-   **Quick access:** Use `/` from anywhere in Agent Mode or Auto-Detection Mode to avoid navigating through menus.

### Example of using a Slash Command

Below is an example interaction when `/init` is run:

![/init setup flow; 1 of 2](/_astro/init-setup-flow-1.c74TFMjc_BTWl9.webp?dpl=dpl_8WQRLEGnkNwoH3s9QtGsF7h6gscX)

The /init setup flow, step 1 of 2.

![/init setup flow; 2 of 2](/_astro/init-setup-flow-2.DLdfslFK_1WJ6ng.webp?dpl=dpl_8WQRLEGnkNwoH3s9QtGsF7h6gscX)

The /init setup flow, step 2 of 2.
