跳到主要內容

程式開發 harness

程式開發代理不等於模型

你會為能力挑選模型,為工作進行的方式挑選 harness。以下是 2026 年值得了解的 harness,每項說法都附有來源並標註日期 — 包括那一個已經退役的。

比較它們所有列均於 2026年8月14日 查核

請先閱讀

harness 是讓模型變成代理的用戶端:它掌握迴圈、工具、檔案存取與權限。兩個人透過不同的 harness 使用同一個模型,會得到截然不同的結果 — 付出的費用也大不相同,因為 harness 決定了這項工作會消耗多少 token。

其中一項已經不存在了

Google 已將 Gemini CLI 退役並整合進 Antigravity CLI,而消費者存取權限已於 2026 年 6 月 18 日停止處理請求。我們保留這一列,因為知道什麼取代了它,比一個悄悄把它刪掉的頁面更有用。

各實驗室現在透過 harness 進行基準測試

當 Z.ai 發布 GLM-5.3 的分數時,它是在 Claude Code 中執行的 — 那是競爭對手的 harness。這說明 harness 層已成為標準基礎設施,而模型公布的分數,某種程度上也代表了它被測量時所使用的用戶端。

比較各個 harness

依各自處理模型的方式進行篩選,然後選取一列以查看完整細節、限制與來源。預設會隱藏已退役的 harness。

