
Team-level memory hub for AI agents — layered long-term memory + symbolic short-term memory that cuts tokens 61% and lifts task success 51%.
Team-level memory hub for AI agents — layered long-term memory + symbolic short-term memory that cuts tokens 61% and lifts task success 51%.
TencentDB Agent Memory is an open-source (MIT) memory hub that turns agent conversations, docs, and code into four reusable, governed memory assets — Chat Memory, Skill, LLM-Wiki, and Code-Graph — shared across agents and frameworks. It combines two ideas: symbolic short-term memory that offloads verbose tool logs and condenses task state into compact Mermaid symbol graphs, and layered long-term memory that distills flat conversation history into an L0→L3 semantic pyramid (Conversation → Atom → Scenario → Persona). Instead of a flat vector pile, the agent attends to top-layer structure in context and drills down to raw evidence via node id only when it needs to. When integrated with the OpenClaw agent, it cuts token usage up to 61.38%, improves task success 51.52% (relative), and raises PersonaMem accuracy from 48% to 76% across continuous long-horizon sessions. Runs on Node 22+ with a local SQLite + sqlite-vec backend by default, and integrates with OpenClaw and Hermes Gateway out of the box.
TencentDB Agent Memory is a team-level memory hub designed for AI agents, integrating layered long-term memory and symbolic short-term memory. This innovative approach reduces token usage by 61% and enhances task success rates by 51%, making it a powerful tool for improving AI performance.
TencentDB Agent Memory leverages a unique memory architecture, merging long-term and symbolic short-term memory.
Layered Long-Term Memory: This aspect stores vast amounts of information over an extended period, enabling AI agents to recall context and nuances essential for complex tasks. For instance, it can remember user preferences and historical interactions, leading to more personalized responses.
Symbolic Short-Term Memory: This component focuses on immediate tasks and interactions, allowing AI agents to process and respond rapidly. By cutting token usage by 61%, it streamlines operations, making real-time processing faster and more efficient.
Enhanced Task Success: The combined memory framework results in a 51% increase in task success rates. This means that AI agents are better equipped to handle challenges, leading to improved outcomes in applications like customer service, data analysis, and content generation.
TencentDB Agent Memory is an advanced AI memory management system that utilizes symbolic short-term and layered long-term memory to optimize task efficiency. It incorporates reusable memory assets and a traceable structure to enhance interaction quality while minimizing input token usage, making it ideal for AI engineering teams.
TencentDB Agent Memory operates through a sophisticated architecture designed to improve AI performance for coding agents and personal assistants. Here’s how it works:
Symbolic Short-Term Memory: This feature offloads heavy logs and condenses the task state into compact Mermaid symbol graphs. This significant reduction in context tokens allows agents to focus on relevant data, enhancing efficiency and speed during tasks.
Layered Long-Term Memory: Instead of a flat vector storage system, TencentDB organizes memories into a semantic pyramid comprising four layers:
This structured approach allows for better management of information and more personalized user experiences.
Four Reusable Memory Assets: TencentDB includes Chat Memory, Skill, LLM-Wiki, and Code-Graph, which are governed and shared across agents. This shared knowledge base allows for seamless integration and enhances collaboration among various AI frameworks.
Drill-down Traceability: The system ensures that every high-level abstraction can be traced back to its raw evidence via a node ID, eliminating irreversible lossy summarization. This feature is crucial for maintaining data integrity and understanding the decision-making process of AI agents.
Heterogeneous Storage: Raw facts and logs are stored in a database for full-text retrieval. The top-layer personas and canvases are formatted as human-readable Markdown, allowing teams to inspect and analyze data easily.
TencentDB Agent Memory features advanced memory management, including symbolic short-term memory, layered long-term memory, four reusable memory assets, drill-down traceability, and heterogeneous storage. These capabilities enhance data handling, improve agent performance, and facilitate better insights and interactions across various applications.
TencentDB Agent Memory introduces several innovative features that optimize data handling and enhance the performance of AI agents:
Symbolic Short-Term Memory: This feature offloads extensive tool logs, transforming them into compact Mermaid symbol graphs. By doing so, it significantly reduces the number of in-context tokens required, making data processing faster and more efficient. For instance, this allows agents to focus on relevant information without being bogged down by unnecessary details.
Layered Long-Term Memory: Unlike traditional flat vector storage, TencentDB employs a semantic pyramid structure—L0 (Conversation), L1 (Atom), L2 (Scenario), and L3 (Persona). This layered approach allows for more sophisticated data organization, enabling agents to access and utilize contextual knowledge more effectively. For example, an agent could retrieve specific persona traits based on previous interactions, enhancing user engagement.
Four Reusable Memory Assets: The system includes four core memory types—Chat Memory, Skill, LLM-Wiki, and Code-Graph. These assets are shared and governed across various agents and frameworks, promoting collaboration and reducing redundancy. This flexibility allows developers to create more intelligent agents that can leverage shared knowledge and skills.
Drill-Down Traceability: TencentDB offers a deterministic path from high-level abstractions back to raw evidence using node IDs. This feature ensures that there is no irreversible lossy summarization, enabling users to track decisions and insights back to their source. For example, if an agent makes a recommendation, users can trace it back to its origin.
Heterogeneous Storage: The platform supports raw facts and logs stored in a database for full-text retrieval, while top-layer personas and canvases are presented in human-readable Markdown. This dual storage approach balances technical efficiency with user-friendliness, allowing for easier inspection and understanding of data.
TencentDB Agent Memory is designed for AI engineering teams, product developers, agent framework authors, enterprise teams, and research groups. It enhances long-horizon coding agents, personal assistants, shared memory hubs, and benchmarking efforts by improving task success rates and memory management across various applications.
TencentDB Agent Memory is a powerful tool catering to multiple sectors involved in AI and software engineering. Here's how different user groups can leverage its capabilities:
AI Engineering Teams: For teams focusing on long-horizon coding tasks, such as those using SWE-bench-style workloads, TencentDB Agent Memory helps manage input tokens effectively. This reduction allows coding agents to maintain context over extended sessions, leading to higher task success rates.
Product Development Teams: Developers creating personal assistants benefit significantly from this memory system. It enables these assistants to remember user preferences, conversations, and contexts over weeks without needing to send the entire chat history to the AI model. This functionality improves user experience and reduces server load.
Agent Framework Authors: Those developing frameworks like OpenClaw or Hermes Gateway can integrate a drop-in memory layer that utilizes symbolic and layered storage. Unlike traditional flat vector stores, this approach offers more nuanced memory management, allowing for better retrieval and contextual understanding.
Enterprise Teams: In enterprise environments, multiple agents (support, development, analysis) can utilize a shared memory hub. This setup allows various agents to reuse common personas, standard operating procedures (SOPs), and Code-Graph facts, enhancing collaboration and efficiency.
Research Groups: For academic and research-focused teams benchmarking agent memory strategies, TencentDB Agent Memory provides a reproducible open-source baseline. It includes published metrics like PersonaMem and WideSearch numbers, essential for comparative studies and validation of findings.
TencentDB Agent Memory is completely free to use, allowing users to manage their database without incurring additional costs. This feature enables efficient data handling and monitoring, making it an attractive option for developers and businesses looking to optimize their database performance at no expense.
TencentDB Agent Memory is a feature of Tencent Cloud’s database service that allows users to monitor and manage their databases effectively without any associated costs. This tool is particularly beneficial for developers and companies that want to ensure optimal performance of their databases without budget constraints.
Using TencentDB Agent Memory, users can gain insights into memory usage, performance metrics, and potential bottlenecks. This helps in making data-driven decisions to enhance database efficiency. For instance, if a company notices high memory usage patterns, they can optimize queries or adjust resource allocation accordingly.
In practice, users can access TencentDB Agent Memory through the Tencent Cloud console, where they can view real-time data and analytics. This resource is essential for maintaining performance as it provides alerts for unusual memory spikes, enabling preemptive actions to prevent downtime.
Common pitfalls include neglecting to review memory usage regularly, which can lead to performance degradation over time. Always ensure that your database configurations are aligned with the insights gathered from the TencentDB Agent Memory.
By utilizing TencentDB Agent Memory, you can manage your databases effectively while keeping costs at zero, thus enhancing your overall cloud database strategy.
To get started with TencentDB Agent Memory, visit the official GitHub repository at TencentDB Agent Memory. Here, you can sign up, access documentation, and explore various features designed to enhance your database management capabilities.
TencentDB Agent Memory is an essential tool for managing memory resources in your database environment. To get started:
Create an Account: Go to the Tencent Cloud website and sign up for a free account. This will allow you to access TencentDB and its associated tools.
Visit the GitHub Repository: Navigate to the TencentDB Agent Memory GitHub page. Here, you will find the source code, installation instructions, and user manuals.
Installation: Follow the installation guide provided on the GitHub page. Typically, this involves downloading the necessary files, configuring your settings, and integrating the agent with your existing database setup.
Configuration: Once installed, configure the agent to monitor your database memory usage. Make sure to set parameters according to your specific workload and performance requirements.
Explore Features: After setup, explore features such as memory tracking, performance optimization, and alerts for memory thresholds. Utilize these features to enhance your database performance and reliability.
Compare TencentDB Agent Memory: vs Semantica · vs Code Graph RAG · vs Paritok · vs Prompt Golf