Warp documentation
  • Getting Started
    • Quickstart Guide
    • What is Warp?
    • Supported Shells
    • Migrate to Warp
    • Keyboard Shortcuts
    • Changelog
  • Agents
    • Warp AI
    • Using Agents
      • Agent Conversations
      • Model Choice
    • Autonomy
      • Agent Permissions
      • Run to completion
    • Code
      • Codebase Context
      • Reviewing Agent Code
    • Active AI
    • Generate
    • Voice
    • AI FAQs
  • Terminal
    • Appearance
      • Themes
      • Custom Themes
      • Prompt
      • Input Position
      • Text, Fonts, & Cursor
      • Size, Opacity, & Blurring
      • Pane Dimming & Focus
      • Blocks Behavior
      • Tabs Behavior
      • App Icons
    • Blocks
      • Block Basics
      • Block Actions
      • Block Sharing
      • Block Find
      • Block Filtering
      • Background Blocks
      • Sticky Command Header
    • Modern Text Editing
      • Alias Expansion
      • Command Inspector
      • Syntax & Error Highlighting
      • Vim Keybindings
    • Command Entry
      • Command Corrections
      • Command Search
      • Command History
      • Synchronized Inputs
      • YAML Workflows
    • Command Completions
      • Completions
      • Autosuggestions
    • Command Palette
    • Session Management
      • Launch Configurations
      • Session Navigation
      • Session Restoration
    • Window Management
      • Global Hotkey
      • Tabs
      • Split Panes
    • Warpify
      • Subshells
      • SSH
      • SSH Legacy
    • More Features
      • Accessibility
      • Files, Links, & Scripts
      • Markdown Viewer
      • Working Directory
      • Smart-Select
      • Full-screen Apps
      • Notifications & Audible Bell
      • Settings Sync (Beta)
      • Quit Warning
      • URI Scheme
      • Linux
    • Comparisons
      • Performance
      • Terminal features
    • Integrations
  • Knowledge & Collaboration
    • Warp Drive
      • Notebooks
      • Workflows
      • Prompts
      • Environment Variables
      • Warp Drive on the Web
      • Warp Drive as Agent Mode Context
    • Model Context Protocol
    • Rules
    • Teams
    • Session Sharing
  • Privacy
    • Privacy
    • Secret Redaction
    • Network Log
  • Community
    • Refer a Friend & Earn Rewards
    • Warp Preview & Alpha Program
  • Support & Billing
    • Sending Feedback & Logs
    • Plans & Pricing
    • Updating Warp
    • Using Warp Offline
    • Logging out & Uninstalling
    • Known Issues
    • Troubleshooting Login Issues
    • Open Source Licenses
Powered by GitBook
On this page
  • What is Agent Mode?
  • How to enter Agent Mode
  • Auto-detection for natural language and configurable settings
  • Input Hints
  • How to exit Agent Mode
  • How to run commands in Agent Mode

Was this helpful?

  1. Agents

Using Agents

Use natural language to accomplish any task in the terminal

PreviousWarp AINextAgent Conversations

Last updated 19 hours ago

Was this helpful?

What is Agent Mode?

Agent Mode is a mode in Warp that lets you perform any terminal task with natural language. Type the task into your terminal input, press ENTER, and Warp AI runs highly accurate commands tailored to your environment. Agent Mode can:

  1. Understand plain English (not just commands)

  2. Execute commands and use that output to guide you

  3. Correct itself when it encounters mistakes

  4. Learn and integrate with any service that has public docs or --help

  5. Utilize your saved workflows to answer queries

.

How to enter Agent Mode

You may enter Agent Mode in a few ways:

  • Type any natural language, like a task or a question, in the terminal input. Warp will recognize natural language with a local auto-detection feature and prepare to send your query to Warp AI.

  • Use keyboard shortcuts to toggle into Agent Mode CMD-I or type ASTERISK-SPACE.

  • Click the “AI” sparkles icon in the menu bar, and this will open a new terminal pane that starts in Agent Mode.

  • From a block, you want to ask Warp AI about. You can click the sparkles icon in the toolbelt, or click on its block context menu item “Attach block(s) to AI query”.

  • Type any natural language, like a task or a question, in the terminal input. Warp will recognize natural language with a local auto-detection feature and prepare to send your query to Warp AI.

  • Use keyboard shortcuts to toggle into Agent Mode CTRL-I or type ASTERISK-SPACE.

  • Click the “AI” sparkles icon in the menu bar, and this will open a new terminal pane that starts in Agent Mode.

  • From a block, you want to ask Warp AI about. You can click the sparkles icon in the toolbelt, or click on its block context menu item “Attach block(s) to AI query”.

  • Type any natural language, like a task or a question, in the terminal input. Warp will recognize natural language with a local auto-detection feature and prepare to send your query to Warp AI.

  • Use keyboard shortcuts to toggle into Agent Mode CTRL-I or type ASTERISK-SPACE.

  • Click the “AI” sparkles icon in the menu bar, and this will open a new terminal pane that starts in Agent Mode.

  • From a block, you want to ask Warp AI about. You can click the sparkles icon in the toolbelt, or click on its block context menu item “Attach block(s) to AI query”.

