TencentCloud/TencentDB-Agent-MemoryPublic

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.

AI summary: OpenClaw plugin implementing layered long-term and symbolic short-term memory for AI agents.

Stars
17.3K
+1.3K today
Forks
1.6K
Watchers
63
Open issues
83
Open PRs
443
Contributors
~4
Commits
8
Branches
3

TypeScriptOtherCreated Apr 7, 2026Last push 1d agoLatest release v2.0.0+7.5K stars this week+8K this month

Star history

since May 31, 2026
05K10K15KMay 2026Jun 2026Jul 2026Aug 2026
17.3K stars as of Aug 7, 2026, tracked back to May 31, 2026. Historical curve reconstructed from public GitHub event archives, calibrated to the current total.

Contribution activity

commits per day, last 52 weeks
AugSepOctNovDecJanFebMarAprMayJunJulAugMonWedFri2025-08-10: 0 commits2025-08-11: 0 commits2025-08-12: 0 commits2025-08-13: 0 commits2025-08-14: 0 commits2025-08-15: 0 commits2025-08-16: 0 commits2025-08-17: 0 commits2025-08-18: 0 commits2025-08-19: 0 commits2025-08-20: 0 commits2025-08-21: 0 commits2025-08-22: 0 commits2025-08-23: 0 commits2025-08-24: 0 commits2025-08-25: 0 commits2025-08-26: 0 commits2025-08-27: 0 commits2025-08-28: 0 commits2025-08-29: 0 commits2025-08-30: 0 commits2025-08-31: 0 commits2025-09-01: 0 commits2025-09-02: 0 commits2025-09-03: 0 commits2025-09-04: 0 commits2025-09-05: 0 commits2025-09-06: 0 commits2025-09-07: 0 commits2025-09-08: 0 commits2025-09-09: 0 commits2025-09-10: 0 commits2025-09-11: 0 commits2025-09-12: 0 commits2025-09-13: 0 commits2025-09-14: 0 commits2025-09-15: 0 commits2025-09-16: 0 commits2025-09-17: 0 commits2025-09-18: 0 commits2025-09-19: 0 commits2025-09-20: 0 commits2025-09-21: 0 commits2025-09-22: 0 commits2025-09-23: 0 commits2025-09-24: 0 commits2025-09-25: 0 commits2025-09-26: 0 commits2025-09-27: 0 commits2025-09-28: 0 commits2025-09-29: 0 commits2025-09-30: 0 commits2025-10-01: 0 commits2025-10-02: 0 commits2025-10-03: 0 commits2025-10-04: 0 commits2025-10-05: 0 commits2025-10-06: 0 commits2025-10-07: 0 commits2025-10-08: 0 commits2025-10-09: 0 commits2025-10-10: 0 commits2025-10-11: 0 commits2025-10-12: 0 commits2025-10-13: 0 commits2025-10-14: 0 commits2025-10-15: 0 commits2025-10-16: 0 commits2025-10-17: 0 commits2025-10-18: 0 commits2025-10-19: 0 commits2025-10-20: 0 commits2025-10-21: 0 commits2025-10-22: 0 commits2025-10-23: 0 commits2025-10-24: 0 commits2025-10-25: 0 commits2025-10-26: 0 commits2025-10-27: 0 commits2025-10-28: 0 commits2025-10-29: 0 commits2025-10-30: 0 commits2025-10-31: 0 commits2025-11-01: 0 commits2025-11-02: 0 commits2025-11-03: 0 commits2025-11-04: 0 commits2025-11-05: 0 commits2025-11-06: 0 commits2025-11-07: 0 commits2025-11-08: 0 commits2025-11-09: 0 commits2025-11-10: 0 commits2025-11-11: 0 commits2025-11-12: 0 commits2025-11-13: 0 commits2025-11-14: 0 commits2025-11-15: 0 commits2025-11-16: 0 commits2025-11-17: 0 commits2025-11-18: 0 commits2025-11-19: 0 commits2025-11-20: 0 commits2025-11-21: 0 commits2025-11-22: 0 commits2025-11-23: 0 commits2025-11-24: 0 commits2025-11-25: 0 commits2025-11-26: 0 commits2025-11-27: 0 commits2025-11-28: 0 commits2025-11-29: 0 commits2025-11-30: 0 commits2025-12-01: 0 commits2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 0 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 0 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 0 commits2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 0 commits2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 0 commits2026-03-09: 0 commits2026-03-10: 0 commits2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 0 commits2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 0 commits2026-03-17: 0 commits2026-03-18: 0 commits2026-03-19: 0 commits2026-03-20: 0 commits2026-03-21: 0 commits2026-03-22: 0 commits2026-03-23: 0 commits2026-03-24: 0 commits2026-03-25: 0 commits2026-03-26: 0 commits2026-03-27: 0 commits2026-03-28: 0 commits2026-03-29: 0 commits2026-03-30: 0 commits2026-03-31: 0 commits2026-04-01: 0 commits2026-04-02: 0 commits2026-04-03: 0 commits2026-04-04: 0 commits2026-04-05: 0 commits2026-04-06: 0 commits2026-04-07: 0 commits2026-04-08: 0 commits2026-04-09: 0 commits2026-04-10: 0 commits2026-04-11: 0 commits2026-04-12: 0 commits2026-04-13: 0 commits2026-04-14: 0 commits2026-04-15: 0 commits2026-04-16: 0 commits2026-04-17: 0 commits2026-04-18: 0 commits2026-04-19: 0 commits2026-04-20: 0 commits2026-04-21: 0 commits2026-04-22: 0 commits2026-04-23: 0 commits2026-04-24: 0 commits2026-04-25: 0 commits2026-04-26: 0 commits2026-04-27: 0 commits2026-04-28: 0 commits2026-04-29: 0 commits2026-04-30: 0 commits2026-05-01: 0 commits2026-05-02: 0 commits2026-05-03: 0 commits2026-05-04: 0 commits2026-05-05: 0 commits2026-05-06: 0 commits2026-05-07: 0 commits2026-05-08: 0 commits2026-05-09: 0 commits2026-05-10: 0 commits2026-05-11: 0 commits2026-05-12: 0 commits2026-05-13: 0 commits2026-05-14: 0 commits2026-05-15: 0 commits2026-05-16: 0 commits2026-05-17: 0 commits2026-05-18: 0 commits2026-05-19: 0 commits2026-05-20: 0 commits2026-05-21: 0 commits2026-05-22: 0 commits2026-05-23: 0 commits2026-05-24: 0 commits2026-05-25: 0 commits2026-05-26: 0 commits2026-05-27: 0 commits2026-05-28: 0 commits2026-05-29: 0 commits2026-05-30: 0 commits2026-05-31: 0 commits2026-06-01: 0 commits2026-06-02: 0 commits2026-06-03: 0 commits2026-06-04: 0 commits2026-06-05: 0 commits2026-06-06: 0 commits2026-06-07: 0 commits2026-06-08: 0 commits2026-06-09: 0 commits2026-06-10: 0 commits2026-06-11: 0 commits2026-06-12: 0 commits2026-06-13: 0 commits2026-06-14: 0 commits2026-06-15: 0 commits2026-06-16: 0 commits2026-06-17: 0 commits2026-06-18: 0 commits2026-06-19: 0 commits2026-06-20: 0 commits2026-06-21: 0 commits2026-06-22: 0 commits2026-06-23: 0 commits2026-06-24: 0 commits2026-06-25: 0 commits2026-06-26: 0 commits2026-06-27: 0 commits2026-06-28: 0 commits2026-06-29: 0 commits2026-06-30: 0 commits2026-07-01: 0 commits2026-07-02: 0 commits2026-07-03: 0 commits2026-07-04: 0 commits2026-07-05: 0 commits2026-07-06: 0 commits2026-07-07: 0 commits2026-07-08: 0 commits2026-07-09: 0 commits2026-07-10: 0 commits2026-07-11: 0 commits2026-07-12: 0 commits2026-07-13: 0 commits2026-07-14: 0 commits2026-07-15: 0 commits2026-07-16: 0 commits2026-07-17: 0 commits2026-07-18: 0 commits2026-07-19: 0 commits2026-07-20: 0 commits2026-07-21: 0 commits2026-07-22: 3 commits2026-07-23: 0 commits2026-07-24: 1 commit2026-07-25: 0 commits2026-07-26: 0 commits2026-07-27: 0 commits2026-07-28: 0 commits2026-07-29: 1 commit2026-07-30: 0 commits2026-07-31: 0 commits2026-08-01: 0 commits2026-08-02: 0 commits2026-08-03: 1 commit2026-08-04: 0 commits2026-08-05: 1 commit2026-08-06: 1 commit2026-08-07: 0 commits2026-08-08: 0 commits
8 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Widely adopted

    17,327 stars

  • Rising fast

    +7,498 stars this week

  • Actively maintained

    Pushed within 48 hours

  • Repeat trending

    6 trending appearances

