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
  • Coding capabilities in Agent Mode
  • Examples of coding capabilities
  • Supported languages for code suggestions in Agent Mode

Was this helpful?

  1. Agents

Code

Agent Mode enables intelligent, in-terminal code generation and editing through AI-powered diffs, allowing you to review, refine, and apply changes seamlessly across your codebase.

PreviousRun to completionNextCodebase Context

Last updated 1 day ago

Was this helpful?

Coding capabilities in Agent Mode

Agent Mode includes advanced coding capabilities directly within your terminal, triggered when it detects an opportunity to generate a code diff. This powerful feature allows for seamless code generation, editing, and management tasks, all within your terminal environment.

For a more tailored editing experience, you can attach context blocks directly from the terminal, providing Agent Mode with specific input to guide its diff suggestions.

Examples of coding capabilities

Agent Mode responds to prompts related to code generation, editing, and analysis. Here are some examples:

  • Code creation: “Write a function in JavaScript to debounce an input”

  • Based on error outputs, suggest fixes: “Fix this TypeScript error.”

  • Modify code within a file: “Update all instances of ‘var’ to ‘let’ in this file.”

  • Apply changes across multiple files: “Add headers to all .py files in this directory”

When Agent Mode generates a code diff, you can review, refine, and decide whether to apply the changes.

Supported languages for code suggestions in Agent Mode

Agent Mode’s built-in text editor supports a wide range of programming languages and syntax highlighting, including: Python, JavaScript, TypeScript, Rust, Golang, Java, C, C#, C++, HTML, CSS, Bash, JSON, YAML. We are also continuously working on adding support for more languages.

You can also open supported code files in Warp by clicking on the link, then selecting "Open in Warp". To save your changes, press CMD-S on macOS or CTRL-S on Linux and Windows.

If you have questions or feedback about this recent feature, feel free to contact us at .

feedback@warp.dev
Agent mode coding capabilities demo of a topological sort in Python.
Opening code files in Warp
Agent mode coding capabilities demo of a topological sort in Python.