Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 204 additions & 0 deletions research/Hermes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
# Hermes Agent 对 Mycelium Protocol 生态的适用性分析

> 调研日期:2026-05-05
> 对象:[NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent) v0.12.0
> 目标:评估 Hermes Agent 是否有助于实现 Brood 及 Mycelium Protocol 生态的现有目标和扩展目标

---

## 1. Hermes Agent 是什么

Hermes Agent 是 Nous Research 于 2026 年 2 月发布的开源自改进 AI Agent 框架。MIT License。截至 2026-05,GitHub 133k stars。

**核心定位**:一个**自托管、持久运行、越用越聪明**的 AI Agent——它从经验中自动创建 skill,在使用中自改进 skill,跨 session 保留记忆。

### 关键特性

| 特性 | 描述 |
|:---|:---|
| **自学习循环** | 复杂任务(5+ tool calls)后自动创建可复用 skill 文档;使用中自动 patch 过时/不完整的 skill |
| **持久记忆** | MEMORY.md + USER.md 跨 session 持久化;SQLite + FTS5 全文检索历史;可插拔记忆后端(Honcho/Mem0 等) |
| **多平台网关** | Telegram / Discord / Slack / WhatsApp / Signal / CLI 统一接入,单进程服务 |
| **模型无关** | 支持 200+ 模型(OpenRouter/NIM/OpenAI/本地 endpoint),无代码切换 |
| **MCP 支持** | 原生 MCP client,可连接任意 MCP server 扩展工具能力 |
| **Skill 生态** | 672 skills(89 内置 + 62 可选 + 521 社区),agentskills.io 开放标准 |
| **自进化** | DSPy + GEPA 遗传进化搜索优化 skill/prompt/代码(hermes-agent-self-evolution repo) |
| **部署灵活** | 本地 / Docker / SSH / Serverless(Modal 休眠),一行 curl 安装 |
| **子 Agent** | 可 spawn 子 agent 实例(默认 3 并发),隔离上下文 |
| **定时任务** | 自然语言或 cron 表达式调度,可附加 skill 和脚本 |
| **上下文发现** | 自动识别 `.hermes.md` / `AGENTS.md` / `CLAUDE.md` / `SOUL.md` 等项目文件 |

### 技术架构

```
AIAgent (orchestration core)
├── prompt_builder → system prompt 组装(personality + memory + skills + model 指令)
├── context_compressor → 超长上下文有损压缩
├── model_tools (61 tools / 52 toolsets) → 工具注册 + 调度 + 并行执行
├── hermes_state (SQLite + FTS5) → session lineage + 原子写入
├── plugin system → user/project/pip 三级插件发现
│ ├── memory providers (Honcho/Mem0/Supermemory...)
│ └── context engines (可替换压缩策略)
├── MCP client → 动态工具后端
├── gateway (20 platform adapters) → 统一消息路由
└── cron scheduler → 定时任务 + skill 附加
```

---

## 2. Brood / Mycelium Protocol 当前目标

从 CLAUDE.md、MISSION.md、backlog 任务中提取的核心目标:

| # | 目标 | 当前实现 |
|---|:---|:---|
| G1 | **项目管理 + 静态发布** | backlog CLI + export-backlog.js → dist/ |
| G2 | **生态 AI 上下文发布** | L0/L1/L2 三层 @-include,所有 repo 引用 Brood |
| G3 | **自动化 Skill 系统** | sync-progress / sync-context-reverse / license-update |
| G4 | **进度扫描 + 同步** | scan 三大目录 → 分析 commit → 写入任务文件 → build → deploy |
| G5 | **License 合规** | 七件套模板 + CLA bot |
| G6 | **跨 repo 协作感知** | ECOSYSTEM_MAP + INTERFACES.md + 依赖关系图 |
| G7 | **个人 AI Agent(iDoris/Agent24)** | 独立 repo,各自开发中 |

---

## 3. 匹配度分析:Hermes Agent 能帮什么

### ✅ 高匹配(直接增强现有目标)

#### 3.1 替代/增强 Agent24 的个人 Agent 能力(G7)

**当前痛点**:Agent24 是自研框架,功能尚在 35-45% 进度。

**Hermes 方案**:
- Hermes 的 skill 自创建 + 自改进机制 = Agent24 想做的"自进化 Claude Code Skills 系统"
- 持久记忆 = Agent24 的 MemPalace 模块目标
- 多平台网关 = Agent-WeChat-SDK 想做的微信/Signal/Telegram 接入
- 已有 672 skills 生态 vs Agent24 从零开始
- **建议**:评估 Agent24 是否可以 pivot 为 Hermes 生态的 Mycelium 定制层,而非从零自研

#### 3.2 定时自动化 sync-progress / sync-context-reverse(G3, G4)

**当前痛点**:三个 skill 只能人工触发,容易忘记跑 → 进度报告过期。

**Hermes 方案**:
- Hermes 的 cron scheduler 支持自然语言定时("每天早上 9 点跑 sync-progress")
- 可附加 skill + 脚本,天然适合定时扫描 + 同步 + 部署
- 子 agent spawn = 并行扫描多个 org 目录
- **具体做法**:将 sync-progress 和 sync-context-reverse 注册为 Hermes skill,配置 cron 每日自动执行

#### 3.3 跨平台生态协作通知(G6)

**当前痛点**:进度更新、接口变更只在 Brood 静态站上可见,团队成员需要手动检查。

**Hermes 方案**:
- Gateway 接入 Telegram/Discord/Slack → 自动推送进度报告/接口变更通知
- 团队成员可在 IM 中直接问 Agent:"SuperPaymaster 当前进度?"
- 比静态页面更主动的信息推送

### 🔶 中等匹配(需要适配但有价值)

#### 3.4 增强上下文管理(G2)

