GBrain
AI agent 的记忆层:自织知识图谱 + 混合检索 + 合成答案,markdown 为数据源
GBrain 是 Y Combinator CEO Garry Tan 为其 OpenClaw / Hermes agent 构建的开源记忆系统。以 markdown 文件为数据源,用 PGLite(嵌入式 Postgres 17 WASM)或 PostgreSQL + pgvector 做存储。混合检索(向量 HNSW + BM25 关键词 + 倒数秩融合 + 重排序)与自织知识图谱协同定位页面:知识图谱在每次写入时从 markdown 提取实体引用并创建类型化边(attended / works_at / invested_in 等),无需 LLM 调用。合成层(gbrain think)在此基础上生成带引用的答案与缺口分析——不仅给出结论,还标明哪些信息缺失或过时。内置 43 个 curated skills 与 30+ MCP tools,支持个人脑(PGLite 零配置启动)和公司脑(OAuth 2.1 租户隔离、scope-gated 访问),附带夜间 dream cycle 执行 cron 驱动的 enrichment、citation 修复与矛盾检测。
社区实测
社区认可 GBrain 作为单人操作者(OpenClaw/Hermes)的高效个人 Agent 记忆方案,混合检索效果显著优于纯向量 RAG,但适用范围窄,不适合非单人或多栈场景。
- 混合检索策略在 BrainBench 基准上大幅优于纯向量 RAG
- 为 OpenClaw 或 Hermes 的单人操作者提供随月度增长的 markdown 记忆脑
- 通过摘要索引文件实现存储高效的记忆链接,不占大量空间
- 强依赖操作者手工编写 schema 和技能,不适合自动化 Agent 记忆需求
- 将个人记忆开放给 LLM 引发隐私顾虑,社区质疑是否需要本地推理
GBrain Alternatives: 5 Best Agent Memory SystemsGarry Tan's GBrain – most important idea of the year | Hacker Newsgbarin - is it really good? : r/openclaw - Reddit
截至 2026-07-05
bun install -g github:garrytan/gbrain && gbrain init --pglite gbrain init --pglite && claude mcp add gbrain -- gbrain serve