Tencent Hunyuan releases Hy-Memory 2.0, an open-source memory system for AI agents
Tencent Hunyuan has released Hy-Memory 2.0 as open source. It includes a memory-writing model, an SDK and the MemHub app. According to the company's report, the model narrowly beat Claude Opus 5 on average, but the authors say some of the differences amount to a tie.
Tencent Hunyuan, Tencent's AI unit, released Hy-Memory 2.0 as open source on 16 October. The system gives AI agents long-term memory. It has three parts that can be used separately or together: Hy-Memory-30B-A3B, a model trained to write memory; hy-memory, a Python SDK; and MemHub, an app that shares the same memory across different AI tools.
The SDK stores three kinds of memory. Conversation memory refines conversations step by step into facts, summaries and a user profile. Work memory and code memory are new in version 2.0. Both are built from sessions in which the agent has made tool calls. For each session, they record what was done and with what result, along with approaches worth reusing in similar tasks. Code memory also stores the actual diff of every code change, meaning the exact lines changed, so a version that was later reverted can still be found in memory. Tencent describes Hy-Memory as the industry's first memory system to introduce work and code memory.
The SDK is available from PyPI (pip install hy-memory==2.0.2), and the code is on GitHub under the Apache-2.0 licence. It needs an LLM service and an embedding service to run, and any OpenAI-compatible API works for either. Lite mode makes no LLM calls at all, whereas in pro and ultra modes an LLM extracts the information to be stored in memory.
MemHub is a desktop and CLI application that runs locally. It gathers the conversation history from tools the user authorises, such as Claude Code, Cursor, Codex and OpenCode, into a single local directory. According to Tencent's website, it supports ten tools.
In Tencent's own comparisons, Hy-Memory was the best of the open-source memory systems on four benchmarks. On the LoCoMo conversational memory test, for example, it reached 72.6 per cent accuracy. In these measurements, DeepSeek V4.1 Flash wrote the memory, and GPT-5.6-sol both answered the questions and judged the answers.
Hy-Memory-30B-A3B is a mixture-of-experts (MoE) model with 30 billion parameters, of which about three billion are active at a time. The model does not answer users' questions. Instead, it decides what to store from a conversation and how new information updates old information. The model is available on Hugging Face. According to the technical report the authors published on arXiv, they first trained the model under the guidance of the Hy3 flagship model and then with reinforcement learning. The reward was calculated separately for each conversation segment the model wrote to memory: it measured whether the segment's information could later be found in memory and penalised unnecessary storage. The report has not been peer reviewed.
According to the report, the model was the best memory writer in all four memory systems tested. All models were compared on the same predefined subset, covering 20 per cent of each benchmark's data. In the Hy-Memory and MemOS systems, the gap to Opus 5 was 0.01–0.02 points, which the authors say amounts to a tie rather than a statistically reliable difference. The clearest gap, 2.86 points, came in EverMemOS, which was not used in training. The authors point out that it is the only such system in the comparison. Nor does the report use experiments to break down how the individual parts of the method affect the result.
| Memory writer | Mem0 | Hy-Memory | MemOS | EverMemOS | Average |
|---|---|---|---|---|---|
| Hy-Memory-30B-A3B | 54.02 | 60.55 | 50.51 | 56.89 | 55.49 |
| Claude Opus 5 | 53.43 | 60.53 | 50.50 | 54.04 | 54.62 |
| DeepSeek V4.1 Flash | 49.73 | 60.20 | 49.17 | 55.47 | 53.64 |
| Hy3-A3B Base | 40.20 | 50.39 | 49.05 | 50.98 | 47.66 |
| Qwen3-30B-A3B | 39.81 | 45.67 | 45.44 | 46.57 | 44.37 |
Source: Tencent Hunyuan technical report (arXiv). The figures are averages across six benchmarks for each memory system, measured on 20 per cent samples. EverMemOS was not used in training.