跳到主要內容

程式開發 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
SST任何模型Any provider via BYOK — Anthropic, OpenAI, Google, DeepSeek, GLM, local models開源Terminal, IDE extensions, WebFree and open-source with your own API keys; OpenCode Go plan $5 first month, then $10/month
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
Langbase任何模型Anthropic, OpenAI, Google, DeepSeek, Qwen, Kimi, GLM, MiniMax and more — BYOK with no markup專有TerminalFrom $1/month with $10 credits, up to $200/month Ultra; Teams $40/month; BYOK carries no markup
DeepSeek自有模型,未被鎖定Built around DeepSeek models (V4.1 Flash on the deepseek-flash API id since 10 Sep 2026); plugin architecture allows others開源Terminal, Web UIMIT-licensed and free; you pay only for model tokens
Google自有模型,未被鎖定Gemini models專有Desktop, CLI, SDKVia Google AI Pro / Ultra and Gemini Code Assist licences

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 嗎?
可以,前提是你選擇與模型無關的 harness。OpenCode 與 Command Code 都讓你能在不同供應商之間使用自己的金鑰。Claude Code 只能使用 Anthropic 的模型;ZCode 與 Antigravity 則是圍繞其供應商自家的模型所打造。
Gemini CLI 還能用嗎?
在消費者方案上已經不行。2026 年 6 月 18 日起,它停止為 Google AI Pro 與 Ultra 訂閱者以及免費的 Gemini Code Assist 使用者處理請求,並由 Antigravity CLI 取代。Code Assist Standard 或 Enterprise 授權下的存取權限則不受影響。

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

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

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