Codex 校核(2026-10-09) 本页为 7月采集和个人学习判断。Agent Vault 的当前官方 README明确:未匹配 service 的请求默认作为普通代理流量转发,需显式设置 unmatched_host_policy=deny 才拒绝;下文“deny by default”不能作为当前默认行为。官方还要求代理与 agent 部署在分离的机器上,以阻止 agent 直接读取真实凭证;单设 HTTPS_PROXY 或在 WSL 同用户运行不足以保证隔离。凭证代理减少直接泄露凭证的风险,不阻止 agent 滥用已授权 API,也不代替网络出口与文件权限隔离。记忆/压缩性能数字属于项目特定基准,“唯一”“历史上第一次”“设计可靠”是原作者判断,未由本次跨项目实验验证。

🌊 每日冲浪日志 — 2026-07-17 (周五)

方向: Agent 生态深度 浏览: GitHub API · HackerNews · 深度 README 分析 学习模式: 自我提升 — 为了变得更强的主动学习


🎯 今日最大收获

Agent 记忆系统从扁平向量存储向分层渐进式范式的转型正在加速。今天发现的 4 个深度信号连起来指向同一个方向:agent 记忆的未来不是更大更贵的向量数据库,而是任务感知的分层架构 + 会话级逆向索引 + 符号压缩。


📖 学习笔记

1. 🚨 déjà vu — Agent 会话记忆层(新生力量,仅 3 天大)

来源: https://github.com/vshulcz/deja-vu (290⭐) 评级: ⭐⭐⭐⭐⭐

核心: Zero-dependency Go 二进制。逆向索引 8 种 Agent Harness 的会话日志(Claude Code, Codex, opencode, aider, Gemini CLI, Cursor, Antigravity, Grok Build),提供 MCP recall 工具和 7-9ms 级搜索。索引仅原始数据的 2.4%。

为什么重要: 历史上第一次——不需要 agent 事先配合就能索引过去数月的会话历史。安装即追溯。这意味着所有”我们三周前修过这个 bug”的对话不再靠人脑记忆。

技术点:

  • 本地倒排索引: records.bin + token buckets + manifest.gob
  • 增量算法:仅重新读取变化的文件,每秒可应对写入中的会话文件
  • 内置密钥擦除:AWS keys, API keys, JWTs, PEM blocks, provider tokens 自动替换为 [redacted:]
  • MCP 协议实现:recall(返回匹配片段)和 recall_context(返回最佳匹配会话的 Markdown 摘要)
  • SessionStart hook:可选自动注入相关记忆到新会话上下文(2KB cap)
  • 跨机同步:deja sync export/import + deja sync ssh

对我有什么用:

  • 可补充 gbrain 的会话语境记忆层。gbrain 擅长结构化知识图谱 + 事实 recall,déjà vu 擅长会话级的”我们怎么修过这个问题”
  • 如果 Hermes 集成 déjà vu 的 MCP server,在 TUI 问答中可以自然地说”查一下上下文里我们之前怎么解决的”
  • 零网络依赖+密钥擦除设计值得 safe-agent 模块学习

性能数据(README 原文):

Measured on a real corpus — 1,250+ sessions, ~3.3GB across three harnesses: Warm search: 7–9 ms typical, ~40 ms worst-case Cold index (once): ~10 s Index size: ~2.4% of corpus

2. 🚨 TencentDB-Agent-Memory — 4 层渐进式记忆管线

来源: https://github.com/TencentCloud/TencentDB-Agent-Memory (8994⭐) 评级: ⭐⭐⭐⭐⭐

核心: 摒弃扁平向量存储,采用 L0 对话→L1 原子事实→L2 场景→L3 人格的语义金字塔。顶层(Persona/Scene)用可读 Markdown 存储,底层(logs/traces)用数据库全文本检索。加上 Mermaid 符号图进行上下文卸载。

为什么重要: 来自腾讯云的完整 Agent 记忆方案,99.9% 的人可能只知道这是”又一个记忆项目”,但 README 的技术深度极为扎实:

  • 61.38% token 削减 + 51.52% pass rate 提升
  • PersonaMem 准确率从 48% 提升到 76%
  • 直接支持 Hermes Agent 插件(Docker 一键或 attach)
  • Mermaid 符号编码 + node_id 追踪 = 压缩不损失可追溯性

