從 OpenClaw 到 Hermes:重構長期可用的 Agentic AI 架構 (Rethinking Agentic AI Architecture: From OpenClaw to Hermes)

原始來源與檔名:20260512_2026-05-12T093057+0800-从 OpenClaw 到 Hermes:重看 Agentic AI 架构.md

來源:[[@xxxjzuo]] / X (Twitter) — 2026-05-11 原始檔名:2026-05-12T093057+0800-从 OpenClaw 到 Hermes:重看 Agentic AI 架构.md


NAPKIN | 餐巾紙

餐巾紙公式

Agent Usability = Interface (Real Workflow) + Routing (Capability Match) Agent Longevity = Managed Runtime (Memory + Configurable Skills + Observability + Safe Failure) Agent OS ≠ Chatbot. It is a set of engineering constraints.

讓 Agent 跑起來很容易,讓它長期活著很難。當底層模型都一樣聰明時,拉開差距的不是「它會用多少工具」,而是系統的控制面:它知不知道什麼時候該看流程、什麼時候該驗證環境、記憶體如何不變成垃圾堆。OpenClaw 解決了「如何讓 Agent 進入真實工作流(非對話框)」;Hermes 解決了「如何自主更新記憶與精細化管理 Skill」。一個成熟的個人 Agent,本質上是一個受嚴格工程約束的「代管執行階段 (Managed Runtime)」。

一句話

本文是作者連續兩個月深度使用 OpenClaw 與 Hermes Agent 後的架構復盤。作者破除了「誰的模型更聰明」的迷思,指出決定 Agent 系統能否長期運作的核心在於「基礎設施的管理能力」。文章將 Agent OS 拆解為七層架構(介面、路由、工具執行、能力、記憶、生命週期、可觀察性),並深入分析了為何 Skill 不該只是 Prompt 模板,而 Memory 也不該只是事實垃圾場。

餐巾紙草圖

[The 7-Layer Managed Runtime for Agents]

1. Interface       -> Where tasks enter (Telegram, CLI, Cron, Webhook). Not just a chat box.
2. Routing         -> Matching the task to the right Skill/Profile. Avoids context tax.
3. Tool Execution  -> Scoped "Hands". (Reading != Deleting).
4. Capability      -> "Skills". Progressive loading (Scripts, Refs, Assets), not giant prompts.
5. Memory          -> Stable facts (System rules). Temporary progress stays in Session.
6. Task Lifecycle  -> Agent-native cron (spawn with boundaries, logs, fail-safes).
7. Observability   -> Human control. Traceability. The emergency brake.

ROUND 1: SKELETON | 骨架掃描

“這篇文章在說什麼”

ROUND 2: DISSECTION | 血肉解剖

“憑什麼這麼說”

核心論證鏈

  1. 能力過載導致的 Context Tax: 作者犀利指出,Skill 寫得越多不一定越強。如果 Routing 機制不嚴謹,每次任務啟動時模型都要在龐雜的描述中篩選,這就是在繳納「上下文稅」。沒有選擇機制的工具堆砌,只會讓系統陷入混亂。
  2. 記憶體的語義隔離 (Semantic Isolation of Memory): 這是對傳統 “Vector DB as Memory” 的嚴厲批判。作者精確定義了界線:穩定的事實(如環境變數、偏好)進 Memory;SOP 流程進 Skill;任務中的臨時進度(如我現在讀到了第幾行)只留在 Session。如果不做隔離,長期的 Memory 就會被垃圾填滿,導致幻覺與效能崩潰。
  3. 驗證與可觀察性 (Verification & Observability): 多 Agent 並行(Spawn)很簡單,難的是驗證。子 Agent 回報「已完成」,不代表檔案真的存在或 API 真的跑通了。沒有主 Agent 的 Guardrails 和日誌,多 Agent 系統只是在「並行化地製造錯誤」。

關鍵證據

邊界條件

ROUND 3: SOUL | 靈魂提取

“還能怎么用”