DeepSeek Harness:Everything is a Plugin 的 Agent 組裝架構與實務邊界
Agent Harness · Plugin Architecture · Developer Preview
DeepSeek Harness(dsh)是 DeepSeek AI 於 2026 年 8 月公開的 MIT 開源 Agent Harness。它把模型適配器、工具、會話日誌、Agent Loop、Web UI、沙箱與審批策略都建模為可組裝插件,讓「Model + Harness = Agent」從抽象概念變成可直接檢查、替換與執行的系統。
0.1.0-rc,並明確警告會發生 breaking changes。適合研究、PoC 與架構拆解,不宜未經安全審查直接接管正式環境。
從零跑一次,會看到什麼?
Threads 的實測貼文把啟動過程拆成很直觀的順序:先載入模型,再載入工具,組合 system prompt,接著建立 Agent Loop,最後掛上 UI。這不是官方逐字流程定義,但與官方架構文件的「插件樹 + profile + bundle + patch」模型一致。
1. Model Adapter
DeepSeek、Anthropic、OpenAI、自建 OpenAI-compatible gateway 都可以是 provider;模型變更可在下一次請求生效。
2. Tools
read、edit、bash、terminal、subagent 等能力由工具註冊表提供,並統一經過 pre-execute、guard、approval、execute、post-execute 流水線。
3. System Prompt
提示詞片段與 tool schema 由插件組裝;每個 step 都從目前 plugin tree 取得模型可見內容。
4. Agent Loop
一個 turn 可包含多個 step;每個 step 是一次模型請求加工具呼叫,所有模型可見內容都必須能從 session event log 重建。
5. UI / Headless
web 與 headless 是不同 profile 模板;UI 本身不是硬編碼核心,而是掛在同一組 Agent/session seam 上。
6. Profile / Patch
profile 是具名組裝;bundle 提供可疊加配置;home、profile 與 --patch overlay 可替換或插入插件節點。