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
  • Conversations with Agent Mode
  • How to attach context to an Agent Mode conversation
  • How to ask a follow-up to stay in a conversation
  • How to start a new conversation

Was this helpful?

  1. Agents
  2. Using Agents

Agent Conversations

Agent Mode organizes your AI interactions into conversations tied to terminal panes, allowing you to attach context blocks, follow up on previous queries, or start fresh threads for distinct tasks.

PreviousUsing AgentsNextModel Choice

Last updated 11 days ago

Was this helpful?

Conversations with Agent Mode

Conceptually, a conversation refers to a sequence of AI queries and blocks. Conversations are tied to panes and you can have multiple Agent Mode conversations running at the same time in different panes.

You will get more accurate results from AI queries if the conversation is relevant to the query you ask. When you start an AI query unrelated to the previous conversation, start a new conversation. When you start an AI query related to the previous conversation, ask a follow-up and stay in the same conversation.

Long conversations can have high latency. We recommend creating a new conversation when possible for distinct tasks or questions where the previous context isn't relevant.

How to attach context to an Agent Mode conversation

Agent Mode can gather context from your terminal sessions and tailor every command to your session and environment.

You can supply a block of context to your conversation with Agent Mode as part of your query. From the block in the terminal, click the AI sparkles icon to "Attach as Agent Mode context."

The most common use case is to ask the AI to fix an error. You can attach the error in a query to Agent Mode and type "fix it."

If you're already in Agent Mode, use the following ways to attach or clear context from your query:

Attach a previous block

  • To attach blocks to a query, you can use CMD-UP to attach the previous block as context to the query. While holding CMD, you can then use your UP/DOWN keys to pick another block to attach.

    • You may also use your mouse to attach blocks in your session. Hold CMD as you click on other blocks to extend your block selection.

Clear a previous block

  • To clear blocks from a query, you can use CMD-DOWN until the blocks are removed from context.

    • You may also use your mouse to clear blocks in your session. Hold CMD as you click on an attached block to clear it.

Attach a previous block

  • To attach blocks to a query, you can use CTRL-UP to attach the previous block as context to the query. While holding CTRL, you can then use your UP/DOWN keys to pick another block to attach.

    • You may also use your mouse to select blocks in your session. Hold CTRL as you click on other blocks to extend your block selection.

Clear a previous block

  • To clear blocks from a query, you can use CTRL-DOWN until the blocks are removed from context.

    • You may also use your mouse to clear blocks in your session. Hold CTRL as you click on an attached block to clear it.

Attach a previous block

  • To attach blocks to a query, you can use CTRL-UP to attach the previous block as context to the query. While holding CTRL, you can then use your UP/DOWN keys to pick another block to attach.

    • You may also use your mouse to select blocks in your session. Hold CTRL as you click on other blocks to extend your block selection.

Clear a previous block

  • To clear blocks from a query, you can use CTRL-DOWN until the blocks are removed from context.

    • You may also use your mouse to clear blocks in your session. Hold CTRL as you click on an attached block to clear it.

How to ask a follow-up to stay in a conversation

By default, if you ask an AI query right after any interaction in Agent Mode, your query will be sent as a follow-up. The follow-up ↳ icon is a bent arrow, to indicate your query is continuing the conversation.

To enter follow-up mode manually, press CMD-Y.

To enter follow-up mode manually, press CTRL-SHIFT-Y.

To enter follow-up mode manually, press CTRL-Y.

How to start a new conversation

If there is no follow-up ↳ icon next to your input, this indicates a new conversation. If you ask an AI query after running a shell command you will be placed in a new conversation. Agent Mode will also kick you out to a new conversation after 3 hours.

To start a new conversation manually, use CMD-Y or BACKSPACE.

To start a new conversation manually, use CTRL-Y or BACKSPACE.

To start a new conversation manually, use CTRL-Y or BACKSPACE.

Context truncation

You might notice that in long conversations, the AI loses context from the very beginning of the conversation. This is because Warp's models are limited by context windows (~128K tokens) and it will discard earlier tokens.

When using "Pin to the top" , the direction for attaching or detaching is reversed (i.e. CMD-DOWN attaches blocks to context, while CMD-UP clears blocks from context).

When using "Pin to the top" , the direction for attaching or detaching is reversed (i.e. CTRL-DOWN attaches blocks to context, while CTRL-UP clears blocks from context).

When using "Pin to the top" , the direction for attaching or detaching is reversed (i.e. CTRL-DOWN attaches blocks to context, while CTRL-UP clears blocks from context).

Input Position
Input Position
Input Position
From a block of output, attach the block and ask Agent Mode to remove all untracked files.
A continuing conversation in Agent Mode with a follow-up indicator
A new conversation in Agent Mode with no follow-up indicator