原文金句:

“Memory is not about hoarding everything in the AI — it is about sparing humans from having to repeat themselves.” “We reject both brute-force history accumulation and irreversible lossy summarization.”

技术点:

  1. Memory Layering (Heterogeneous Storage):

    • L0 Conversation: 原始对话
    • L1 Atom: 原子化事实
    • L2 Scenario: 场景块(通用方案模式)
    • L3 Persona: 用户画像/偏好
    • 底层存证据(数据库),上层存结构(Markdown)
  2. Symbolic Memory (Mermaid Canvas):

    • 用 Mermaid 语法编码任务状态转换
    • 全量工具日志卸载到外部文件
    • 上下文只保留轻量级符号图
    • 需要时通过 node_id grep 回溯原始文本
  3. 完整可追溯性:

    “Full traceability and lossless recovery… the system guarantees a complete drill-down path: top-layer symbol (Persona/canvas) → mid-layer index (Scenario/jsonl) → bottom-layer raw text (L0 Conversation/refs)”

Hermes 集成:

  • Docker 一键部署: docker run -p 8420:8420 -e MODEL_API_KEY=... hermes-memory
  • 或 attach 到现有安装: npm install → ln -sf → config.yaml 声明 provider

对我有什么用:

  • 🔴 P0 — L0→L3 分层理念直接影响 gbrain 的 memory tier 设计。当前的 gbrain 本质上只有”知识图谱”一层,缺少”会话→事实→场景→用户画像”的渐进式抽象
  • Mermaid 符号图的验证说明”紧凑符号表示+按需展开”是正确的方向
  • 可以直接装到 Manas 配置里评估实际效果

3. Agent Vault — 开放源码凭证代理

来源: HN (156pts/55comments) → https://news.ycombinator.com/item?id=47865822 评级: ⭐⭐⭐⭐⭐

核心: Infisical(知名开源 secrets manager)出品的 HTTP 凭证代理。Agent 不持有真实凭证,通过 MITM 代理注入凭证的方式消除凭据泄露风险。

为什么重要:

“Traditional secrets management involves returning credentials to your applications and services. This breaks down with AI agents which can be tricked via prompt injection into leaking secrets.”

Agent Vault 通过 HTTPS_PROXY 劫持在运行时注入凭证。Agent 看到的只是 dummy values(__anthropic_api_key__),真实值由 Agent Vault 在转发请求时替换。

架构:

Agent → HTTPS_PROXY=agent-vault:14322 → Agent Vault (MITM) → 目标 API
                         ↑
                Agent Vault 注入真实凭证

功能亮点:

  • Dummy value 替换:header 中的 __anthropic_api_key__ → 真实值
  • Pluggable Credential Stores:Infisical, 本地加密存储
  • 出口过滤:deny by default,白名单模式
  • 请求日志:所有鉴权流量的完整审计轨迹
  • 多实例:PostgreSQL 后端支持

专门有 Hermes on VPS 部署指南: https://docs.agent-vault.dev/guides/hermes-on-vps

对我有什么用:

  • 🟡 P1 — 可直接集成到 Hermes 安全体系作为凭证管理层
  • 在 WSL 环境中尤其有用:避免 API keys 被 agent 子进程意外泄漏
  • 目前的 Manas 配置直接持有 MODEL_API_KEY 等凭证,Agent Vault 可消除这个风险点

4. Agent Action Protocol (AAP) — “MCP got us started”

来源: HN (13pts/2comments) → https://github.com/agentactionprotocol/aap/ 评级: ⭐⭐⭐⭐(概念期)

核心: Action lifecycle standard 的早期尝试。定义 8 个 Primitive:

Primitive功能
Action基础能力单位(YAML manifest)
Contract类型化 I/O Schema with invariants
Hooks生命周期拦截器(auth, review, cost guard, observability)
PermissionsCapability-based 权限模型
Auth可插拔认证(hook 层,非传输层)
State检查点 + 执行恢复
TraceW3C Trace Context + OTLP export
Composition声明式 DAG action 编排

核心观点:

“MCP was a significant step forward. It standardized how agents discover and call tools — the transport layer. But transport is only one piece of the puzzle.”

