TencentDB-Agent-Memory README

The project's README from github.com/TencentCloud/TencentDB-Agent-Memory. As one markdown file: README.md.

TencentDB Agent Memory

Agents remember. Humans innovate.

TencentCloud%2FTencentDB-Agent-Memory | Trendshift

npm License: MIT Node OpenClaw Hermes Discord

Installation · Supported Agents · What is it? · Team Play · Technical Implementation · Benchmark · Roadmap

English · 简体中文


Latest: Team Memory Beta is evolving quickly — install it and start exploring in minutes.

Installation

Start all three services in one go (memory-core + memory-hub + proxy):

git clone https://github.com/Tencent/TencentDB-Agent-Memory.git
cd TencentDB-Agent-Memory/deploy/global-images
cp .env.example .env
$EDITOR .env       # Fill in two sets of LLM parameters (memory group + proxy group)
./start-all.sh     # Launch everything with one command; when finished, it prints a one-liner you can paste directly into Claude

Open the panel: http://localhost:8125.

Complete installation documentation (standalone Memory Hub deployment, Proxy + Claude Code / CodeBuddy usage, stop and cleanup, port reference, etc.) is available in INSTALL.md (中文: INSTALL_CN.md). The MongoDB storage backend is experimental (off by default); see INSTALL.md · MongoDB storage backend.

Migrating data from an older version

If you're already on an older release (v1.x / v0.x) and want to bring your existing data over to v2.0.0+, we provide a migration tool:

See Data Migration Tool (v2 → v3) for full usage and flags. New installations can skip this.

All Agents Share the Same Memory Server

One Proxy, unchanged protocol, zero-code integration — point the Agent's base URL to the Proxy and it's done. No plugin, hook, or MCP server is required.


DeepSeek Harness

Claude Code

Codex

CodeBuddy

WorkBuddy

Hermes

OpenClaw
More frameworks coming soon...

See INSTALL.md for the exact configuration steps of each client.

Don't see your favorite Agent? You can try adapting it yourself with the Generic integration guide — and we'd love a PR adding native support for it. See CONTRIBUTING.md to get started.

What is TencentDB Agent Memory?

We started from a practical question: How do you reduce repetitive work when using Agents?

If project context has already been explained, it shouldn't need to be repeated in a new session. If documents have already been read, every Agent shouldn't have to start again from page one. A workflow that already works shouldn't have to be rediscovered next time.

Memory here means more than just "remembering conversations." Any information that helps the next Agent avoid reinventing the wheel should be saved, organized, and reused.

Existing information → Reusable memory assets → Fewer turns → Less rework → More stable results and higher efficiency

Let experience accumulate, flow, and pass on to the next Agent

Memory Hub for Agent teams closes the loop across the entire experience lifecycle: work produces assets, assets circulate through the team, and new members can load the team's save file on day one.

  1. Automatic asset extraction: Extract Chat Memory and Skills from conversations and tasks; convert documents and code into Wiki and CodeGraph; then manage, review, and route them consistently.
  2. Portable & multi-Agent compatible: Memory assets are decoupled from Agent frameworks — they can move across frameworks and be shared and maintained by multiple Agents and team members.
  3. Cold-start friendly: Import existing documents, codebases, and Agent conversation sessions. New Agent teams can start from existing experience instead of learning from scratch.

🧠 A brain that remembers people and context

image.png

"Don't refactor the old auth module — mobile is still using it." — Context this costly shouldn't depend on humans repeating it every time.

⚡ A Skill library that accumulates expertise

image.png

Troubleshooting, code review, release checklists — learn it once, and the whole team can use it.

📖 A knowledge map that reads both docs and code

image.png image.png

Wiki keeps Agents from reading every file list before getting to work. CodeGraph doesn't just tell them "the code is here" — it tells them "changing this might affect those."

🛡️ A team memory panel controlled by humans

image.png

Cold Start: Load the Save File, Then Get to Work

Most Agents' first task is re-learning your project. TencentDB Agent Memory turns the learning cost you've already paid into a save file:

Cold Start: import codebase, docs, and history into Memory Hub

Specifically, these existing assets can be imported directly and processed automatically in the panel:

Stop retraining every Agent. Give it the save file.

One Play Style: Build a Growing Agent Team for a One-Person Company

Open Memory Hub and create a team:

Tiny but Serious Inc.
├── 👤 You · Set goals / Make decisions
├── 🔭 Scout · Research / Find opportunities
├── 🛠 Builder · Write code / Build products
├── 🧪 Reviewer · Test / Find issues
└── 🧠 Agent Memory · Preserve the team's experience

