Warp Agent 命令行工具
The Warp Agent CLI

原始链接: https://www.warp.dev/blog/introducing-the-warp-agent-cli-coding-agent

Warp 推出了 **Warp Agent CLI**,这是一款独立的、支持多种模型的工具,旨在为任何终端(包括 Ghostty、iTerm 2 和 VS Code)带来先进的智能代理功能。 该 CLI 构建于 Warp 的终端基础设施之上,充当智能多路复用器。这种独特的架构支持持久会话、目录切换,并能够直接通过代理控制全屏交互式应用程序(如 `sqlite` 或 `vim`)。 **主要功能包括:** * **原生集成:** 自动区分 Shell 命令与自然语言提示,并集成 Tab 键补全功能。 * **高级工作流:** 支持多代理协同、基于云的代理移交,以及将任务委托给 Claude Code 等外部工具的能力。 * **性能优化:** 内置模型路由功能,可在任务复杂性与成本效益之间取得平衡,同时支持前沿模型和开源模型。 * **远程功能:** 无需额外安装二进制文件,即可在远程机器上实现代理辅助工作流。 Warp Agent CLI 现已支持 Mac、Linux 和 Windows,用户可通过订阅、按需积分或自定义 API 密钥配置灵活使用。

Hacker News 最新 | 往日 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 The Warp Agent CLI (warp.dev) 23 分,emschwartz 发布于 1 小时前 | 隐藏 | 往日 | 收藏 | 3 条评论 | 帮助 daveidol 5 分钟前 | 下一条 [-] 所以这是 OpenCode 或 Pi 之类的竞争对手吗?我猜大多数开发者使用 Claude Code 或 Codex CLI 主要是为了不用按 token 付费,并且可以使用订阅产品——我假设 Warp Agent 做不到这一点? 回复 Instantnoodl 1 分钟前 | 父评论 | 下一条 [-] Codex 和许多其他订阅产品可以与 OpenCode 和 pi 等其他工具结合使用。大多数情况下这是官方支持的。我正在 pi 中正常使用我的 Codex 和 MiniMax 订阅。 回复 orliesaurus 10 分钟前 | 上一条 [-] 很高兴你们开源了终端,以防万一,你知道的…… 回复 考虑申请 YC 2026 年秋季批次!申请截止日期为 7 月 27 日。 指导原则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Highlights:

  • The Warp Agent is now available as a standalone CLI that you can use anywhere – Ghostty, iTerm 2, VS Code, built-in Windows and Mac Terminals – and provides a superior experience for developers who do heavy terminal workflows
  • The agent itself has built-in model-routing capabilities, comes with frontier and US-hosted open-weight models built in, and can even be customized with custom model routers.
  • The CLI has native support for advanced agent workflows, like multi-agent orchestration and cloud agents.
  • The CLI is built on Warp’s terminal infrastructure, which allows it to mux agent sessions natively – this unlocks capabilities beyond what is possible in other agents.

Today we are excited to launch the Warp Agent CLI, a new standalone CLI that lets you use the Warp Agent anywhere. It’s the same multi-model agent that’s built into Warp Terminal, now available in Ghostty, iTerm 2, VSCode, the built-in Windows terminal, or whatever terminal you prefer.

The Warp Agent CLI has everything you’d expect from a modern CLI coding agent: it’s a multi-model, cost-optimizing harness built for pro developers. Out of the box, you get access to frontier and open-weight models and auto-routing based on task complexity.

The CLI was truly built to fix gaps we were seeing with other agentic CLIs related to how well they integrate with the shell itself— especially important for developers doing real work in the terminal.

Technically, we accomplished this by building the CLI agent on top of Warp’s unique terminal infrastructure: think of our CLI agent as a built-in mux’er across agent sessions. This allows more natural interactions, like being able to switch directories in agent sessions, have the agent drive full-screen terminal commands (e.g. sqlite and mysql), and even run across ssh sessions with no remote binary install.

Let’s dive into the features that make the Warp Agent CLI extremely useful for folks who live in the terminal.

A multiplexing terminal agent

The Warp Agent CLI has a unique mux’ing architecture. Within an agent session, we are actually running and managing pty connections with a layer of indirection between the agent and the underlying shell, a similar architecture to how tmux works. The mux’ing is managed by Warp’s terminal infrastructure, so our agent is natively aware of terminal inputs and output (what we call “blocks” in Warp). This allows for a richer experience than any other CLI agent. Here are some of the features it unlocks.

Persistent sessions and remote agents

The Warp Agent CLI lets you switch directories while in an agent session, and even run agents on remote machines without installing remote binaries. This is all because the agent session continues even when the base “state” of the session changes.

Changing directories in an agent session.

Persistent sessions are useful when you are working across multi-repo projects, or when you want agent assistance on cloud machines where you might have limited permissions to install software.

Agent-driven full-screen and interactive apps

You can run full-screen and interactive terminal apps like sqlite and python through the agent session. Warp Agent can also control those apps. So within a REPL you can ask our agent to write queries or interactively debug code. Or you can ask the agent to quit vim…

Agent editing document using vim
Agent editing document using vim

For example, you can ask the Warp Agent to:

  • Generate SQL queries within a REPL and interactively debug data issues
  • Use a debugger like gdb to set breakpoints and debug running apps
  • Monitor system performance with htop

Seamless terminal input: autodetection and tab-completion

As with other CLI agents, you can use `!` to run a shell command. But Warp CLI also supports natural language detection: we ship with a classifier that automatically distinguishes shell commands from prompts, and invokes either the shell or agent accordingly.

Command completion menu
Command completion menu in Warp

The Warp Agent CLI has one of Warp Terminal’s flagship features: tab completions. Start typing a command, hit tab, and see suggestions for arguments and flags.

Great UI for advanced agent workflows

The Warp Agent CLI is built for the age of autonomous development, not just manually prompting agents. As such, it has full support for running cloud agents and orchestrating multi-agent workflows.

Unique to Warp, when you couple the Warp Agent with our cloud platform, our harness can delegate not just across subagents with different models, but with entirely different harnesses like Claude Code and Codex.

Choosing with agent harness to use for a cloud agent
Choosing with agent harness to use for a cloud agent

Automatic agent orchestration

Warp’s agent is an orchestration agent. It delegates to subagents to break apart hard tasks, with a native interface that makes it easy to see what each orchestrated agent is doing. You can even use arrow keys to switch between subagent and orchestrator agent sessions.

Warp managing subagents
Warp managing subagents with orchestration

Cloud agent handoff

Start work in the CLI, then hand it off to the cloud when you want to close your laptop. All cloud agents are tracked centrally and can be monitored and steered via the web so you can continue work on the go.

Cloud agent handoff menu
Cloud agent handoff via slash command

Cost-optimizing and customizable harness

Warp Agent is a pareto-efficient harness with auto-routing based on task complexity. Out of the box, it comes with access to frontier models and open-weight models.

We also have invested more to make open weight models great within our harness, with first class support for custom model routers where you define which models handle which tasks.

Custom router configuration with a yaml file
Custom router configuration file

How to get started

Install the CLI

Mac / Linux (Terminal):