The Warp Agent CLI
https://www.warp.dev/blog/introducing-the-warp-agent-cli-coding-agent📌 【Warp 新功能】不再侷限於自家的 Terminal,Warp Agent CLI 讓 AI 助手能隨處運行
TL;DR:Warp Agent CLI 讓開發者能在任何 Terminal(如 iTerm 2、VS Code)使用其 AI 代理功能。
對於重度依賴終端機(Terminal)工作流的開發者來說,AI 助手如果只能在特定的 IDE 或 Terminal 內運行,往往會造成流程中斷。Warp 推出的 Warp Agent CLI 解決了這個痛點,讓這個具備多模型路由能力的 AI 代理,可以無縫整合進 Ghostty、iTerm 2、VS Code,甚至是 Windows 與 Mac 的內建終端機中。
🧩 基於 Terminals 基礎設施的 Mux 架構
Warp Agent CLI 最核心的技術差異在於它並非僅僅是個簡單的指令介面,而是建構在 Warp 獨有的終端機基礎設施之上。
- 類似 tmux 的架構:Agent 在 Session 中透過 pty 連線,並在 Agent 與底層 Shell 之間建立一個間接層(Indirection layer),類似 tmux 的 multiplexing(多工處理)機制。
- 原生感知 Terminal 區塊:由於使用了 Warp 的基礎設施,Agent 能原生感知終端機的輸入與輸出(即 Warp 所稱的「Blocks」),這讓它能提供比其他 CLI Agent 更豐富的互動體驗。
💡 打破傳統限制:具備「感知力」的代理助手
這種獨特的架構解鎖了許多傳統 AI CLI 工具無法做到的功能:
- 持久化 Session 與遠端執行:在 Agent Session 中切換目錄時,Session 的狀態得以保留。這讓開發者在處理多專案時更自然,甚至能在權限受限、無法安裝軟體的雲端機器上,直接執行遠端 Agent。
- 操控互動式與全螢幕應用:Agent 可以控制並與互動式程式進行對話,例如在 REPL(如 Python)中生成並偵錯 SQL 查詢,或是要求 Agent 關閉 Vim。
- 自動化偵測與補全:內建分類器(Classifier)能自動辨識使用者的輸入是「Shell 指令」還是「自然語言提示詞」,並自動呼叫對應的處理機制,同時支援類似 Warp 的 Tab 鍵補全功能。
📊 多模型協作與雲端接手
Warp 將其設計為一個「協調者(Orchestrator)」,旨在處理複雜的自主開發工作流:
- 自動模型路由:內建模型路由功能,會根據任務的複雜度,在 Frontier 模型(頂尖模型)與 Open-weight 模型(開源權重模型)之間進行自動切換,以達到成本與效能的最佳平衡。
- 多代理協作(Multi-agent Orchestration):可以將複雜任務拆解給不同的子代理(Subagents)執行,並提供直觀介面讓開發者觀察各個代理的進度。
- 雲端接手(Cloud Handoff):開發者可以在 CLI 開始工作,然後將任務交給雲端,這樣即使關閉筆電,任務仍會在雲端持續執行,並能透過網頁進行監控與引導。
🎯 **實務啟示
如果你目前的開發流程分散在不同的編輯器與終端機之間,Warp Agent CLI 提供了一個統一的 AI 代理層,讓你在不更換主要工具(如 VS Code 或 iTerm 2)的前提下,獲得強大的自動化與協調能力。
🔗 來源
- 標題:The Warp Agent CLI
- 連結:https://www.warp.dev/blog/introducing-the-warp-agent-cli-coding-agent
#Warp #CLI #AIAgent #Terminal #DeveloperTools #MachineLearning #Orchestration #SoftwareEngineering #Productivity #OpenWeightModels
原始資料 Hacker News · 收集於 2026-08-05
摘要原文
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 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 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 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 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 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 file How to get started Install the CLI Mac / Linux (Terminal): Bash curl -fsSL https://app.warp.dev/download/agent-cli | bash Windows (PowerShell): Invoke-RestMethod "https://app.warp.dev/download/agent-cli.ps1" | Invoke-Expression Configure inference Once you’ve installed the CLI, you have three ways to get started: Purchase a subscription to Warp, starting at $18 a month for $20 of inference / month. If you have an existing Warp subscription, you’ll be able to login and get started immediately. Purchase ad hoc credits, now available without a monthly subscription, starting at $10. Add an API key, an OpenAI compatible endpoint, or log in with your SuperGrok subscription. Give it a try today and let us know what you think! Start your software factory Book a demo and we’ll walk you through the workflows that map to your stack. (98 points, 61 comments on Hacker News)
由 tencent/hy3:free 自動生成