System 1 vs. System 2 Agent Harnesses, clearly explained
Beacon 是一個開源 memory layer,旨在解決不同 AI coding agent 之間 context fragmentation 的問題。它能擷取來自 Claude Code、Cursor 和 Codex 等工具的 session activity,讓使用者無需重新開始即可在不同的 agent 中接續工作。透過生成 handoff brief 或使用原生 resume 指令,Beacon 確保在單一 session 中取得的進展可在各種 agent harness 之間隨處移植。該工具採用 local-first 運作,直接從使用者的機器讀取 session store,以確保隱私與安全性。文中區分了 System 1 與 System 2 AI 整合模式,其中 System 1 處理有界限的判定(bounded judgments),而 System 2 負責處理開放式、多步驟的任務。HarnessRouter 作為一個開源 infrastructure layer 被引入,旨在將這些模式統整在單一 execution framework 之下。透過採用 Unified Harness Protocol,開發者可以管理多元的 AI workflow,而無需為每個特定 model 或 runtime 重建 task lifecycle。Mixture of Experts (MoE) layer 透過對每個 token 僅啟動部分 expert 來降低計算 FLOPs,但當 expert 分散在多張 GPU 時,會帶來顯著的 communication overhead。Router 決定 expert assignment,因此需要透過 intra-server 的 NVLink 或 inter-server 的 InfiniBand 等 interconnect 傳輸 activation vector。儘管減少了 per-token 計算量,這種「all-to-all」通訊模式仍可能增加 end-to-end 延遲。因此,balanced routing 與 communication overlap 等最佳化技術對於減緩這些網路延遲至關重要。
閱讀原文 ↗目錄
你的 agent 碰壁卡住了?Beacon handoff 讓另一個 agent 能無縫接續先前的進度。
Beacon 是一個開源 memory layer,旨在解決不同 AI coding agent 之間 context fragmentation 的問題。它能擷取來自 Claude Code、Cursor 和 Codex 等工具的 session activity,讓使用者無需重新開始即可在不同的 agent 中接續工作。透過生成 handoff brief 或使用原生 resume 指令,Beacon 確保在單一 session 中取得的進展可在各種 agent harness 之間隨處移植。該工具在本地端運作,直接從使用者的機器讀取 session store,以確保隱私與安全性。
- Beacon 提供可移植的 memory layer,能擷取超過 20 種 coding agent harness 的活動紀錄。
- beacon handoff 指令允許使用者在同一個或不同的 agent 中接續 session。
- 當無法使用原生 resume 時,Beacon 會生成包含目標、進度與相關檔案的 handoff brief。
- 該工具為 local-first 架構,直接讀取使用者機器上的 session store,不會上傳資料。
- Beacon 支援主流的 coding agent,包括 Claude Code、Codex、Cursor、OpenCode 與 Cline。
- 這是一個由 Asymptote Labs 開發的開源專案。
System 1 與 System 2 Agent Harness 比較
文中區分了 System 1 與 System 2 AI 整合模式,其中 System 1 處理有界限的判定,而 System 2 負責處理開放式、多步驟的任務。HarnessRouter 作為一個開源 infrastructure layer 被引入,旨在將這些模式統整在單一 execution framework 之下。透過採用 Unified Harness Protocol,開發者可以管理多元的 AI workflow,而無需為每個特定 model 或 runtime 重建 task lifecycle。
- System 1 harness 專為快速、有界限的判定所設計,由 application code 保持對 workflow 的主導權。
- System 2 harness 則用於 coding 或 research 等複雜任務,由 LLM 規劃步驟,但在受防護的 tool permission 範圍內運作。
- HarnessRouter 是一個開源 infrastructure layer,將 System 1 與 System 2 模式的執行標準化。
- Unified Harness Protocol 提供了單一 task management 協定,涵蓋進度 streaming、檔案交換與失敗回報機制。
- 像 Jev 這類的特定 model 針對 System 1 角色進行了最佳化,而 Codex、Claude Code 與 Hermes 則作為 System 2 agent-harness 的基礎架構。
跨 GPU 的 MoE routing 是如何運作的?
Mixture of Experts (MoE) layer 透過對每個 token 僅啟動部分 expert 來降低計算 FLOPs,但當 expert 分散在多張 GPU 時,會帶來顯著的 communication overhead。Router 決定 expert assignment,因此需要透過 intra-server 的 NVLink 或 inter-server 的 InfiniBand 等 interconnect 傳輸 activation vector。儘管減少了 per-token 計算量,這種「all-to-all」通訊模式仍可能增加 end-to-end 延遲。因此,balanced routing 與 communication overlap 等最佳化技術對於減緩這些網路延遲至關重要。
- MoE layer 取代了 dense feed-forward network,改用多個 expert,每個 token 僅執行少部分權重計算。
- MoE model 的推論延遲可能會增加,因為系統必須在存放特定 expert 的不同 GPU 之間傳遞 activation vector。
- Intra-server 的 GPU 通訊通常由 NVLink 和 NVSwitch 等高頻寬 fabric 負責處理。
- 用於 MoE routing 的 inter-server 通訊通常仰賴 InfiniBand 或 Ethernet 叢集網路。
- 跨 token batch 與多個 GPU 交換 activation 的過程稱為 all-to-all communication。
- MoE 的最佳化策略包括透過 balanced routing 來避免 GPU bottleneck,以及將 communication 與 local computation 進行重疊(overlapping)。