Generated banner for Installation
Generated logo for Installation

Installation

Memory frameworkOfficial Tencent Cloud project

Created by Tencent Cloud

Published in TencentCloud/TencentDB-Agent-Memory. Publisher page

30,776 GitHub stars

What it is

TencentDB Agent Memory is a team-level memory hub for AI Agents — turning conversations, docs, and code into four reusable memory assets (Chat Memory, Skill, LLM-Wiki, Code-Graph) that are governed, shared, and equipped across agents and frameworks.
— the description by Tencent Cloud

AutoGineer overview, from the brain’s own files

TencentDB Agent Memory is a memory framework designed to eliminate repetitive work by enabling AI agents to inherit project context and expertise. It functions as a central hub that extracts and manages four types of memory assets: Chat Memory, Skills, Wiki, and CodeGraph. By decoupling memory from specific agent frameworks, it allows teams to build, share, and equip agents with persistent, versioned knowledge. The system includes a control panel for human oversight, enabling precise access control, asset management, and team-based collaboration, ensuring that experience gained in one session can be leveraged across the entire agent team.

How it works

Memory model: LLM wiki

AutoGineer overview, from the brain’s own files

The system operates through a central Memory Hub that processes information into four distinct asset types. Chat Memory stores interaction history and preferences. Skills are extracted from tasks and conversations to provide reusable, versioned workflows. The Wiki component structures documentation into a link graph, while CodeGraph indexes codebases to map symbols, relationships, and impact paths. These assets are managed via a web-based panel where users can define team structures, assign assets to specific agents, and set access permissions. A proxy layer allows various agent frameworks to connect to this memory server without requiring custom plugins.

Folders
FolderRoleFiles
.githubagent-config6
agentsagent-instructions22
assetsattachments34
MemoryCorefolder420
MemoryKnowledgefolder121
MemoryPanelfolder309
MemoryProxyfolder304
adaptersfolder5
deployfolder18
sdkfolder45

Requirements

Databases: MongoDB

Set it up

  1. Not scanned by AutoGineerThe author’s README also describes installing it from a clone of its repository. Read its install section: AutoGineer did not scan that path. https://github.com/TencentCloud/TencentDB-Agent-Memory/blob/42d4cde50c5a83182fced8c584f9ddb32a620615/README.md#installation
  2. Created by Tencent Cloud. Published in TencentCloud/TencentDB-Agent-Memory. Licence: MIT License.

Usage

AutoGineer overview, from the brain’s own files

  • Centralizing team knowledge for multiple AI agents.
  • Automating the extraction of reusable skills from agent conversations.
  • Providing agents with deep codebase understanding via CodeGraph.
  • Managing access control for sensitive project documentation and memory.
  • Enabling cold-start capabilities by importing existing project history and docs.
  • Monitoring and analyzing how memory assets are utilized by the agent team.
“Extract a new skill from our recent debugging session and assign it to the Builder agent.”
The system processes the conversation, creates a versioned Skill asset, and updates the Builder agent's loadout to include this new capability.
“What are the potential impacts of modifying the authentication module?”
The agent queries the CodeGraph to identify callers, callees, and dependencies, providing an impact analysis before the user proceeds with code changes.

Documentation by Tencent Cloud

<div align="center">

<img src="./assets/images/logo.png" alt="TencentDB Agent Memory" width="880" />

Agents remember. Humans innovate.

<a href="https://trendshift.io/repositories/29310?utm_source=repository-badge&amp;utm_medium=badge&amp;utm_campaign=badge-repository-29310" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/29310" alt="TencentCloud%2FTencentDB-Agent-Memory | Trendshift" width="250" height="55"/></a>

Image: npm Image: GitHub Release Image: License: MIT Image: Node Image: OpenClaw Image: Hermes Image: Discord

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

English · 简体中文

</div>


<td> <video src="https://github.com/user-attachments/assets/efb1a808-1f86-4cfe-802c-f7453f7ca938" width="100%" controls autoplay loop muted playsinline></video> </td>

Installation

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

git clone https://github.com/TencentCloud/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 configure its User Key. Most clients don't require a plugin, hook, or MCP server.

