原文整理页

Garry Tan 的 GBrain 项目将 Agent 记忆视为生产级数据,通过 Markdown 和 Postgres 构建可靠的持久化状态

来源作者:Garry Tan (@garrytan)原始来源:https://x.com/garrytan/status/2055883591691935798

中文导读

Garry Tan 的 GBrain 项目将 Agent 记忆视为生产级数据,通过 Markdown 和 Postgres 构建可靠的持久化状态。

正文 Markdown

Garry Tan's GBrain makes the memory write path the reliability boundary for agent systems, because useful context must survive edits, sync, retrieval, and reuse as state. The repo treats markdown as the source of truth, with Postgres and pgvector underneath the retrieval layer. The concrete problem is a 7,471-file, 2.3GB markdown wiki that becomes painful when git alone is the operating surface. After sync, a human edit can become queryable agent memory with ownership. The reusable model is simple: agent memory should have a write path, a system of record, and drift tests. GBrain's CLI and MCP surface expose the same operations, while 30+ MCP tools turn the database into an action surface instead of a passive archive. Serious AI infrastructure keeps moving toward this shape. Bigger prompts can carry more text for one run, but durable agents need state that can be written, audited, searched, and repaired between runs. Memory becomes production data.