Skip to content

Slash Commands

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

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.

Warp currently supports the following built-in Slash Commands:

Slash CommandDescription
/add-mcpAdd a new MCP server.
/add-promptAdd a new Agent Prompt in Warp Drive.
/add-ruleAdd a new Global Rule for the Agent.
/agentStart a new agent conversation. Optionally include a prompt to send immediately.
/changelogOpen the latest Warp changelog.
/cloud-agentStart a new cloud agent conversation. *
/compactFree up context by summarizing conversation history.
/compact-andCompact the current conversation and then send a follow-up prompt.
/conversationsOpen conversation history.
/costToggle credit usage details in the current conversation.
/create-environmentCreate a Warp Environment (Docker image + repos) via guided setup. *
/create-new-projectHave the Agent walk you through creating a new coding project. *
/export-to-clipboardExport the current conversation to clipboard in markdown format.
/export-to-fileExport the current conversation to a markdown file.
/feedbackSend feedback to the Warp team. Only the Agent-drafted flow consumes credits. See Using /feedback in Warp for details. *
/forkForks 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-compactForks 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-fromOpen 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.
/indexIndex the current codebase using Codebase Context.
/initIndex the current codebase and generate an AGENTS.md file. *
/modelSwitch the base agent model for the current conversation.
/newStart a new agent conversation (alias for /agent).
/open-code-reviewOpen the code review pane.
/open-fileOpen a file for editing in Warp’s code editor.
/open-mcp-serversView the status of your MCP servers.
/open-project-rulesOpen the Project Rules file (AGENTS).
/open-repoSwitch to another indexed repository.
/open-rulesView all of your global and project rules.
/open-settings-fileOpen the Warp settings file (settings.toml) in Warp’s code editor.
/open-skillOpen an interactive menu to browse and edit project or global skills.
/orchestrateBreak a task into subtasks and run them in parallel with multiple agents. *
/planPrompt the Agent to do some research and create a plan for a task.
/pr-commentsPull GitHub PR review comments into Warp. *
/profileSwitch the active execution profile.
/promptsSearch saved prompts.
/rename-tabRename the current tab. Include the new tab name as an argument (for example, /rename-tab deploy).
/rewindRewind to a previous point in the conversation.
/skillsInvoke a skill from a searchable menu.
/usageOpen billing and usage settings.

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.

Slash Commands menu with filtered Agent Prompts

  • 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.

Below is an example interaction when /init is run:

/init setup flow; 1 of 2

/init setup flow; 2 of 2