What TencentDB-Agent-Memory does

TencentDB Agent Memory replaces standard flat vector storage with a sophisticated dual-memory architecture for AI agents. It converts noisy, verbose tool logs into compact "symbolic" short-term memory using Mermaid syntax, drastically reducing context token usage. For long-term memory, it distills fragmented conversations into structured personas and scenes rather than unstructured vector piles. When integrated with OpenClaw, it significantly lowers token consumption while improving task success rates and memory accuracy.

Developers building autonomous agents or AI companions who need highly efficient, structured memory management to reduce costs and improve reliability.

  • Feature: Condenses verbose tool execution logs into lightweight symbolic short-term memory.
  • Feature: Distills raw conversational history into structured, layered long-term memory (personas and scenes).
  • Feature: Reduces LLM context token usage by up to 61% during complex tasks.
  • Feature: Increases overall agent task success rates and memory retrieval accuracy.
  • Feature: Designed specifically as a seamless plugin for the OpenClaw ecosystem.

Where teams use it

Cost Reduction in Agents

AI developers can slash API costs by preventing heavy tool outputs from bloating the LLM context window.

Consistent AI Companions

Developers building virtual companions can use the layered memory to ensure the AI remembers structured user traits over months of interaction.

Complex Task Execution

Agents performing multi-step operations can maintain focus better, as the symbolic memory prevents them from getting lost in their own logs.