This will put you in Pair mode by default. While pairing with Warp, you can write out questions and tasks in an ongoing conversation.

When you are in Agent Mode, a ✨ sparkles icon will display in line with your terminal input.

Auto-detection for natural language and configurable settings

The feature Warp uses to detect natural language automatically is completely local. None of your input is sent to AI unless you press ENTER in Agent Mode.

If you find that certain shell commands are falsely detected as natural language, you can fix the model by adding those commands to a denylist in Settings > AI > Auto-detection denylist.

You may also turn autodetection off from Settings > AI > Input Auto-detection.

The first time you enter Agent Mode, you will be served a banner with the option to disable auto-detection for natural language on your command line:

Input Hints

Warp input occasionally shows hints within the input editor in a light grey text that helps users learn about features. It's enabled by default.

How to exit Agent Mode

You can quit Agent Mode at any point with ESC or CTRL-C, or toggle out of Agent Mode with CMD-I.

You can quit Agent Mode at any point with ESC or CTRL-C, or toggle out of Agent Mode with CTRL-I.

You can quit Agent Mode at any point with ESC or CTRL-C, or toggle out of Agent Mode with CTRL-I.

How to run commands in Agent Mode

Once you have typed your question or task in the input, press ENTER to execute your AI query. Agent Mode will send your request to Warp AI and begin streaming output in the form of an AI block.

Unlike a chat panel, Agent Mode can complete tasks for you by running commands directly in your session.

Agent Mode Command Suggestions

If Agent Mode finds a suitable command that will accomplish your task, it will describe the command in the AI block. It will also fill your terminal input with the suggested command so you can press ENTER to run the command.

When you run a command suggested by Agent Mode, that command will work like a standard command you've written in the terminal. No data will be sent back to the AI.

If the suggested command fails and you want to resolve the error, you may start a new AI query to address the problem.

Agent Mode Requested Commands

If Agent Mode doesn't have enough context to assist with a task, it will ask permission to run a command and read the output of that command.

You must explicitly agree and press ENTER to run the requested command. When you hit enter, both the command input and the output will be sent to Warp AI.

If you do not wish to send the command or its output to AI, you can click Cancel or press CTRL-C to exit Agent Mode and return to the traditional command line.

Once a requested command is executed, you may click to expand the output and view command details.

In the case that a requested command fails, Warp AI will detect that. Agent Mode is self-correcting. It will request another command until it completes the task for you.

Warp lets you choose from a curated list of LLMs for use in Agent Mode. By default, Warp uses Claude 4 Sonnet for auto, but you can switch to other supported models, including:

  • OpenAI (General Purpose): GPT-4o, GPT-4.1

  • OpenAI (Reasoning Models): o3-mini, o3, o4-mini

  • Anthropic: Claude 4 Sonnet, Claude 3.7 Sonnet, Claude 3.5 Sonnet, Claude 3.5 Haiku

  • Google: Gemini 2.0 Flash, Gemini 2.5 Pro

Codebase context database

Warp saves the data from codebase context to local json files on your computer. You can open the files directly and inspect the full contents in the following location:

cd "$HOME/Library/Application Support/dev.warp.Warp-Stable/codebase_index_snapshots"
Set-Location $env:LOCALAPPDATA\warp\Warp\data\codebase_index_snapshots
cd "${XDG_STATE_HOME:-$HOME/.local/state}/warp-terminal/codebase_index_snapshots"

Toggle this feature Settings > AI > Show input hint text or search for "Input hint text" in the or Right-click on the input editor.

DeepSeek: R1, V3 (hosted by in the US)

Visit the example gallery to watch videos of Agent Mode in action
Command Palette
Fireworks AI
The sparkles on the command line indicate Agent Mode is active.
Warp displays an option to toggle natural language detection on / off
Agent Mode makes a suggestion to run a command.
Warp AI asks permission to run a command and read the output.
Viewing command details
The sparkles on the command line indicate Agent Mode is active.
Warp displays an option to toggle natural language detection on / off
Agent Mode makes a suggestion to run a command.
Warp AI asks permission to run a command and read the output.