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

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.

/add-prompt

Add a new Agent Promptarrow-up-right in Warp Drive.

/add-rule

Add a new Global Rule for the Agent.

/agent

Start a new agent conversation. Optionally include a prompt to send immediately.

/cloud-agent

/compact

Free up context by summarizing conversation history.

/compact-and

Compact the current conversation and then send a follow-up prompt.

/conversations

/cost

Toggle credit usage details in the current conversation.

/create-environment

Create a Warp Environment (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.

/fork

Forks the current conversation 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 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 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.

/init

Index the current codebase and generate an AGENTS.md file. *

/model

Switch the base agent model for the current conversation.

/new

Start a new agent conversation (alias for /agent).

/open-code-review

/open-file

Open a file for editing in Warp's code editorarrow-up-right.

/open-mcp-servers

View the status of your MCP servers.

/open-project-rules

Open the Project Rules file (AGENTS).

/open-repo

Switch to another indexed repository.

/open-rules

View all of your global and project rules.

/open-skill

Open an interactive menu to browse and edit project or global 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 for a task.

/pr-comments

Pull GitHub PR review comments into Warp. *

/profile

Switch the active execution profile.

/prompts

Search saved promptsarrow-up-right.

/rewind

Rewind to a previous point in the conversation.

/skills

Invoke a skill from a searchable menu.

/usage

circle-exclamation

Using Prompts via Slash Commands

In addition to static commands, the menu also shows Agent Promptsarrow-up-right saved in your Warp Drivearrow-up-right.

  • 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

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 ran:

/init setup flow; 1 of 2
/init setup flow; 2 of 2

Last updated

Was this helpful?