<table> <tr> <td align="center" width="140"><a href="./agents/dsh/"><img src="./assets/images/agents/dsh.png" width="48" height="48" /><br /><sub><b>DeepSeek Harness</b></sub></a></td> <td align="center" width="140"><a href="./agents/claude-code/"><img src="./assets/images/agents/claude-code.png" width="48" height="48" /><br /><sub><b>Claude Code</b></sub></a></td> <td align="center" width="140"><a href="./agents/codex/"><img src="./assets/images/agents/codex.png" width="48" height="48" /><br /><sub><b>Codex</b></sub></a></td> <td align="center" width="140"><a href="./agents/codebuddy/"><img src="./assets/images/agents/codebuddy.png" width="48" height="48" /><br /><sub><b>CodeBuddy</b></sub></a></td> </tr> <tr> <td align="center" width="140"><a href="./agents/workbuddy/"><img src="./assets/images/agents/workbuddy.png" width="48" height="48" /><br /><sub><b>WorkBuddy</b></sub></a></td> <td align="center" width="140"><a href="./agents/hermes/"><img src="./assets/images/agents/hermes.png" width="48" height="48" /><br /><sub><b>Hermes</b></sub></a></td> <td align="center" width="140"><a href="./agents/openclaw/"><img src="./assets/images/agents/openclaw.png" width="48" height="48" /><br /><sub><b>OpenClaw</b></sub></a></td> <td align="center" width="140"><a href="./agents/adapter-agent-development.md"><sub><b>More frameworks coming soon...</b></sub></a></td> </tr> <tr> <td align="center" width="140" colspan="2"><a href="./agents/opencode/"><picture><source media="(prefers-color-scheme: dark)" srcset="https://opencode.ai/brand/files/opencode-logo-dark-square.png" /><img src="https://opencode.ai/brand/files/opencode-logo-light-square.png" width="48" height="48" alt="" /></picture><br /><sub><b>OpenCode</b></sub></a></td> <td align="center" width="140" colspan="2"><a href="./MemoryCore/pi-plugin/README.md"><img src="https://pi.dev/favicon.svg" width="48" height="48" alt="" /><br /><sub><b>Pi</b></sub></a></td> </tr> </table>

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

OpenCode has a ready-to-use adapter configuration, and Pi uses the pi-plugin extension to connect through OpenAI Chat Completions. After binding a session, you can save a Team, Agent, and Task combination as the default for new sessions.

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.

Best Practices

Once you've deployed the stack and connected your Agents, use the guide to set up a team, import and assign memory assets, and see how well they work on a real task.

See the Best Practices guide.

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
  • Chat Memory retains preferences, facts, decisions, and interaction history.

  • Session bindings and permissions determine which memories an Agent can access. When an Agent returns to the same work, it can reuse the context.

  • L0 Conversation → L1 Atom → L2 Scenario → L3 Persona — raw conversations are distilled layer by layer.

<img width="" src="assets/images/chat_memory.png" alt="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
  • After completing complex work, Agents can extract and manage reusable Skills from conversations and tool calls, and import them into the context of a designated Agent when needed. Skills can be edited and exported from the panel.

  • A Skill isn't just a prompt snippet; it has versions, resource files, trigger boundaries, execution steps, and validation rules.

  • Personal Skills are private by default; they can be shared with the team and assigned to other Agents.

