Agent Zero Memory: Provenance-Aware Long-Term Memory for LLM Agents
Organizations: Zero Labs
Abstract
Large language model (LLM) agents need durable, faithful memory of everything a user or organization has said and stored, yet most memory systems commit to a single organizing structure (a fact store, a vector index, or a knowledge graph) and inherit its blind spots. We present Agent Zero Memory, a provenance-aware long-term memory system that distils a user's conversations, files, and connected sources into three parallel memory systems, each capturing a different facet of the same history: an episodic Memory Events timeline that makes when and what changed first-class, an associative entity-event knowledge graph that links people and projects across sessions, and a semantic, curated, citation-locked Hierarchical Documentary Memory (HDM) of durable facts. A retrieval turn runs an intent gate (so self-contained turns add no latency), a source router, and three concurrent agentic searches, one per system, each a tool-using loop over hybrid (embedding + lexical) search under agent-controlled filters; their grounded, cited answers are integrated into one answer with a single confidence. We formalize the reading discipline: every learned item is a provenanced item carrying its origin, timestamp, and evidence pointer, and every answer is read under a citation lock, so it may cite only evidence its reader actually opened; fabrication is structurally excluded and the system abstains rather than guesses. On two public benchmarks the system sets a new state of the art: 95.60% on LongMemEval and 93.60% on LoCoMo, improving over the strongest prior systems by +0.73 and +1.10 points. A controlled study across eight backbone LLMs characterizes the accuracy-cost-latency frontier: accuracy varies by only 3.4 points while per-query cost varies by ~30x, with near-state-of-the-art quality at up to 20x lower cost per query, the signature of memory-driven, rather than model-driven, quality.
Figures & tables
| System | Memory organization | Update semantics | Provenance | Read cost vs. history | Scope |
|---|---|---|---|---|---|
| Agent Zero (ours) | timeline graph HDM | append, non-destructive | citation-locked | gated, routed, top- | org-shared |
| MemGPT [ 3 ] | paged raw context | append (raw log) | raw log only | paging grows w/ history | per agent |
| Mem0 [ 4 ] | flat extracted facts | overwrite / delete | lost on update | bounded (top- ) | per user |
| EmergenceMem [ 15 ] | raw turns, vector index | append (raw) | raw turns | grows w/ session length | per user |
| Supermemory [ 16 ] | atomic memories links | LLM-inferred links | source chunk kept | bounded (top- ) | per user |
| Memobase [ 18 ] | profile slots events | slot overwrite | sources deleted | bounded (SQL) | per user |
| Source | Lifecycle | |
|---|---|---|
| Factual | Read directly from chats / files / sources | Persistent; re-synced on change |
| Experiential | Inferred, learned from how the user works | Persistent; continuously refined |
| Working | Current chat, instructions, task context | Session-bound; useful parts promoted |
| # | System | Note | Acc. (%) |
|---|---|---|---|
| 1 | Agent Zero | New 2026 algorithm | 95.60 |
| 2 | Mastra | Observational memory, 2026 | 94.87 |
| 3 | Hindsight | Vectorize, 2025 | 91.40 |
| 4 | EmergenceMem | Emergence AI, 2026 | 86.00 |
| 5 | Supermemory | Supermemory, 2026 | 85.20 |
| 6 | Zep [ 5 ] | Open-source memory layer | 71.20 |
| # | System | Note | Acc. (%) |
|---|---|---|---|
| 1 | Agent Zero | New 2026 algorithm | 93.60 |
| 2 | Mem0 [ 4 ] | Mem0 research, 2026 | 92.50 |
| 3 | ByteRover 2.0 | Agent memory, 2026 | 92.20 |
| 4 | Hindsight | Vectorize, 2025 | 89.60 |
| 5 | Memobase | Open-source memory | 75.80 |
| 6 | Zep [ 5 ] | Open-source memory layer | 75.10 |
| Backbone | Accuracy (%) | Median latency (s) | Avg. cost (USD) | Avg. prompt tok. | Avg. cached-in tok. | Avg. compl. tok. |
|---|---|---|---|---|---|---|
| gpt-5.5 | 95.60 | 16.311 | 0.034788 | 12,224.8 | 5,324.8 | 446.1 |
| gpt-5.6-sol | 95.20 | 15.780 | 0.030663 | 11,234.8 | 5,990.4 | 406.5 |
| gpt-5.6-terra | 94.00 | 21.183 | 0.018913 | 11,881.0 | 6,412.8 | 390.6 |
| opus4.8 | 93.80 | 12.623 | 0.052221 | 23,779.1 | 14,897.8 | 591.0 |
| sonnet5 | 93.20 | 10.754 | 0.028520 | 24,520.4 | 17,807.1 | 592.1 |
| glm5.2fast | 93.00 | 6.158 | 0.014139 | 10,986.4 | 5,118.0 | 339.1 |
| Backbone | Accuracy (%) | Median latency (s) | Avg. cost (USD) | Avg. prompt tok. | Avg. cached-in tok. | Avg. compl. tok. |
|---|---|---|---|---|---|---|
| sonnet5 | 93.57 | 22.855 | 0.047083 | 45,818.7 | 35,987.8 | 1,279.8 |
| opus4.8 | 91.49 | 23.530 | 0.056355 | 33,816.2 | 26,466.6 | 1,102.2 |
| gpt-5.6-sol | 91.49 | 18.259 | 0.039919 | 14,791.3 | 7,288.3 | 685.0 |
| deepseek-v4-pro | 90.45 | 34.741 | 0.010733 | 49,057.8 | 38,247.7 | 2,533.1 |
| glm5.2fast | 90.45 | 17.042 | 0.022719 | 31,340.9 | 22,650.3 | 1,021.6 |
| gpt-5.6-terra | 88.38 | 18.353 | 0.023848 | 16,778.7 | 9,162.2 | 751.4 |
| Retrieval exposed to agent | Acc. (%) | |
|---|---|---|
| embedding lexical | 95.20 | — |
| Embedding | 94.00 | |
| grep | 93.60 | |
| Lexical | 93.40 |
LLM Agent Memory
Large language model agent memory lets agents retain, organize, retrieve, and update information across interactions and long-running tasks.
See all 368 papers