Phase 0-2: Schema cleanup, typed relations, event-driven automation

- Phase 0: AGENTS.md cleanup (dedup quotes, renumber sections, merge qmd)
- Phase 1: typed relations (manage-relations.py, graph-search.py, check-staleness.py, detect-conflicts.py)
- Phase 2: frontmatter validator, weekly lint, knowledge promotion, git hooks
- Fix .gitignore to track tools/ and .githooks/
- Fix git remote URL (remove plaintext token)
- New wiki pages: 504 pages, 34 raw sources
This commit is contained in:
hehaiguang1123
2026-07-01 08:05:43 +08:00
parent e544d6e04a
commit a6f05ab2d5
1067 changed files with 522992 additions and 819 deletions
@@ -0,0 +1,51 @@
# Hermes智能体进阶:从知识基建到微信协同的实战
> 来源:微信公众号「Dr.Xiang 永红博士」,Cubox 转码
> 链接:https://mp.weixin.qq.com/s?__biz=MzIyNDU3OTkzMg==&mid=2247483897&idx=1&sn=579dcf2eb280ebb099e1a48ff885e0c6
## 核心要点
Hermes Agent 进阶实践,主要涉及三个方面:
### 1. LLMWiki 知识基建
- Obsidian + LLMWiki规范 + Git同步 的组合
- 用 `hermes skills install wiki-vectorization` 初始化
- 批量摄入 12 篇 arXiv 论文 → 39 个文件(PDF + Markdown + 实体页 + 概念页)
- 关键配置:`export WIKI_PATH="$HOME/wiki"` + `export OBSIDIAN_VAULT_PATH="$HOME/wiki"`
### 2. 多智能体协作闭环
- default(项目经理)+ coding(代码专家)分工
- 典型流程:拆解任务 → 编写脚本 → 审查代码 → 修复 Bug → 配置定时任务
- SOUL.md 中写入协作规范,Agent 自动遵循
- 实操案例:Palantir 新闻爬取,12分56秒完成
### 3. 微信入口的混合记忆
- 微信语音 → 自动转文字 → Hermes 接收指令
- 对话记录存入 chroma_db/ 向量知识库
- "长期记忆 + 实时检索" 混合模式
## 生产环境排坑记录
### 坑1Tirith 安全扫描拦截脚本
- 现象:cron 执行 Python 脚本被拦截,提示 `tirith:unknown`
- 原因:glibc 版本不兼容(系统 2.32,需要 2.33+)导致 Tirith 崩溃,退出码被误判为禁止执行
- 修复:在退出码解析前增加运行时崩溃检测——当 stderr 包含 GLIBC/libc.so.6 且 stdout 为空时放行
### 坑2Node 版本路径冲突
- 现象:已用 nvm 安装 Node 24,页面仍提示 v22.22.2
- 排查:`which node` → `/home/admin/.local/bin/node` 优先级高于 nvm
- 解决:移除 `.local/bin/node` 软链接,执行 `hash -r` 刷新命令哈希
### 坑3:微信端提示 "Gateway shutting down"
- 原因:后台启动 gateway 方式不当
- 稳定方案:`npx henohup hermes gateway run --profile default > default.log 2>&1 &`
## 工作模式迁移
信息摄入 → Hermes 自动归档/提取/关联到 Wiki
任务执行 → 微信一句话,coding Agent 写脚本/调试/部署定时任务
知识沉淀 → 所有产出回流 Git 仓库,成为可检索、可复用的资产
---
*本文所述功能基于 Hermes Agent v0.13.0 (2026.5.7),部署于阿里云 Linux 环境。*