<img width="" src="assets/images/skill.png" alt="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
  • Wiki turns product docs, design specs, and ops runbooks into structured pages with a link graph. It supports Markdown, plain text, HTML, Word, Excel, PowerPoint, and PDF. (Inspired by Karpathy's LLM knowledge base.)

<img src="./assets/images/wiki.png" alt="image.png" />

  • CodeGraph indexes code symbols, files, call relationships, and impact paths.

    <img width="" src="assets/images/codegraph.png" alt="image.png" />

  • Agents can search, read, inspect callers/callees, and perform impact analysis before modifying code.

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
  • Create teams and Agents in Memory Hub; review, share, and equip memory assets.

  • Manage ownership, versions, status, visibility, usage counts, and Agent bindings in one place.

  • private belongs strictly to the Owner; team is visible to all team members; restricted grants precise access via User / Role / Agent ACLs.

  • Two role layers: global System Admin manages users and teams (creating teams, adding members) and can also use Wiki, CodeGraph, Skill, and other asset management features; Team-level roles include Admin (team manager) and Member (regular member), responsible for asset collaboration and access control within a team. Asset ownership is tracked via Owner — the Owner automatically has management permissions for their assets.

<img width="" src="assets/images/asset.png" alt="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:

<img alt="Cold Start: import codebase, docs, and history into Memory Hub" src="assets/images/flowchart3.png" />

Admins can configure a default Agent template for the team so new members can pick up the team's way of working.

Specifically, you can import codebases and documents in the panel and use the client import script for past conversation sessions:

  • Codebases: Import public repositories or private repositories with configured credentials — CodeGraph automatically indexes symbols, files, call relationships, and impact paths.

  • Documents & files: Import relevant docs and files, including from configured external sources — Wiki automatically generates structured pages with a link graph.

  • Conversation sessions: Use the local asset import script to import past sessions from supported clients. By default, the script triggers both Skill and Chat Memory extraction; you can also choose to trigger just one.

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 HistoryStandard RAGTencentDB 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 StyleWhat you do in the Hub
Team UpCreate teams, add people and Agents, define sharing boundaries
Asset LibraryBrowse, search, review, and manage Chat Memory, Skills, Wiki, and CodeGraph
Agent LoadoutBind different memory assets to different Agents; adjust priority and usage mode; configure the team's default Agent template
Knowledge WorkshopBuild Wiki and CodeGraph; monitor processing status and asset metadata
Access ControlSwitch between private, team, and ACL-based access; revoke sharing when needed
Asset Usage AnalyticsEnable optional analytics to see how often memory, skill, and knowledge tools are called

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

<img alt="Every Loop Gains Experience: continuous accumulation, making every use smarter" src="assets/images/flowchart4.png" />

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.

VisibilitySemantics
privateOnly the Owner can read — not even team admins
teamTeam members can read; the Owner / Admin can manage
restrictedPrecise access via User / Role / Agent ACL
agentFor 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.

<img alt="Technical overview: layering (L0–L3), Memory Assets, Memory Hub, identity-based assembly for Agents" src="assets/images/flowchart5.png" />

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:

LayerWhat it storesPrimary use
L0 ConversationRaw conversations with full contextVerify exact wording, timestamps, and sources
L1 AtomFacts, preferences, constraints, and events extracted from conversationsPrecise recall of actionable information
L2 ScenarioKnowledge blocks organized around projects or scenariosQuickly restore a working context
L3 Core / PersonaLong-term profiles, stable patterns, and high-level cognitionLet 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 call authorized knowledge tools on demand to read relevant pages, source code, or impact paths. The Knowledge service exposes /v3/tools/list and /v3/tools/call for integrations.

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

Benchmark

BenchmarkWithout TencentDB Agent MemoryWith it enabledRelative improvement
PersonaMem48%76%+59%

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

Notes

  • Wiki and CodeGraph are built asynchronously; allow some processing time before they reach ready status.

  • CodeGraph supports public HTTPS repositories and private repositories with configured credentials. To clone a private repository over SSH, get the public key from the panel and grant it access on your code hosting platform.

  • The Hub supports manual asset binding. On-demand Skill selection in the Proxy is off by default. Once you enable it and configure a selection strategy, the Proxy can select up to one relevant Skill to load per turn.

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

v2.0.3 adds default session bindings and support for rich document formats in Wiki. See GitHub Releases for the latest stable release and CHANGELOG.md for the release history.

👉 See earlier plans in ROADMAP.md (中文: ROADMAP_CN.md).


Acknowledgements

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

  • CodeGraph — our CodeGraph asset module uses code from this project. Its design of a pre-indexed code graph is the foundation of our implementation.

  • Hermes Agent (Nous Research) — our Skill asset management uses part of the Skill-related code from Hermes Agent and builds further optimizations base on it.

  • "LLM Wiki" by Andrej Karpathy — the idea of treating documentation as an LLM-maintained, incrementally growing knowledge artifact directly informed how our Wiki layer is built and kept up to date.

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.

  • 🐞 Found a bug or have a question? Open an issue in GitHub Issues — we respond within 24 hours.

  • 💡 Have an idea to share? Start a thread in GitHub Discussions.

  • 🛠️ Want to contribute code? Please read CONTRIBUTING.md first.

  • 💬 Want to chat with us? Join our Discord community and talk to the core developers directly.

  • ☁️ Try the hosted version: Tencent Cloud Agent Memory is now available.

  • 💬 Want to join the community? Scan the QR code to join the Agent Memory WeChat group and talk directly with the early developers.

<p align="center"><img src="https://github.com/user-attachments/assets/41ed193d-e70e-484e-8627-0e363a4b1eb0" width="200" alt="Agent Memory WeChat community QR code" /></p>


<p align="center"> Let the path the team has walked become the next Agent's starting line. </p>


✨ Contributors

💡 Thanks to the following contributors building with us — you make TencentDB Agent Memory better.

<div align="center"> <a href="https://github.com/TencentCloud/TencentDB-Agent-Memory/graphs/contributors"> <img src="https://contrib.rocks/image?repo=TencentCloud/TencentDB-Agent-Memory&columns=12&anon=1" /> </a>

<br /><br /> <a href="https://github.com/TencentCloud/TencentDB-Agent-Memory/issues"> <img src="https://img.shields.io/badge/Contributions_Welcome-006eff?style=for-the-badge&logo=github&logoColor=white" alt="Contributions Welcome" /> </a>

</div>

<table width="100%"> <tr> <td width="68%"> <b>If TencentDB Agent Memory has been helpful to you, please consider starring the project.</b><br /> If you have any suggestions, feel free to open an issue for discussion. </td> <td width="32%" align="right"> <img src="./assets/images/star-helper.png" alt="Star TencentDB Agent Memory" width="260" /> </td> </tr> </table>


Star History

<p align="center"> <a href="https://star-history.dera.page/#TencentCloud/TencentDB-Agent-Memory&Date"> <img src="https://star-history.dera.page/svg?repos=TencentCloud/TencentDB-Agent-Memory&type=Date" alt="Star History Chart" width="600" /> </a> </p>


MIT © TencentDB Agent Memory Team

CHANGELOG.md

Changelog

本文件记录 TencentDB Agent Memory 的显著变更,格式遵循 Keep a Changelog,版本号遵循 Semantic Versioning。

覆盖仓库全部开源模块:MemoryCore / MemoryPanel / MemoryKnowledge / MemoryProxy / SDK。


[2.0.3] — 2026-10-26

🔁 会话默认绑定
  • 用户可为自己保存 Team、Agent、Task 的默认组合。新会话会直接使用该组合,不再每次弹出选择

  • 未设置时仍走原来的选择流程;默认组合失效时自动回到原流程,并说明原因

  • 可在会话中锁定或解锁该默认组合,避免后续会话被意外改掉

📄 Wiki 富文档
  • Wiki 新增 Word、Excel、PowerPoint、PDF 等富文档的导入、预览和内容抽取

  • 原有 Markdown、文本和 HTML 导入保持可用;修复 Markdown 粘贴在部分情况下导入失败的问题

⏱️ 长回复不再被提前截断
  • 未单独配置超时时,上游等待时间由 10 分钟改为 1 小时;已填写 forwardTimeoutMs 的配置保持不变

  • 流式回复连续 60 秒没有新内容时只记录告警,不再因此中断

🐛 修复
  • 修复 DeepSeek Harness 的 token 计数、embeddings 等辅助接口返回 404 的问题

  • 修复部分历史记忆因时间格式异常而无法生成 L1 记忆的问题

  • 修复 macOS 上一键安装脚本遇到中文标点时退出的问题

  • 修复面板拖拽结束后鼠标样式和文本选择未恢复的问题

  • 修复面板标签页关闭键无法用键盘激活的问题

  • 修复生成的 User Key 复制失败时没有提示的问题

  • 修复 Knowledge 服务因 OpenTelemetry 依赖版本漂移而无法启动的问题

  • 修复代理在 Redis 中断后不能自行恢复、必须重启进程的问题。短暂中断仍短暂排队;时间稍长则立即降级,不把请求拖住


[2.0.3-beta.1] — 2026-10-13

🧩 可插拔决策服务(默认关闭)
  • Skill 选择与 Memory L3 更新判定改为通过统一的决策服务接口调用,内置 JEV, 可接入其他 decision API;配置用 provider 指定(默认 jev),旧配置无需修改

  • 默认不调用 JEV,行为与之前一致;开启后决策服务调用失败不影响正常对话与记忆写入

🧰 技能(Skill)按需选择(默认关闭)
  • 开启后由 Proxy 每轮自动选出合适的技能,通过一次客户端工具调用加载, 不再向系统提示词注入完整技能目录

📼 会话轨迹记录
  • Proxy 在每轮对话结束后,把发往上游的消息与模型回复记录到 MemoryCore (新增 /v3/session/add,写入本地存储);随 tdai.enabled 开启

🧠 代码知识库
  • 私有代码仓支持 SSH 克隆(含非 22 端口),在面板获取 SSH 公钥后即可建图

📈 可观测性
  • /health 新增 ftsAvailable,便于排查 BM25 关键词召回不可用的问题

  • LLM 调用失败日志补充状态码、URL 与响应内容


[2.0.2] — 2026-10-09

🗄️ MongoDB 存储后端(试验特性,可选,默认关闭)
  • MongoDB 后端能力进一步补全:新增 memory-prompt 与 generation-ref 两类存储, 覆盖更多记忆数据结构

  • 一键入口 ./start-all-mongo.sh 会把 STORE_MODE 持久化写入 .env,后续启动 保持同一后端,不再每次重复配置

  • 修复索引冲突场景的自愈能力,重复的默认/抽取记录不再导致启动报错

🔀 更多客户端接入
  • OpenCode 新增官方 Memory adapter 配置包(含 opencode.json 与接入文档),按说明配置即可接入,无需编写插件代码

  • OpenCode 支持 2.0 的 v2 provider 配置结构,新版客户端可直接复用官方 opencode.v2.json

  • DeepSeek Harness 新增dsh桌面端适配,配置方式可参考./agents/dsh/README.md中1.6的部分

  • 新增 Pi 客户端接入(类似 Codex 的 AI Agent 客户端,走 OpenAI Chat 协议)

🧠 外部源导入(Wiki / 代码 / 任务)
  • 新增从外部任务管理系统导入 Task 的能力,任务卡片直接展示来源、支持 ID 复制 与分页

  • 新增外部代码源(私有仓)注册与凭据隔离,各团队持有独立凭据、互不可见

  • 新增 Wiki 外部来源导入,与代码源、任务源一起补齐外部资产导入链路

🧰 技能(Skill)体验优化
  • 冷启动批量技能抽取新增严格模式,抽取质量更可控

  • 技能抽取自动跟随用户语言,生成内容更贴合使用习惯

  • 技能列表支持按使用活跃度排序,高频技能更容易被找到

🎛️ Memory Hub 面板
  • 任务卡片支持来源展示、ID 复制与分页优化,批量导入交互更顺畅

  • 手动刷新时自动重置时间筛选,新产生的记忆能即时看到

🔄 会话与接入体验
  • 会话引导在更多客户端下更稳定:自动选中唯一 Agent、资产确认更精准、预设失败时 自动绕过而非卡住

  • 修复 WorkBuddy 并行子代理反复弹窗的问题,会话归一更稳健

  • 修复多种客户端下记忆命令、工具结果污染、历史消息重复等影响体验的问题

🐛 修复
  • 修复无 embedding 场景下 BM25 召回异常、L0 工具结果污染与原文展示问题

  • 修复记忆召回为空、历史消息重复、多团队切换列表截断等问题

  • 修复 Claude Code 的 AGENTS.md 指令丢失等问题

  • 修复部署脚本在部分环境下的兼容性问题


[2.0.2-beta.1] — 2026-09-07

🗄️ MongoDB 存储后端(试验特性,可选,默认关闭)

默认存储仍为 sqlite,现有部署无需变更。MongoDB 作为可选后端提供, 可用于需要 mongot 原生全文检索、或评估非 sqlite 数据面的场景:

  • 新增一键入口 ./start-all-mongo.sh;未配置 MONGODB_ENDPOINT 时, 脚本在本机拉起 mongodb-atlas-local 容器(非云上 Atlas)

  • 启用后将 MEMORY_CORE_STORE_MODE=mongodb 写入 .env,后续启动 保持该后端,不会静默回退到 sqlite

  • 切换存储后端不会迁移已有数据。 sqlite 与 MongoDB 使用相互独立的 数据目录 / 实例,切换后原数据仍留在原后端。当前版本需自行备份并 手工迁移;后续版本将提供官方迁移工具

用法见 INSTALL_CN.md「MongoDB 存储后端(试验特性)」章节。

🧰 技能(Skill)体验优化
  • 技能检索与展示更结构化,信息更清晰、调用更稳定

  • 历史遗留的异常技能数据自动修复,旧资产无缝兼容

🔄 会话与接入体验
  • 更多客户端接入更顺畅,文字模式客户端也能开箱即用

  • 团队 / Agent 选择列表完整展示,团队较多时不再漏选

  • 会话重置完成提示更清晰

🔐 兼容 OAuth2 · 对接企业内部 OA 登录
  • Panel 登录侧兼容标准 OAuth2 协议,可对接企业内部 OA / SSO 系统

  • 各家 OA 协议细节不同,仓库里提供了对接骨架和配置项, 用户按自家 OA 的 authorize / token / userinfo 端点做少量适配即可

  • 完成对接后,团队成员可直接用 OA 账号登录 Panel,用户身份与 user_key 自动打通,不再需要单独下发/记忆一串 sk-mem-...

📊 数据分析与可观测性(可选,默认关闭)
  • 全新数据分析页,团队使用情况一目了然,辅助你判断记忆资产的沉淀效果

  • 关键环节补充埋点与可观测数据,运维排查更直观

  • 默认关闭;开启需要三个服务分别配置 ClickHouse:Proxy / Knowledge 负责埋点上报(Proxy 记录 memory / skill 工具调用,Knowledge 记录 wiki / code-graph 工具调用),Core 负责查询接口。Panel 会调用 Core 与 Knowledge 的配置发现接口判断是否启用,启用后再调查询接口 拉取数据。详见 INSTALL_CN.md 的 「数据分析与可观测性(可选)」章节

🐛 修复
  • 修复部分场景下记忆召回为空、检索降级不生效的问题

  • 修复个别情况下记忆解析失败、历史消息重复的问题

  • 修复多团队切换时列表被截断、显示不全的问题

  • 修复部署脚本在部分环境下的兼容性问题


[2.0.1] — 2026-08-25

🚀 支持更多 Agent 客户端

现在无论你用哪款 coding agent,都能直接挂上团队记忆:

  • 新增 OpenCode 客户端接入

  • 新增 DeepSeek Harness (dsh) 接入 —— DeepSeek 官方 agent harness 的 Web UI 会话可直接接入 Proxy,自动获得团队记忆 / skill / 知识注入

  • 新增 Codex CLI 接入

  • 新增 WorkBuddy 客户端接入,开箱即用

  • 多款客户端的首次引导与重置体验保持一致,切换更顺畅

🤖 会话内直接下指令

不用切到面板,在对话里就能完成常用操作:

  • 会话中途一键重置绑定(换团队 / 换 Agent / 换任务)

  • 对话内直接创建 / 更新任务

  • 指令响应更快,减少等待

🧠 冷启动开箱即用
  • 创建团队或用户即自动生成默认 Agent,无需手工配置

  • 管理员可自定义默认 Agent 模板,新用户冷启动自动套用

  • 支持从 IDE 里已有的 Agent 一键导入资产,快速起步

  • 接入后默认绑定任务,即开即用

🔄 会话绑定更稳定
  • 会话绑定持久化保存,重启不丢失

  • 切换 Agent 后记忆与技能正确跟随切换,不再串场

  • 修复部分客户端历史回放被误判的问题

🧰 技能(Skill)体验升级
  • 会话里新建的技能立即可被检索到,不再有"搜索盲区"

  • 恢复技能 ID 的展示与一键复制

  • 技能支持在线编辑

  • 新增接入向导技能:跟着引导一步步配置,或一条命令自动完成 Proxy 接入

🎛️ Memory Hub 面板
  • 全新登录页,加入点阵波纹动效

  • 团队编辑 / 删除入口整合到团队切换器,操作更顺手、修复切换异常

  • 管理员创建账号时可自定义 User_Key

  • 新增对话记忆搜索:跨会话的语义与关键字检索,按权限精确控制可见范围; 支持对单层记忆直接覆盖修改

  • 资产 ID 直接展示并可复制;列表完整加载,修复分页截断显示不全的问题

⚙️ 一键部署增强
  • 启动脚本支持交互式配置,自动预检 LLM 通路与端口占用,避免部署踩坑

  • 客户端接入地址一键复制,单机部署下自动解析为宿主机地址,外部客户端可直接连接

⚡ 性能优化
  • 知识库列表加载提速,常用路径更快响应

  • Wiki 页面并发构建,单页失败自动重试,大批量文档导入时间大幅缩短

📚 文档
  • 按客户端拆分独立接入文档,各 agent 各有一份清晰的接入指南

  • 新增面板与 API 使用文档

  • 补充英文面板截图与 README 更新

🐛 修复
  • 修复多 Agent 场景下记忆检索为空的问题

  • 修复资产解绑不生效、资产较多时记忆 tab 丢失的问题

  • 修复导入历史会话时间错乱,恢复原始时间线

  • 修复编辑场景时部分内容被重复展开的问题

  • 修复 macOS 下部署脚本的兼容性问题

  • 修复依赖缺失导致的安装报错

  • 修复部分客户端首次引导表单在老版本上的兼容性问题

  • 新增清空对话记忆功能,支持批量删除


[2.0.1-beta.1] — 2026-08-13

🧠 冷启动开箱即用 · 默认 Agent + 预置 Skill
  • 创建团队/用户即自动生成默认 Agent,无需手工配置

  • 客户端接入地址一键复制,支持指向 Memory Proxy

  • 单机部署下接入地址自动解析为宿主机地址,外部客户端可直接连接

⚡ Wiki 生成加速
  • 优化 Wiki 生成,页面并发构建,大幅缩短大批量文档导入时间

  • 单页失败自动重试,不再拖停整个批次

  • 生成进度与单页状态实时可见

🧰 Skill 生态
  • 新增 Skill 导出功能

  • 优化 Skill 检索,私有 Skill 可被检索到,结果更精准

  • 优化 Skill 提取能力,捕获范围更广

🔀 Memory Proxy · 新增客户端接入
  • 新增 Codex CLI 接入

  • 新增 WorkBuddy 客户端接入

  • 新增 DeepSeek Harness (dsh) 接入 —— DeepSeek 官方 agent harness 的 Web UI 会话 可直接接入 Proxy,拿到团队记忆 / skill / knowledge 注入;支持 aux 请求短路 (compaction / title-gen) 与 CLI headless bypass

  • 优化 code-graph 资源与工作区的关联

🎛️ Memory Hub 面板
  • 重构首次使用引导流程,新增 Agent 绑定步骤

  • 优化面板交互、加载骨架屏与过渡动效

  • 优化 Task 页用户展示名解析

  • 优化资产页面布局与归属/共享规则说明

  • 修复资产较多时记忆 tab 丢失的问题

🐛 修复
  • 修复多 Agent 场景下记忆检索为空的问题

  • 修复资产解绑不生效的问题

  • 导入的历史会话保留原始时间,时间线不再错乱

  • 修复某些场景下记忆丢失的问题

  • 新增清空对话记忆功能,支持批量删除


[2.0.0] — 2026-08-03

产品定位:让 Agent 的经验、文档、代码沉淀成可复用资产,让下一位 Agent 直接读档。详见 README_CN.md。

🧠 四种记忆资产 · 首次完整开源

四类资产从"对话/工作痕迹"里自动沉淀出来:

  • Chat Memory — 从对话中逐层提取 L0 原始记录 → L1 事实 → L2 场景 → L3 长期认知;跨会话保留偏好、决策、交互历史。

  • Skill — 从跑通的任务里提炼可复用 SOP,附版本 / 资源文件 / 触发边界 / 执行步骤 / 验证规则。新增 Skill 强制归档功能。

  • Wiki — 把文档变成结构化页面 + 链接图谱(灵感来自 Karpathy 的 LLM 知识库 实践)。

  • CodeGraph — 索引仓库的符号 / 文件 / 调用关系 / 影响路径,Agent 改代码 前先做 impact analysis。新增定时自动同步代码库功能。

🎛️ Memory Hub · 面向团队的操作台

管控面板(agentmemory/memory-hub 镜像,含 Panel + Knowledge Service):

  • 建 Team / Agent,把资产按 Owner / 版本 / 状态 / 可见性统一管理

  • 三级可见性:private / team / restricted(User / Role / Agent ACL), 外加 agent 定向装配

  • Agent Loadout:给不同 Agent 绑定不同资产、调整优先级和使用方式

  • Wiki + CodeGraph 工坊内置在 Hub,导入代码库/文档就能自动构建

  • 管理员(System Admin)现在也可使用资产管理功能

  • 面板全面支持中英文切换;统一页面设计风格,优化列表交互和分页体验

🔀 Memory Proxy · Agent 挂上记忆的通道

agentmemory/memory-proxy 让 Claude Code 等 coding agent 直接用上团队记忆:

  • Anthropic / OpenAI 双协议:/claude-code/<spaceId>/v1/messages 和 /v1/chat/completions 都接

  • 首轮引导:sessionInit 通过 AskUserQuestion 让用户选 team / agent / task,proxy 记住绑定

  • 每轮注入:把该 agent 的 L2/L3 记忆、matched skill、wiki/code-graph 拼进 system prompt,转发上游 LLM

  • 鉴权:x-tdai-user-key → 内核 /v3/meta/auth/verify 换 user_id, 按用户维度控制资产可见性

  • Cost Guard 支持为不同 Agent 配置不同模型以降低成本

🚀 一条命令拉起完整三件套

三个镜像多架构(linux/amd64 + linux/arm64)已发布到 Docker Hub agentmemory,公开可拉、 无需登录:

git clone https://github.com/Tencent/TencentDB-Agent-Memory.git
cd TencentDB-Agent-Memory/deploy/global-images
cp .env.example .env && $EDITOR .env    # 填入两组 LLM 参数
./start-all.sh                          # 一键起

start-all.sh 首次启动会自动 init-admin、生成 admin sk-mem-... 并落盘 .admin-key;自检 /v3/meta/auth/verify 后打印可复制的 claude 启动命令。 stop-all.sh --purge 彻底清 volume + admin key,方便重置。

详见 INSTALL_CN.md / INSTALL.md。

🧰 官方 SDK
  • TypeScript — @tencentdb-agent-memory/memory-sdk-ts-v2

    import { MemoryClient, SkillClient, MetadataClient } from "@tencentdb-agent-memory/memory-sdk-ts-v2";
    
    const memory = new MemoryClient({
      endpoint, apiKey, serviceId,
      teamId, agentId, userId,     // v3 严格 isolation:三项必填
    });

    顶级 export 就是 v3 严格 isolation 版本;老代码走 .../v2/v3 子路径也 能继续用(子路径保留为向后兼容别名)。

  • Python — pip install tencentdb-agent-memory-sdk-python

    from tencentdb_agent_memory import MemoryClient                     # 默认(v2 兼容)
    from tencentdb_agent_memory.v3 import MemoryClient, MetadataClient, SkillClient
📖 文档
  • 新增 CodeBuddy / Hermes / OpenClaw 接入指南

  • 更新安装指南中的角色权限说明


[2.0.0-beta.1] — 2026-07-21

首次公开发布。SemVer 从 2.0.0-beta.1 起步(npm 包名迁移到 -v2 后缀: @tencentdb-agent-memory/memory-tencentdb-v2、memory-sdk-ts-v2)。 Docker 镜像 tag 独立于 npm 版本,本次镜像发的是 :1.0.0-beta.1。

产品定位:让 Agent 的经验、文档、代码沉淀成可复用资产,让下一位 Agent 直接读档。详见 README_CN.md。

🧠 四种记忆资产 · 首次完整开源

四类资产从"对话/工作痕迹"里自动沉淀出来:

  • Chat Memory — 从对话中逐层提取 L0 原始记录 → L1 事实 → L2 场景 → L3 长期认知;跨会话保留偏好、决策、交互历史。

  • Skill — 从跑通的任务里提炼可复用 SOP,附版本 / 资源文件 / 触发边界 / 执行步骤 / 验证规则。

  • Wiki — 把文档变成结构化页面 + 链接图谱(灵感来自 Karpathy 的 LLM 知识库 实践)。

  • CodeGraph — 索引仓库的符号 / 文件 / 调用关系 / 影响路径,Agent 改代码 前先做 impact analysis。

🎛️ Memory Hub · 面向团队的操作台

管控面板(agentmemory/memory-hub 镜像,含 Panel + Knowledge Service):

  • 建 Team / Agent,把资产按 Owner / 版本 / 状态 / 可见性统一管理

  • 三级可见性:private / team / restricted(User / Role / Agent ACL), 外加 agent 定向装配

  • Agent Loadout:给不同 Agent 绑定不同资产、调整优先级和使用方式

  • Wiki + CodeGraph 工坊内置在 Hub,导入代码库/文档就能自动构建

🔀 Memory Proxy · Agent 挂上记忆的通道

agentmemory/memory-proxy 让 Claude Code 等 coding agent 直接用上团队记忆:

  • Anthropic / OpenAI 双协议:/claude-code/<spaceId>/v1/messages 和 /v1/chat/completions 都接

  • 首轮引导:sessionInit 通过 AskUserQuestion 让用户选 team / agent / task,proxy 记住绑定

  • 每轮注入:把该 agent 的 L2/L3 记忆、matched skill、wiki/code-graph 拼进 system prompt,转发上游 LLM

  • 鉴权:x-tdai-user-key → 内核 /v3/meta/auth/verify 换 user_id, 按用户维度控制资产可见性

🚀 一条命令拉起完整三件套

三个镜像多架构(linux/amd64 + linux/arm64)已发布到 Docker Hub agentmemory,公开可拉、 无需登录:

git clone https://github.com/Tencent/TencentDB-Agent-Memory.git
cd TencentDB-Agent-Memory/deploy/global-images
cp .env.example .env && $EDITOR .env    # 填入两组 LLM 参数
./start-all.sh                          # 一键起

start-all.sh 首次启动会自动 init-admin、生成 admin sk-mem-... 并落盘 .admin-key;自检 /v3/meta/auth/verify 后打印可复制的 claude 启动命令。 stop-all.sh --purge 彻底清 volume + admin key,方便重置。

详见 INSTALL_CN.md / INSTALL.md。

🧰 官方 SDK
  • TypeScript — @tencentdb-agent-memory/memory-sdk-ts-v2

    import { MemoryClient, SkillClient, MetadataClient } from "@tencentdb-agent-memory/memory-sdk-ts-v2";
    
    const memory = new MemoryClient({
      endpoint, apiKey, serviceId,
      teamId, agentId, userId,     // v3 严格 isolation:三项必填
    });

    顶级 export 就是 v3 严格 isolation 版本;老代码走 .../v2/v3 子路径也 能继续用(子路径保留为向后兼容别名)。

  • Python — pip install tencentdb-agent-memory-sdk-python

    from tencentdb_agent_memory import MemoryClient                     # 默认(v2 兼容)
    from tencentdb_agent_memory.v3 import MemoryClient, MetadataClient, SkillClient
512 files · 503 not served here

Advantages

  • Decouples memory assets from specific agent frameworks, allowing portability across different tools. evidence: README.md
  • Provides structured, versioned, and governed memory assets rather than just raw chat logs. evidence: README.md
  • Enables precise access control through private, team, and restricted visibility settings. evidence: README.md

Limitations

  • The MongoDB storage backend is currently experimental and disabled by default. evidence: README.md
  • Requires manual setup and configuration of LLM parameters for the memory group and proxy group. evidence: README.md

Security

Risk level: Medium risk

This brain runs

Agent instructions that run or fetch something (12)

  • MemoryCore/SKILL.md: node -v
  • MemoryCore/SKILL.md: openclaw plugins install @tencentdb-agent-memory/memory-tencentdb
  • agents/skills/setup-proxy/SKILL.md: curl -s -w "\n%{http_code}" -X POST "${PROXY_HOST}/claude-code/${INSTANCE_ID}/v1/messages" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: curl -s -w "\n%{http_code}" -X POST "${PROXY_HOST}/${AGENT}/${INSTANCE_ID}/v1/chat/completions" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: curl -s -w "\n%{http_code}" -X POST "${PROXY_HOST}/dsh/${INSTANCE_ID}/chat/completions" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: curl -s -w "\n%{http_code}" -X POST "${PROXY_HOST}/codex/${INSTANCE_ID}/v1/responses" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: curl -s -w "\n%{http_code}" -X POST "${PROXY_HOST}/workbuddy/${INSTANCE_ID}/v1/chat/completions" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: curl -s -X POST "${PANEL_URL}/api/v1/meta/auth/verify" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: curl -s -X POST "${PANEL_URL}/api/v1/meta/team/list" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: curl -s -X POST "${PANEL_URL}/api/v1/meta/agent/list" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: curl -s -X POST "${PANEL_URL}/api/v1/meta/task/list" \ · uses the network
  • agents/skills/setup-proxy/SKILL.md: bash agents/skills/setup-proxy/setup-proxy.sh --non-interactive \
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:94)
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:100)
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:106)
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:112)
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:118)
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:140)
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:147)
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:155)
  • Medium risk: runs-instruction-instruction-network (agents/skills/setup-proxy/SKILL.md:163)
  • Low risk: scripts-present (agents/asset-import.ts)
  • Low risk: scripts-present (agents/setup-proxy.sh)
  • Low risk: scripts-present (agents/skills/setup-proxy/setup-proxy.sh)

Attribution and licence

Created by
Tencent Cloud
Publisher
Tencent Cloud (Official Tencent Cloud project)
Source
TencentCloud/TencentDB-Agent-Memory · commit 42d4cde
Licence
MIT License (files served here)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Tencent Cloud.

Install from source

503 of its files are not served here, so there is no ZIP. TencentCloud/TencentDB-Agent-Memory at 42d4cde