π Why this one is worth reading
Most coverage of a vendor release repeats the vendor's numbers. This video does something else: it opens the benchmark table, divides the columns itself, and reports where the arithmetic disagrees with the printed figure.
π§ The problem: context rot 0:28
The framing is concrete rather than abstract: an agent 40 turns into a job, having read 9 files and run 12 commands, about to ask the same question it asked on turn 4. Every turn drags the whole history back into the prompt.
The obvious fix β a bigger context window β is the one the video rules out first, citing Chroma's context-rot study across 18 frontier models on trivial tasks (copy this text, find this sentence). Accuracy falls as input grows, and starts falling long before the window is full.
Scale check from the video: one SWE-bench session of 50 consecutive coding tasks burned 3.5 billion tokens β roughly 3,500 full million-token context windows on a single benchmark run.
π Idea one: fold the logs 2:42
The observation underneath is simple and correct: in a long task the token hogs are not your instructions β they are the intermediate logs. Search results, stack traces, file dumps.
So the plugin moves them out. Full tool output is written to Markdown files on disk; what stays in the prompt is a Mermaid graph of what happened, with an ID on every node. When the agent hits an error and needs detail, it greps the node_id and pulls the raw text back.
refs/*.md, step-level summaries in jsonl, and a top-layer Mermaid canvas the agent attends to β drilling down via node_id when something fails. Its own phrasing: "Lower layers preserve evidence; upper layers preserve structure."Two thresholds drive the folding, per the video: mild compression at half the context window, aggressive at 85%, with the canvas itself capped at 20% of the token budget so the map never eats the room it saves.
πΊ Idea two: the memory pyramid 4:51
The long-term half borrows explicitly from psychology, and the video spends real time on why β which is unusual and, here, earns its place.
Endel Tulving's 1972 split: episodic memory (events, with times attached) versus semantic memory (facts, with the event that taught them stripped away). You know Paris is the capital of France; you have no idea which afternoon you learned it. The interesting part is the arrow between them β episodes get replayed, patterns get extracted, the episode fades. Psychologists call it consolidation.
Tencent's four layers are that arrow, written down:
| Layer | Contents | Refresh |
|---|---|---|
| L0 Conversation | Raw dialogue, exactly as said | β |
| L1 Atom | Atomic facts, preferences, constraints | Every 5 turns |
| L2 Scenario | Scene blocks β this project, this task type | β |
| L3 Persona | Habits, conventions, defaults | Every 50 new memories |
The benchmark for this half is PersonaMem, where user preferences change across sessions and the test is whether the system tracks the change. Baseline 48% β 76% with the layers.
π§ The boring plumbing 6:40
Deliberately unglamorous, and the video is right that this is a feature: SQLite with the sqlite-vec extension, running locally. No API key, no vendor endpoint, nothing leaving the machine unless you say so. One command to install into OpenClaw, Node 22+, works with no configuration.
Retrieval is hybrid β BM25 keyword search plus vector search, merged with reciprocal rank fusion, 5 results per recall, a 5-second timeout, and if it is slow it skips the injection rather than stalling your turn.
And every layer is a file you can open β persona in Markdown, scenes in Markdown, task canvas in Mermaid. As the video puts it: "When recall goes wrong, you read it. Instead of squinting at a list of cosine scores." White-box by construction, which matters enormously when you have to explain a system's behaviour rather than just observe it.
π’ The numbers, divided out 7:24
The full table from the README, with the arithmetic checked independently for this article:
| Benchmark | Pass rate | Tokens | Printed Ξ | Recomputed |
|---|---|---|---|---|
| WideSearch | 33% β 50% (+51.52%) | 221.31M β 85.64M | β61.38% | β61.30% |
| SWE-bench | 58.4% β 64.2% (+9.93%) | 3474.1M β 2375.4M | β33.09% | β31.63% |
| AA-LCR | 44.0% β 47.5% (+7.95%) | 112.0M β 77.3M | β30.98% | β30.98% |
| PersonaMem | 48% β 76% (+59%) | β | β | β |
The video says this plainly at 4:49: "Smaller gains as the task gets harder. Hold on to that." Single-digit improvements are still real improvements β but "+51.52% pass rate" as a headline describes one benchmark, not the system.
Of the secondary coverage checked for this article, only MarkTechPost carries the caveat β "these numbers come from Tencent's own evaluations". Every other outlet reproduces the table without it.
πΈ Where the saving leaks back 8:25
The sharpest practical finding, and one that would not occur to most readers: injecting memory means changing the front of the prompt every single turn. Providers cache that prefix, and identical opening tokens bill at a fraction of the price. Change the opening each turn and the cache stops hitting.
The wider repository health matches: 408 open issues, the most-discussed being #160 β "buildFtsQuery does not sanitize FTS5 operators", meaning user input can rewrite the search query β with 177 comments. A four-month-old repository moving fast with the mess visible. As the video puts it: "Read that as a maturity signal, not a scandal."
π’ Who is paying for this 9:12
LICENSE file reads "TencentDB Agent Memory is licensed under the MIT" with the full MIT terms. GitHub's API reports NOASSERTION because the file has a Tencent preamble before the standard text. Read the file, not the API field.The business model is stated openly by the video rather than discovered: it is MIT and it does run entirely local, but it also ships a Tencent Cloud vector database backend and a managed memory service that launched days before the repository existed. The Docker image defaults to Tencent's own model endpoint.
Note: this article could not independently locate that second repository via GitHub search. Treat the specific claim as unverified; the general point β that this layer is unsettled enough for one company to fund two answers β stands on the field data below.
| Project | Stars | Created |
|---|---|---|
| mem0ai/mem0 | 62,325 | Jun 2023 |
| letta-ai/letta (MemGPT) | 24,061 | Oct 2023 |
| MemTensor/MemOS | 10,546 | Jul 2025 |
| TencentCloud/TencentDB-Agent-Memory | 10,811 | Apr 2026 |
π¦ Memory as an asset 10:29
Version 2, shipped July, is the part with the longest half-life. Memory moves from a private cache to a shared asset in four types: chat memory, skills, a wiki, and a code graph.
v2.0.0-beta.1 dated 22 July 2026.- Skill β not a prompt snippet: carries a version, resource files, trigger boundaries, execution steps and validation rules. "Closer to a package than a note." Private by default, shared with the team only after review.
- LLM-Wiki β Markdown entity pages the agent writes and maintains, linked to each other so knowledge compounds between sessions.
- Code-Graph β indexes the codebase's structure so an agent starts a task already knowing how the pieces connect.
- Cold start β point it at an existing repository, a folder of docs, or old agent sessions and it backfills graph, wiki and skills before the new agent does anything.
That is a meaningful shift. A log is exhaust; an artifact is something you review, version, share and are accountable for. Anyone maintaining a skills library recognises the pattern β the value is not in any single procedure but in the accumulated, curated set, and the moment it becomes shareable it needs governance.
β οΈ The description got it wrong
One correction, and it is worth isolating because it cuts the other way from the usual complaint.
| Source | Claim |
|---|---|
| Video description | "cuts SWE-bench token usage by 61% while actually boosting pass rates" |
| The video itself | Attributes 61% to WideSearch, states SWE-bench separately as 58.4 β 64.2 on a third fewer tokens |
| The README | WideSearch β61.38%; SWE-bench β33.09% |
Worth naming because the failure mode is now common: the video is careful, the metadata written to attract clicks is not, and most readers only ever see the metadata. If you evaluate this project from the description alone, you will expect a 61% saving on coding work and get roughly half that.
π¦ Reading this from a bank
| Property | Implication in a regulated setting |
|---|---|
| Fully local by default β SQLite, no API key | No data egress. The decisive property for agent memory holding client context |
| Every layer is a readable file | Persona and scenes in Markdown, canvas in Mermaid β a memory system you can audit by opening it, not by interpreting embeddings |
| Full drill-down to raw evidence | Compression that keeps a deterministic path back to source is exactly what an audit trail requires |
| MIT licensed | Commercially usable, forkable, no vendor dependency in the local path |
| Vendor-only benchmarks | No independent reproduction. Fine for a pilot, insufficient for a model-risk file |
| 408 open issues, incl. unsanitised FTS5 query input | Issue #160 is a query-injection surface. Four-month-old code moving fast β not yet a production dependency |
| Docker default points at a Tencent endpoint | The "fully local" property is a configuration, not a guarantee. Verify the endpoint before deployment, not after |
| Memory as a governed, permissioned asset | Owner, version and access list per asset is closer to a records-management model than anything else in this space |
For a regulated environment that convergence is the interesting news, because the shape it is converging on is auditable by construction. A flat vector store answers "here are some similar chunks". A layered store with intact pointers answers "here is what I concluded, here is the scene it came from, here is the exact sentence you said." Those are different in kind, and only the second one survives a question from a regulator.
π Claims checked
| Claim | Result |
|---|---|
| Repository exists, MIT, actively developed | 10,811 β, 1,024 forks, created 7 Apr 2026, 5 releases, pushed 29 Jul |
| Licence is MIT | LICENSE file says MIT. GitHub's API reports NOASSERTION due to the Tencent preamble β read the file |
| OpenClaw is the host framework, ~384k stars | Confirmed β openclaw/openclaw, 384,946 β |
| Chroma context-rot study across 18 models | Study exists and resolves; per-model figures not reproduced here |
L0βL3 pyramid, Mermaid canvas, node_id drill-down | All documented in the README in the same terms |
| SQLite + sqlite-vec, BM25 + vector with RRF | Confirmed in the README |
| WideSearch β61.38%, 33% β 50% | Table matches; recomputes to β61.30% |
| SWE-bench token cut printed as β33.09% | Recomputes to β31.63%. The video catches this on camera and calls it a normalisation choice |
| AA-LCR β30.98% | Divides out to exactly the printed figure |
| All benchmarks are vendor-produced | Confirmed. No independent reproduction found. Only MarkTechPost flags it among secondary coverage |
| Issue #120: prompt-cache regression | Real, open, 99 comments, filed 31 May 2026 |
| ~400 open issues; top thread ~177 comments | 408 open; #160 (FTS5 sanitisation) has 177 comments |
| Field sizes: Mem0 62k, Letta 24k, MemOS 10.5k | 62,325 / 24,061 / 10,546 β all confirmed |
| v2 assets: Chat Memory, Skill, LLM-Wiki, Code-Graph | Verbatim in the repository description; v2.0.0-beta.1 dated 22 Jul |
| Rival plugin from Tencent's Hunyuan team | Not located via GitHub search. Unverified |
| Description: "cuts SWE-bench tokens by 61%" | Wrong. 61% is WideSearch; SWE-bench is 33% printed / 31.6% actual. The video gets this right |
π‘ Key takeaways
- Bigger context windows make agents worse, not better. Chroma's study found accuracy falling long before the window fills β a 200k window can start degrading around 50k.
- Hoarding fails on all three axes at once β slower, pricier, less accurate. When nothing trades off, the strategy is wrong rather than under-tuned.
- Compression with intact pointers is not summarisation. A summary is one-way; a folded diagram with
node_ids can be opened again. Reversibility is what makes aggression safe. - Forgetting is the compression step, not the bug. The L0βL3 pyramid is Tulving's consolidation arrow written as software, and it reads top-down so cheap answers come first.
- Fail toward the previous behaviour. Slow retrieval skips injection instead of stalling the turn β degrading to "no memory", which is where you started.
- A table with raw values and a percentage is self-checking. Divide it. One row here does not divide out: SWE-bench prints β33.09%, computes to β31.63%.
- The gains shrink as tasks get harder. +51.52% on WideSearch, +9.93% on SWE-bench, +7.95% on long-document reasoning. The headline is the best case.
- Every number is vendor-produced. No independent reproduction exists, and in this field rival labs have publicly disputed each other's configurations.
- Part of the saving leaks back through prompt caching. Changing the prompt prefix every turn breaks provider prefix caches β open issue #120, 99 comments, unresolved.
- 408 open issues including unsanitised query input is a maturity signal for a four-month-old repo, and a reason not to make it a production dependency yet.
- "Fully local" is a configuration, not a guarantee β the Docker image defaults to a Tencent endpoint. Open core with a cloud upsell, stated plainly.
- Memory is becoming a governed asset with an owner, version and permissions β and the unanswered question is portability. An asset you cannot take with you is lock-in in disguise.
π Resources & links
- China Just Open-Sourced Humanlike Memory for AI AgentsSource video β Cloud Codes, 12:20, 2 August 2026
- TencentCloud/TencentDB-Agent-Memory10,811 stars, MIT. The README documents the architecture and publishes the raw benchmark counts
- Issue #120 β prompt cache hit rate regressionWhere part of the token saving leaks back. Open, 99 comments
- Issue #160 β FTS5 operators not sanitisedThe most-discussed thread, 177 comments. Query-injection surface
- Chroma β Context RotThe study underneath the whole argument: accuracy falls as input grows
- OpenClawThe host runtime with the memory plugin slot β 384,946 stars
- Mem0The incumbent, 62,325 stars β and one side of the benchmark dispute