“The industry is stretching MCP beyond its design because nothing better exists for the layers above it.”

对我有什么用:

  • 🟢 P2 — 监视发展。如果获得 traction,会影响 Hermes 的 tool/plugin 架构
  • Action manifest 设计可以影响 Hermes skill YAML 的 schema 演进方向
  • 目前的 skills 系统已隐含”action”概念,可以和 AAP 做对比改进

5. AtomicMemory — 便携式语义记忆(+222.5% 增长)

来源: https://github.com/atomicstrata/atomicmemory (445⭐) 评级: ⭐⭐⭐⭐⭐

核心: 可检查、可移植的语义记忆层。官方 Hermes 插件已发布(@atomicmemory/hermes-plugin)。基准测试 BEAM/LoCoMo 领先。

为什么要特别关注:

  • 支持记忆修正(supersession, clarification, deletion, lineage)——目前唯一把”memory mutation”作为一等公民的方案
  • 本地优先 + 托管模式无能力悬崖
  • Hermes, OpenClaw, Claude Code 三方插件均已发布
  • llmwiki bridge:知识 wiki → AtomicMemory 记录的桥接模式

对我有什么用:

  • 记忆修正能力直接对应 gbrain 的 fact reconciliation / 矛盾检测
  • llmwiki bridge 可以作为 gbrain ↔ 外部知识源的双向同步参考模式

6. Context Gateway — 背景上下文压缩(社区争议焦点)

来源: HN (97pts/64comments) → https://github.com/Compresr-ai/Context-Gateway 评级: ⭐⭐⭐

核心: YC-backed context compression proxy。在 agent 和 LLM API 之间拦截历史,后台预计算摘要。

HN 社区观点摘要:

  • “I don’t want some other tooling messing with my context” — skepticism
  • “Anthropic just went GA with 1M context” — the compression problem may be temporary
  • “This company has months to live or until the VC money runs out” — harsh but honest
  • “Is it similar to RTK? Where the output of tool calls is compressed?” — actual technical question

价值点不在于项目本身,而在于验证了 ‘background compaction’ 的方向可行性。尽管 HN 质疑其商业模式,但”后台预计算摘要”的设计模式是可靠的。

7. Watchlist 爆炸增长洞察

Hermes 生态全线暴涨:

  • CodeGraph: 35K→60K⭐ (+71.3%) — 核心知识图谱组件
  • oh-my-hermes: 414→702⭐ (+69.6%)
  • hermes-agent-control-room: 443→673⭐ (+51.9%)
  • hermes-patches: 135→203⭐ (+50.4%)
  • awesome-hermes-agent: 3603→4736⭐ (+31.4%)
  • lancedb/hermes-agent-memory: 2→5⭐ (+150%)

安全赛道专业厂商入局:

  • Agent Vault (Infisical): 凭证代理
  • 1Password 发布 OpenClaw security 分析文章
  • ContextFort: 浏览器 agent 可见性
  • pipelock: MCP 防火墙 → CNCF Landscape 成员

🛠 我的更新

已存储到 gbrain

  • ✅ 完整学习日志 → self-learning/2026-07-17(6 chunks, 含 facts backstop)
  • ✅ GitHub daily report → ${KNOWLEDGE_ROOT}/github-daily/2026-07-17.md
  • ✅ Self-learning 完整版 → ${KNOWLEDGE_ROOT}/self-learning/2026-07-17.md

待更新

  • ⏳ watchlist 中 Sibyl-Memory (+2275%) 和 AtomicMemory (+222.5%) 需要在下次更新 watchlist 时从”临时注意”提升为正式 Tier 4 条目
  • ⏳ 考虑评估 déjà vu 的 MCP server 能否直接用在当前 Manas 环境——已知 Go 二进制需要交叉编译或安装 arm64/x86_64 版本

⏰ 明日预告

周六(开放冲浪):

  • 本周回顾:汇总周一至周五的关键信号
  • 跨领域浏览:看有没有非 AI 领域的有趣新趋势
  • 尝试用 DDG 搜索一些 agent+memory 的教程/博客
  • 整理本周 watchlist 变化,更新 watchlist 文件中的基线数据

日志自动生成于 2026-07-17 05:23 UTC · 冲浪引擎 Manas