You're not opening four disconnected chat windows — you're assembling a squad with different roles that can inherit the team's accumulated experience.

Recruit first, then equip

🔭 Scout
   ├── User interview Chat Memory
   ├── Market research Wiki
   └── Competitive analysis Skill

🛠 Builder
   ├── Product Wiki
   ├── Project CodeGraph
   └── Feature Delivery Skill

🧪 Reviewer
   ├── Historical incident Chat Memory
   ├── Project CodeGraph
   └── Release Checklist Skill

Different roles, different loadouts. Less noise — give each Agent the memory assets it actually needs to get work done.

The company can be tiny. Experience can compound forever.

Memory Assets, Not a Chat Log Warehouse

RAG answers "what can be found?" Team Memory also answers "who can use it, which version is valid, and which Agent should receive it."

Chat History Standard RAG TencentDB Agent Memory
Cross-session user understanding △ △ ✅ Chat Memory
Distilled executable experience — — ✅ Skill
Document structure & relationships — △ Chunk retrieval ✅ Wiki + Link Graph
Code call graphs & impact scope — △ Text match ✅ CodeGraph
Ownership / Version / Status — — ✅
Team sharing & Agent loadout — — ✅
Private / Team / ACL — △ ✅

Memory Hub Is Not a Display Board — It's a Control Panel

Play Style What you do in the Hub
Team Up Create teams, add people and Agents, define sharing boundaries
Asset Library Browse, search, review, and manage Chat Memory, Skills, Wiki, and CodeGraph
Agent Loadout Bind different memory assets to different Agents; adjust priority and usage mode
Knowledge Workshop Build Wiki and CodeGraph; monitor processing status and asset metadata
Access Control Switch between private, team, and ACL-based access; revoke sharing when needed

When you open an asset, what matters is not just "what it says," but also "where it came from, which version it is, who it's assigned to, and whether it's been used recently."

Every Loop Gains Experience

Every Loop Gains Experience: continuous accumulation, making every use smarter

Memory doesn't run the Agent loop; it ensures the next iteration inherits the previous one's results: valuable interactions stay in Chat Memory, proven workflows are distilled into Skills, and document/code changes are updated through Wiki ingest and CodeGraph sync.

Without Memory, loops may just repeat faster. With inherited memory, each iteration has the chance to be better than the last.

One Agent Team: Shared Experience, Not Shared Privacy

New Chat Memory and Skills are private by default. Sharing is an explicit action, not a default leak.

Visibility Semantics
private Only the Owner can read — not even team admins
team Team members can read; the Owner / Admin can manage
restricted Precise access via User / Role / Agent ACL
agent For targeted equipping of Agents within the same team

You can assign the "Release Skill" to the Release Agent, the "Architecture Wiki" to all development Agents, and CodeGraph to Coder and Reviewer.

Technical Implementation

TencentDB Agent Memory doesn't aim to "store everything." It solves three problems: what's worth keeping, who can use it, and how to retrieve less while retrieving the right things next time.

Technical overview: layering (L0–L3), Memory Assets, Memory Hub, identity-based assembly for Agents

1. Memory isn't flat records — it grows in layers

Conversations are first saved as L0, then refined by an async pipeline into multiple levels of granularity:

Layer What it stores Primary use
L0 Conversation Raw conversations with full context Verify exact wording, timestamps, and sources
L1 Atom Facts, preferences, constraints, and events extracted from conversations Precise recall of actionable information
L2 Scenario Knowledge blocks organized around projects or scenarios Quickly restore a working context
L3 Core / Persona Long-term profiles, stable patterns, and high-level cognition Let Agents rapidly enter a user's and team's context

Both generation and retrieval are layered: normally, L2/L3 provide a quick context bootstrap; when specific facts are needed, BM25 + vector retrieval + RRF fall back to L1/L0. Results are further capped by item count, character budget, and timeout limits to prevent memory from overwhelming the context window.

2. Memory isn't a global prompt — it's the Agent's loadout

Chat Memory, Skills, Wiki, and CodeGraph are all registered uniformly as Memory Assets. Memory Hub uses Fixed Binding + ACL to determine which assets a given Agent can use: first narrow the permission scope by Team, User, Agent, and visibility, then retrieve based on the current query.

This lets teams share experience without exposing all their private information; switching Agents or frameworks only requires re-equipping, not retraining.