Getting started: See repository documentation for OpenClaw plugin installation.

README

feat/server_team branch
TencentDB Agent Memory

Agents remember. Humans innovate.

TencentCloud%2FTencentDB-Agent-Memory | Trendshift

npm License: MIT Node OpenClaw Hermes Discord

Installation · What is it? · Team Play · Technical Implementation · Benchmark

English · 简体中文


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

memoryhub_demo.mov

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).

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.

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.
  • Each Agent automatically gets its own memory when created — no need to re-introduce yourself next time.
  • L0 Conversation → L1 Atom → L2 Scenario → L3 Persona — raw conversations are distilled layer by layer.

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.
  • 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; after review, they can be shared with the team and assigned to other Agents.

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. (Inspired by Karpathy's LLM knowledge base.)

image.png

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

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.

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:

  • Codebases: Import existing repositories — CodeGraph automatically indexes symbols, files, call relationships, and impact paths.
  • Documents & files: Import relevant docs and files — Wiki automatically generates structured pages with a link graph.
  • Conversation sessions: Import past Agent conversation sessions — Skills and Chat Memory are automatically extracted as reusable assets.

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

  • Wiki and CodeGraph are built asynchronously; allow some processing time before they reach ready status.
  • CodeGraph currently prioritizes public HTTPS repositories; support for private repositories and SSH credentials is still being refined.
  • The Hub supports manual asset binding; fully automated memory routing is still under iteration.
  • TencentDB Agent Memory currently supports OpenClaw, Hermes, Claude Code, CodeBuddy, and SDK integration; broader cross-framework migration is on the roadmap.

Related Documentation

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.


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.

Let the path the team has walked become the next Agent's starting line.


✨ Contributors

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

If TencentDB Agent Memory has been helpful to you, please consider starring the project.
If you have any suggestions, feel free to open an issue for discussion.
Star TencentDB Agent Memory

MIT © TencentDB Agent Memory Team

View on GitHub

Recent activity

commits and pull requests

Releases and announcements

11 total
  1. v2.0.0v2.0.0Aug 3, 2026

    ## [2.0.0] - 2026-08-03 v2.0.0 正式版发布,相比 beta.1 新增 Skill 强制归档、CodeGraph 定时同步、 面板中英文切换 / 管理员资产管理等特性,并完善了部署流程与接入文档。 > **产品定位**:让 Agent 的经验、文档、代码沉淀成可复用资产,让下一位 Agent > 直接读档。详见 [README_CN.md](./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/mes

  2. v2.0.0-beta.1v2.0.0-beta.1Jul 22, 2026pre-release

    ## [2.0.0-beta.1] - 2026-07-21 > **产品定位**:让 Agent 的经验、文档、代码沉淀成可复用资产,让下一位 Agent > 直接读档。详见 [README_CN.md](./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-t

  3. v1.0.1v1.0.1Jul 14, 2026

    ## [1.0.1] - 2026-07-13 > **Patch 修复版本**:修复 Gateway local 模式下 L2 定时器路由错误导致场景提取失效的问题,以及升级 COS SDK 解决安全风险。 ### 🐛 修复 - **Gateway local L2 定时器未走场景提取** ([#227](https://github.com/Tencent/TencentDB-Agent-Memory/pull/227)):本地 timer 扫描将 L2 schedule 错路由到非 scene extraction 任务类型,导致 L2 场景提取定时触发失效。抽出 `timer-routing.ts`,按 timer member 前缀正确映射 `offload-l1` / `offload-l15` / `offload-l2` 与 `L1` / `L2` / `L3` 任务。 - **升级 `cos-nodejs-sdk-v5` 至 3.0.0**:旧版 COS SDK 存在安全风险,升级从而修复该问题。 --- **Full Changelog**: https://github.com/Tencent/TencentDB-Agent-Memory/compare/v1.0.0...v1.0.1

  4. v1.0.0v1.0.0Jun 11, 2026

    ## [1.0.0] - 2026-06-11 > **正式版发布**:从 OpenClaw 专属插件演进为**面向所有 Agent 的通用记忆服务**。完整的 Gateway 独立服务 + v2 HTTP API + 官方 TypeScript / Python SDK,任何 Agent 框架均可接入完整的多层记忆与上下文压缩能力。 ### ⚠️ Breaking Changes - **客户端/服务端架构拆分**:记忆引擎从 OpenClaw 嵌入式插件拆分为独立 Gateway 服务进程,部署方式与接入方式发生变化。 - **配置结构变更**:插件配置结构扁平化重构,原 `gateway` 字段迁移为 `server` 嵌套。 - **插件入口模式变更**:支持 `local`(进程内本地运行,默认)和 `client`(连接外部 Memory Gateway)两种接入模式。 ### 🚀 独立 Gateway 服务(v2 API) 记忆能力不再绑定 OpenClaw 宿主,以独立服务形式运行,通过 v2 HTTP API 为任意 Agent 提供记忆读写与管线管理: - **完整 v2 API**:14 条标准路由覆盖记忆 CRUD、原子更新、场景索引、管线状态查询等全部操作。 - **管线状态查询(`/v2/pipeline/status`)**:实时获取 L1/L2/L3 各阶段运行状态与进度。 - **实例生命周期管理(`/v2/instance/destroy`)**:支持外部系统主动创建/销毁记忆实例。 - **可选 Bearer 鉴权 + CORS 白名单**:保护对外暴露的 API 安全。 - **请求体校验**:强制 1 MiB 上限,防止异常请求。 ### 🚀 官方 SDK - **TypeScript SDK 1.0.0**(`@tencentdb-agent-memory/memory-sdk-ts`):类型安全,覆盖全部 v2 API,npm 安装即用。 - **Python SDK**(`tencentdb-agent-memory-sdk-python`):pip wheel 安装,同步/异步双模式,覆盖全部 v2 API。 ### 🚀 通用 Agent 框架适配 - **OpenClaw 插件适配**:支持 `local`(进程内本地运行,默认)和 `client`(连接外部 Memory Gateway)两种接入模式。`local` 模式保持原有体验。 - **Hermes Agent 适配**:`memory_tencentdb_v2` adapter,支持 Hermes 框架多租户场景。 - **通用接入**:任何能发 HTTP 请求

  5. v1.0.0-beta.1v1.0.0-beta.1May 29, 2026pre-release

    ## [1.0.0-beta.1] - 2026-05-29 ### 🚀 全新架构:独立 Memory 服务 v1.0.0-beta.1 是 TencentDB Agent Memory 的全新里程碑版本,从 OpenClaw 嵌入式插件演进为**独立可部署的 Memory 服务**。 **核心变化**: - **独立部署**:不再依赖 OpenClaw 宿主,支持 Docker / Node.js 直接部署 - **HTTP v2 API**:完整的 RESTful 接口,任何语言/框架的 Agent 都可通过 HTTP 接入 - **多框架适配**:同时支持 OpenClaw 插件模式 + Hermes 插件模式 + 独立服务模式 - **官方 SDK**:提供 TypeScript SDK 与 Python SDK ### ✨ 新功能 **v2 REST API(Gateway)** - L0 Conversation:`add` / `query` / `search` / `delete` - L1 Atomic:`update` / `query` / `search` / `delete` - L2 Scenario:`ls` / `read` / `write` / `rm` - L3 Core(Persona):`read` / `write` - 所有路由前缀 `/v2/`,认证方式 `Authorization: Bearer` + `x-tdai-service-id` **Standalone 本地模式** - 零外部依赖:仅需 LLM API Key 即可运行 - 默认 SQLite + BM25 存储,开箱即用 - 支持 Docker 一键部署(`agentmemory/hermes-memory:1.0.0-beta` / `agentmemory/openclaw-memory:1.0.0-beta`) **SDK** - **TypeScript SDK**(`@tencentdb-agent-memory/memory-sdk-ts`):完整覆盖 L0–L3 全部接口 - **Python SDK**(`tencentdb-agent-memory-sdk-python`):同步 + 异步双客户端 **Pipeline 服务化** - `PipelineWorker`:异步消费 L1 提取 / L2 场景生成 / L3 画像更新 - `TimerScanner`:定时扫描 idle session 触发 pipeline - `StorePool`:多实例存储池管理 - Redis HA 配置支持(service 模式)

Code frequency

additions and deletions
+201.2K-201.2KWeek of 2026-07-19: +201,226 linesWeek of 2026-07-19: -13 linesWeek of 2026-07-26: +1 linesWeek of 2026-07-26: -1 linesWeek of 2026-08-02: +17,689 linesWeek of 2026-08-02: -6,666 linesJul 19, 2026Aug 2, 2026
+218.9K lines added, -6.7K removed over the last year.

Commits per week

last 52 weeks
40Week of 2025-08-10: 0 commitsWeek of 2025-08-17: 0 commitsWeek of 2025-08-24: 0 commitsWeek of 2025-08-31: 0 commitsWeek of 2025-09-07: 0 commitsWeek of 2025-09-14: 0 commitsWeek of 2025-09-21: 0 commitsWeek of 2025-09-28: 0 commitsWeek of 2025-10-05: 0 commitsWeek of 2025-10-12: 0 commitsWeek of 2025-10-19: 0 commitsWeek of 2025-10-26: 0 commitsWeek of 2025-11-02: 0 commitsWeek of 2025-11-09: 0 commitsWeek of 2025-11-16: 0 commitsWeek of 2025-11-23: 0 commitsWeek of 2025-11-30: 0 commitsWeek of 2025-12-07: 0 commitsWeek of 2025-12-14: 0 commitsWeek of 2025-12-21: 0 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 0 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 0 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 0 commitsWeek of 2026-02-15: 0 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 0 commitsWeek of 2026-03-15: 0 commitsWeek of 2026-03-22: 0 commitsWeek of 2026-03-29: 0 commitsWeek of 2026-04-05: 0 commitsWeek of 2026-04-12: 0 commitsWeek of 2026-04-19: 0 commitsWeek of 2026-04-26: 0 commitsWeek of 2026-05-03: 0 commitsWeek of 2026-05-10: 0 commitsWeek of 2026-05-17: 0 commitsWeek of 2026-05-24: 0 commitsWeek of 2026-05-31: 0 commitsWeek of 2026-06-07: 0 commitsWeek of 2026-06-14: 0 commitsWeek of 2026-06-21: 0 commitsWeek of 2026-06-28: 0 commitsWeek of 2026-07-05: 0 commitsWeek of 2026-07-12: 0 commitsWeek of 2026-07-19: 4 commitsWeek of 2026-07-26: 1 commitsWeek of 2026-08-02: 3 commitsAug 10, 2025Aug 2, 2026
8 commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 0 commitsSun 1:00 — 0 commitsSun 2:00 — 0 commitsSun 3:00 — 0 commitsSun 4:00 — 0 commitsSun 5:00 — 0 commitsSun 6:00 — 0 commitsSun 7:00 — 0 commitsSun 8:00 — 0 commitsSun 9:00 — 0 commitsSun 10:00 — 0 commitsSun 11:00 — 0 commitsSun 12:00 — 0 commitsSun 13:00 — 0 commitsSun 14:00 — 0 commitsSun 15:00 — 0 commitsSun 16:00 — 0 commitsSun 17:00 — 0 commitsSun 18:00 — 0 commitsSun 19:00 — 0 commitsSun 20:00 — 0 commitsSun 21:00 — 0 commitsSun 22:00 — 0 commitsSun 23:00 — 0 commitsMon 0:00 — 0 commitsMon 1:00 — 0 commitsMon 2:00 — 0 commitsMon 3:00 — 0 commitsMon 4:00 — 0 commitsMon 5:00 — 0 commitsMon 6:00 — 0 commitsMon 7:00 — 0 commitsMon 8:00 — 0 commitsMon 9:00 — 0 commitsMon 10:00 — 0 commitsMon 11:00 — 0 commitsMon 12:00 — 0 commitsMon 13:00 — 0 commitsMon 14:00 — 0 commitsMon 15:00 — 0 commitsMon 16:00 — 0 commitsMon 17:00 — 0 commitsMon 18:00 — 0 commitsMon 19:00 — 1 commitsMon 20:00 — 0 commitsMon 21:00 — 0 commitsMon 22:00 — 0 commitsMon 23:00 — 0 commitsTue 0:00 — 0 commitsTue 1:00 — 0 commitsTue 2:00 — 0 commitsTue 3:00 — 0 commitsTue 4:00 — 0 commitsTue 5:00 — 0 commitsTue 6:00 — 0 commitsTue 7:00 — 0 commitsTue 8:00 — 0 commitsTue 9:00 — 0 commitsTue 10:00 — 0 commitsTue 11:00 — 0 commitsTue 12:00 — 0 commitsTue 13:00 — 0 commitsTue 14:00 — 0 commitsTue 15:00 — 0 commitsTue 16:00 — 0 commitsTue 17:00 — 0 commitsTue 18:00 — 0 commitsTue 19:00 — 0 commitsTue 20:00 — 0 commitsTue 21:00 — 0 commitsTue 22:00 — 0 commitsTue 23:00 — 0 commitsWed 0:00 — 0 commitsWed 1:00 — 0 commitsWed 2:00 — 0 commitsWed 3:00 — 0 commitsWed 4:00 — 0 commitsWed 5:00 — 0 commitsWed 6:00 — 0 commitsWed 7:00 — 0 commitsWed 8:00 — 0 commitsWed 9:00 — 0 commitsWed 10:00 — 0 commitsWed 11:00 — 0 commitsWed 12:00 — 0 commitsWed 13:00 — 0 commitsWed 14:00 — 0 commitsWed 15:00 — 0 commitsWed 16:00 — 1 commitsWed 17:00 — 1 commitsWed 18:00 — 2 commitsWed 19:00 — 0 commitsWed 20:00 — 0 commitsWed 21:00 — 0 commitsWed 22:00 — 0 commitsWed 23:00 — 1 commitsThu 0:00 — 0 commitsThu 1:00 — 0 commitsThu 2:00 — 0 commitsThu 3:00 — 0 commitsThu 4:00 — 0 commitsThu 5:00 — 0 commitsThu 6:00 — 0 commitsThu 7:00 — 0 commitsThu 8:00 — 0 commitsThu 9:00 — 0 commitsThu 10:00 — 0 commitsThu 11:00 — 0 commitsThu 12:00 — 0 commitsThu 13:00 — 0 commitsThu 14:00 — 0 commitsThu 15:00 — 0 commitsThu 16:00 — 0 commitsThu 17:00 — 0 commitsThu 18:00 — 0 commitsThu 19:00 — 0 commitsThu 20:00 — 1 commitsThu 21:00 — 0 commitsThu 22:00 — 0 commitsThu 23:00 — 0 commitsFri 0:00 — 0 commitsFri 1:00 — 0 commitsFri 2:00 — 0 commitsFri 3:00 — 0 commitsFri 4:00 — 0 commitsFri 5:00 — 0 commitsFri 6:00 — 0 commitsFri 7:00 — 0 commitsFri 8:00 — 0 commitsFri 9:00 — 0 commitsFri 10:00 — 0 commitsFri 11:00 — 0 commitsFri 12:00 — 0 commitsFri 13:00 — 0 commitsFri 14:00 — 0 commitsFri 15:00 — 0 commitsFri 16:00 — 1 commitsFri 17:00 — 0 commitsFri 18:00 — 0 commitsFri 19:00 — 0 commitsFri 20:00 — 0 commitsFri 21:00 — 0 commitsFri 22:00 — 0 commitsFri 23:00 — 0 commitsSat 0:00 — 0 commitsSat 1:00 — 0 commitsSat 2:00 — 0 commitsSat 3:00 — 0 commitsSat 4:00 — 0 commitsSat 5:00 — 0 commitsSat 6:00 — 0 commitsSat 7:00 — 0 commitsSat 8:00 — 0 commitsSat 9:00 — 0 commitsSat 10:00 — 0 commitsSat 11:00 — 0 commitsSat 12:00 — 0 commitsSat 13:00 — 0 commitsSat 14:00 — 0 commitsSat 15:00 — 0 commitsSat 16:00 — 0 commitsSat 17:00 — 0 commitsSat 18:00 — 0 commitsSat 19:00 — 0 commitsSat 20:00 — 0 commitsSat 21:00 — 0 commitsSat 22:00 — 0 commitsSat 23:00 — 0 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.
DateListRankStars gained
Aug 7, 2026daily#1+1,057
Aug 6, 2026daily#3+1,892
Aug 5, 2026daily#1+1,111
Aug 4, 2026daily#4+1,090
Aug 3, 2026daily#8+602
Aug 2, 2026daily#12+227
  • freeCodeCamp/freeCodeCamp

    freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

    453.6K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    385.5K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • affaan-m/ECC

    The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

    238.5K stars · JavaScript