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.

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 Prompt in Warp Drive.

/add-rule

Add a new Global Rule for the Agent.

/diff-review

/index

Index the current codebase using Codebase Context.

/init

Index the current codebase and generate a WARP.md file.

/open-project-rules

Open the Project-specific Rules file (WARP.md).

/view-mcp

View the status of your MCP servers.

Using Prompts via Slash Commands

In addition to static commands, the menu also shows Agent Prompts saved in your 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.

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.

Last updated

Was this helpful?