3. Knowledge isn't injected wholesale — it's called on demand

Documents are organized into searchable Wiki pages that support link-graph drill-down; codebases are indexed into CodeGraph assets containing files, symbols, and call relationships. Agents first discover capabilities via /v3/tools/list, then use /v3/tools/call to read relevant pages, source code, or impact paths.

This makes documents and code part of memory as well — but they remain available tools that only enter context when truly needed.

Benchmark

Benchmark Without TencentDB Agent Memory With it enabled Relative improvement
PersonaMem 48% 76% +59%

PersonaMem tests whether an Agent can correctly understand and apply user information after extended interactions.

Notes

Agent Memory doesn't have a settled standard yet. Bug reports, documentation, benchmarks, new framework adapters, and more creative Memory Hub use cases are all welcome.


Roadmap

Current release is v2.0.0. Next up (v2.0.1): zero-config cold start, faster Wiki generation, user/team custom prompts, Skill export, and Codex (IDE Plan mode) support.

👉 See the full plan in ROADMAP.md (中文: ROADMAP_CN.md).


Acknowledgements

TencentDB Agent Memory stands on the shoulders of the open-source community:

We are grateful to the authors and contributors of these projects.


Community & Contributing

We welcome contributions of all kinds — bug reports, feature suggestions, documentation fixes, benchmark reproductions, ecosystem integrations, or pull requests. Agent memory is far from settled, and we hope to build it together with the community.

TencentDB-Agent-Memory (TencentCloud/TencentDB-Agent-Memory)

Searching Database…

这是什么?一个面向 AI 智能体的团队级记忆中枢。它把对话、文档和代码转化成四种可复用的记忆资产——聊天记忆(Chat Memory)、技能(Skills)、知识库(Wiki)和代码图谱(CodeGraph),团队里的各个智能体可以共享、管控并配备这些资产。
那它是要加进我代码里的库,还是我的智能体连接的服务器?是一套自托管的服务(memory-core、memory-hub、proxy)。只需把你的智能体的 base URL 指向 proxy 即可——不需要插件、钩子或 MCP 服务器,也不用改任何代码。
我怎么把它跑起来?一键启动全部三个服务(memory-core + memory-hub + proxy),然后打开 Memory Hub 面板。完整步骤(包括独立部署 Hub 和各客户端的配置方法)都写在 INSTALL.md 里。
哪些编程智能体真的能用它?目前支持 DeepSeek Harness、Claude Code、Codex、CodeBuddy、WorkBuddy、Hermes 和 OpenClaw,之后还会支持更多。其他智能体可以按照通用接入指南(Generic integration guide)自己适配。
现在有哪些不够完善的地方?Wiki 和 CodeGraph 是异步构建的,需要留出处理时间。CodeGraph 目前更倾向于公开的 HTTPS 仓库(私有仓库和 SSH 还在完善中),而且资产绑定目前还是手动的,自动记忆路由功能正在开发中。
我的智能体的对话传上去之后,团队里谁能看到?新建的聊天记忆(Chat Memory)和技能(Skills)默认是私有的——私有意味着只有所有者(Owner)本人能读取,连团队管理员也不行。分享是一个显式操作:可以分享给团队、设置受限访问(基于用户/角色/智能体的 ACL),或者指定给某些智能体可见。
这和直接加一套 RAG 有什么区别?RAG 只能回答检索得到的内容。团队记忆还会跟踪谁有权使用某个资产、哪个版本是有效的、以及应该把记忆分发给哪个智能体——此外还提供团队分享、按智能体配置加载项(per-agent loadouts),以及私有/团队/ACL 的可见性控制。
它会不会把记住的内容塞满我智能体的上下文窗口?设计上不会。L2/L3 层提供快速上下文引导,需要精确事实时,BM25 + 向量检索 + RRF 会从 L1/L0 中深挖出具体内容,而且结果会按条目数量、字符预算和超时时间加以限制。
这里的 Skill 到底是什么——只是一个保存下来的提示词吗?不是——一个 Skill 包含版本、资源文件、触发边界、执行步骤和校验规则。个人 Skill 在审核之前保持私有,审核通过后可以分享给团队,并分配给其他智能体使用。
有没有证据表明它真的有用?在 PersonaMem 基准测试上(衡量智能体经过长时间交互后能否正确理解并运用用户信息),分数从没有记忆时的 48% 提升到启用后的 76%,相对提升了 59%。
Size
63.5 MB
Stars
29.5K
Age
6mo
Commits · 90 Days