Harness模型授權執行於定價
can1357 (community)任何模型Any provider via BYOK — Anthropic, OpenAI, Google, xAI, DeepSeek, Mistral, plus local servers (Ollama, llama.cpp, vLLM)開源Terminal, Zed, Node.js SDK, One-shot CLIFree, MIT-licensed. You pay only your own provider API bills; no subscription and no vendor account required.
Anthropic鎖定於單一供應商Anthropic models only (Claude Fable, Opus, Sonnet, Haiku)專有Terminal, VS Code, JetBrains, Desktop, Web, GitHub, SlackIncluded with Claude paid plans; also usage-billed via the Anthropic API
Anomaly任何模型200+ providers through Models.dev, including local models; log in with an existing ChatGPT Plus or Pro or GitHub Copilot subscription, or use OpenCode Go開源Desktop app (macOS, Windows, Linux), Terminal, Mobile (iPhone, via TestFlight), SDKFree and MIT-licensed, with free models included and no account needed. OpenCode Go is $10/month and Go Plus is $40/month; extra credit can be topped up.
Z.ai自有模型,未被鎖定GLM family (GLM-5.3, GLM-5.2), including a self-hosted GLM endpoint專有Desktop (macOS, Windows, Linux), Mobile steering via WeChat / FeishuVia the GLM Coding Plan's points quota — off-peak calls cost 50% of standard points
Command Code任何模型Anthropic, OpenAI, Google, xAI, DeepSeek, Qwen, Kimi, GLM, MiniMax and more; built around open models, with DeepSeek V4.1 Flash as the default in its latest changelog entry專有Terminal (interactive and headless), Desktop app (macOS, Linux, Windows), Background sandboxGo $1/month plus a processing fee (includes $10 of credits); GOAT $10; Pro $20; Max $100 or $200; Teams $40; Provider API plan $15/month then pay as you go; Enterprise is custom. Extra credits are bought at the underlying API rate with zero markup.
DeepSeek自有模型,未被鎖定Built around DeepSeek models (deepseek-flash and deepseek-v4-pro on DeepSeek's API). Also third-party providers such as Anthropic, OpenAI, Kimi and GLM, and any custom OpenAI-compatible or Anthropic-style endpoint開源Desktop app (macOS download on the vendor page), Web UI, started with one npx command, Terminal (CLI modes)The harness is MIT-licensed and free; you pay your model provider. On DeepSeek's own API, off-peak rates are half the peak rates.
Earendil (created by Mario Zechner)任何模型Many providers (Anthropic, OpenAI, Google, Azure, Bedrock, Mistral, Groq, xAI, OpenRouter, Ollama and more) through API keys, or by logging in with an existing subscription開源Terminal, Print and JSON mode, RPC, TypeScript SDKFree and MIT-licensed; you pay your model provider or use a subscription you already have. A paid Pi plan: NOT PUBLISHED.
Cognition自有模型,未被鎖定SWE-2 (Cognition's own model, free to use on Pro) plus frontier models from OpenAI, Claude, Gemini and SpaceXAI and leading open-source models; paid plans can also use your ChatGPT plan專有Devin Cloud (autonomous cloud agent), Devin Desktop, CLI, Slack, Teams, Linear, Jira and Git hostsFree $0 (light quota); Pro $20/month; Max $200/month; Teams $80/month plus $40/month per full developer seat; Enterprise on request. Extra usage is bought at API pricing.
Google自有模型,未被鎖定Gemini 4 and Gemini 3 models, plus Claude Sonnet 5.5 and Opus 5.5專有Desktop, CLI, IDE, SDK$0 individual plan with a weekly quota; higher quotas via Google AI Pro / Ultra; Gemini Enterprise from $30 per seat per month

Oh My Pi (omp)

can1357 (community)
Hashline edits cut output tokens
The model patches by content-hash anchor instead of retyping lines, and a stale anchor is rejected before it corrupts the file. The project reports Grok 4 Fast spending 61% fewer output tokens on the same work (self-reported) 來源
Real IDE machinery, not a text box
31 built-in tools, 14 LSP operations and 28 DAP (debugger) operations, so renames go through the language server and it can drive lldb, dlv or debugpy 來源
Adopts your existing config on first run
Inherits rules, skills and MCP servers already on disk from .claude, .cursor, .codex, .gemini, .cline, .windsurf and .github/copilot — no migration script 來源

擴充點

  • 支援技能
  • 支援掛鉤
  • 支援子代理
  • 支援外掛
  • 支援MCP

誠實說明的限制

Community-run and moving very fast — three releases shipped on 1 Sep 2026 alone — with no vendor support contract, no SLA and no company behind it. It is also the most complex harness here: ten model roles and 31 tools are a lot of surface to learn, and the headline efficiency numbers are the project's own, not independently verified.

最適合

Technical teams who want IDE-grade tooling and a hard floor on spend, and who can absorb a fast-moving open-source dependency without vendor support.

閱讀指南

來源 已驗證 2026-09-02

人們真正會問的問題

什麼是 AI 程式開發 harness?
讓語言模型變成代理的用戶端。它執行迴圈、提供檔案編輯與終端機等工具、管理脈絡與權限,並決定任務何時完成。模型提供推理能力;harness 則提供其他一切。
harness 會改變我付的費用嗎?
會,而且幅度很大。harness 控制它會重新傳送多少脈絡、是否快取,以及需要進行幾輪。在相同的任務上,使用相同模型的兩個 harness,輸出 token 的數量可能相差數倍,而輸出 token 正是大部分的帳單。
我可以在多個模型供應商之間使用同一個 harness 嗎?
可以,前提是選擇不綁定特定模型的工具。OpenCode、Pi 和 Command Code 讓你在不同供應商間使用自己的金鑰;DeepSeek Harness 則支援第三方供應商和自訂端點。Claude Code 僅支援 Anthropic 模型;ZCode 和 Antigravity 是為各自供應商的模型打造,而 Devin 則在自家方案中提供一組模型。
Gemini CLI 還能用嗎?
在消費者方案上已經不行。2026 年 6 月 18 日起,它停止為 Google AI Pro 與 Ultra 訂閱者以及免費的 Gemini Code Assist 使用者處理請求,並由 Antigravity CLI 取代。Code Assist Standard 或 Enterprise 授權下的存取權限則不受影響。

harness 的選擇取決於模型的選擇。

先挑選能以最低成本達到你品質標準的模型,再挑選能讓它以你團隊的工作方式運行的 harness。若順序顛倒,人們就會不小心被鎖定在他們原本無意選擇的供應商身上。

我們為本頁的每一項說法記錄來源與查核日期,並且會顯示彼此的分歧,而不是悄悄地加以化解。 我們如何驗證