**当前做法**:手动维护 L0/L1 文件,@-include 静态引用。

**Hermes 视角**:
- Hermes 的 context discovery 自动识别 `CLAUDE.md` 等文件——和我们的体系兼容
- 但 Hermes 用自己的 `.hermes.md` / `SOUL.md` 格式,需要适配
- **机会**:用 Hermes 插件将 Brood 的 L0/L1 文件注册为 memory provider,让 Hermes Agent 也能感知生态上下文
- **风险**:两套上下文系统并行可能增加维护负担

#### 3.5 iDoris 个人 AI 底座(G7)

**当前定位**:iDoris = 隐私优先 · Token Free · 边缘计算 · 多端自进化开源 AI 模型

**Hermes 视角**:
- Hermes 自托管 + 无遥测 + 无云锁定 = 符合 iDoris 的隐私优先理念
- 但 Hermes 是 Python(88%),iDoris 可能需要更轻量的边缘部署
- 可作为 iDoris 的"大脑层",边缘推理层另做

### ⚠️ 低匹配 / 需谨慎

#### 3.6 Blockchain/Web3 集成

- Hermes 本身**没有原生 Web3 能力**
- 通过 MCP 可连接 GoldRush(链上数据查询),但和 SuperPaymaster/AirAccount 的合约交互无直接关系
- 我们的 Web3 基础设施(SuperPaymaster/AirAccount/SuperRelay)是 Solidity + Go + TypeScript 技术栈,Hermes 的 Python 生态帮不上底层合约开发
- **但可以做**:用 Hermes Agent 作为 Web3 操作的自然语言前端("帮我查 SuperPaymaster 在 Sepolia 上的余额")

#### 3.7 静态发布系统(G1)

- Hermes 不替代 backlog CLI + export-backlog.js
- 但可以通过 cron 自动触发 `pnpm run build` + `pnpm run deploy:cf`

---

## 4. 战略建议

### 短期(1-2 周):试点验证

1. **在 Brood 中部署 Hermes Agent 实例**
- 安装到 `~/Dev/auraai/hermes-instance/` 或独立目录
- 配置使用 OpenRouter(复用已有 API key)
- 让它读取 Brood 的 CLAUDE.md 和 protocol/ 文件作为上下文

2. **将 sync-progress 注册为 Hermes skill**
- 测试自动定时执行(每日一次)
- 验证能否自动完成 扫描 → 同步 → build → deploy 全流程

3. **开通 Telegram bot 通知**
- 进度报告自动推送到团队 Telegram 群

### 中期(1-2 月):Agent24 整合评估

4. **Agent24 + Hermes 整合调研**
- Agent24 当前进度 45%,核心功能(skill system/memory/eval)和 Hermes 高度重叠
- 评估:Agent24 转型为 Hermes plugin/skill package vs 继续独立开发
- 决策标准:Hermes 的 skill 标准(agentskills.io)能否承载 Agent24 的差异化功能

5. **iDoris 架构对接**
- Hermes 作为 iDoris 的"云端大脑"层,边缘设备用轻量推理
- 通过 MCP 连接 iDoris 的本地模型能力

### 长期(3+ 月):生态级 Agent 基础设施

6. **Mycelium + Hermes 深度集成**
- 定制 Hermes memory provider:连接 Brood 的 L0/L1 上下文
- 定制 Hermes skill package:封装生态所有自动化能力
- 每个生态 repo 可配置独立的 Hermes profile(隔离上下文)

---

## 5. 风险与顾虑

| 风险 | 级别 | 缓解措施 |
|:---|:---:|:---|
| Hermes 发展方向可能偏离我们需求 | 中 | MIT License,可 fork;先小范围试点 |
| 两套 skill 系统并行(Claude Code + Hermes)增加复杂度 | 高 | 明确边界:Claude Code = 开发时 AI,Hermes = 运营时自动化 Agent |
| Python 生态 vs 我们的 TS/Solidity/Go 主技术栈 | 低 | Hermes 通过 shell/MCP 调用外部工具,不要求项目本身用 Python |
| 133k stars 项目可能快速演进,API 不稳定 | 中 | 锁版本(v0.12.0),skill 用标准格式降低耦合 |
| 自托管运维负担 | 低 | Docker 部署 + Modal serverless 休眠,基本零运维 |

---

## 6. 结论

**Hermes Agent 对 Mycelium Protocol 生态有显著价值**,核心在三个方向:

1. **自动化运营**:sync-progress / sync-context-reverse 等 skill 的定时自动执行,解决"忘记跑/漏掉 build+deploy"的反复出现的人为失误
2. **多平台触达**:进度报告、接口变更、合规状态通过 Telegram/Discord 主动推送给团队,比静态页面更有效
3. **Agent24/iDoris 加速**:Hermes 的 skill 自创建 + 持久记忆 + 多平台网关 覆盖了 Agent24 70% 的规划功能,可大幅缩短开发周期

**建议立即启动短期试点**(1-2 周),用 sync-progress 自动化作为切入点验证可行性。

---

## Sources

- [NousResearch/hermes-agent — GitHub](https://github.com/NousResearch/hermes-agent)
- [Hermes Agent 官方文档](https://hermes-agent.nousresearch.com/docs/)
- [Architecture — Developer Guide](https://hermes-agent.nousresearch.com/docs/developer-guide/architecture)
- [Features Overview](https://hermes-agent.nousresearch.com/docs/user-guide/features/overview)
- [Skills Hub](https://hermes-agent.nousresearch.com/docs/skills/)
- [Hermes Agent Self-Evolution](https://github.com/NousResearch/hermes-agent-self-evolution)
- [Hermes Agent + GoldRush 集成](https://goldrush.dev/agents/hermes-agent/)
Loading
Loading