A new open project called Lossless-memory argues that AI memory systems should never summarize, storing every interaction verbatim and relying on retrieval to do the filtering work instead. If the approach holds up at scale, it challenges the default architecture used in almost every production memory layer today.
The pattern
Most long-term memory systems for LLMs follow the same playbook: as conversation history grows, a secondary model compresses it into a shorter summary, and that summary becomes the context for future turns. It is cheap, it fits inside context windows, and it works well enough for casual use.
The problem is that summarization is a lossy, one-way transform. The model deciding what to keep is making a bet about what will matter later. That bet is frequently wrong. A user's offhand preference, a constraint mentioned once, a correction buried in turn 47: these are exactly the details that surface as failures in deployed agents.
Lossless-memory rejects the compression step entirely. Every turn is stored as-is. Retrieval, not ingestion, is where filtering happens.
Why now
Two things have shifted to make this viable in 2026. First, embedding-based retrieval has become fast and cheap enough that querying a large raw corpus at inference time is no longer a bottleneck for most applications. Second, context windows are large enough that a well-ranked retrieval result, even if verbose, can be injected without immediately blowing the budget.
The type-safe coding agent work circulating alongside this highlights a related pressure: as agents take longer-horizon actions, the cost of a forgotten constraint compounds. A coding agent that forgets a project-level style rule on turn 200 produces a diff that fails review. Lossless memory is partly a response to that class of failure.
How it works in practice
- Store everything at write-time. Each user turn, assistant response, tool call, and tool result is written to a persistent store with a timestamp and session ID. No compression, no distillation.
- Embed and index on write. Each stored unit gets an embedding immediately, so the index stays current without a separate batch job.
- Retrieve on demand at read-time. When a new turn arrives, the system queries the index with the current context and pulls the top-k most relevant past units. Only those units enter the prompt.
- Let the model reason over raw text. Because nothing was summarized, the model sees the original wording, including hedges, corrections, and specifics that a summary would have smoothed over.
- Optionally compress at retrieval, not ingestion. If the retrieved set is still too large, you can summarize it in-context at that moment, with full knowledge of the current query. This is strictly better than summarizing blindly at write-time.
This pattern connects directly to work on versioned on-demand skills for agents: both treat the agent's knowledge store as something to be fetched selectively rather than pre-baked into a fixed context.
The trade-off
The honest caveat is storage and retrieval quality. A lossless store for an active user grows without bound. Embedding every turn is cheap per unit but adds up. More critically, the system is only as good as its retrieval: if the embedding search misses a relevant past turn, that information is effectively invisible, and unlike a summary, there is no fallback digest that might have caught it.
There is also a privacy surface concern. Verbatim logs are more sensitive than summaries. Any deployment storing raw conversation text needs stricter access controls and a clear retention policy.
Finally, retrieval-augmented memory still injects text into the context window. For very long-running agents, even a well-ranked top-k can consume a meaningful share of the available budget, leaving less room for the actual task.
Where it goes next
The logical next step is hierarchical lossless memory: raw storage for recent history, with periodic summarization only for interactions older than a configurable threshold. The key inversion is that summarization becomes a scheduled archival process rather than a real-time gate, so nothing recent is ever compressed before its relevance is established.
Expect retrieval quality to become the primary benchmark for memory systems. The question will shift from "how well does your summary capture intent" to "how reliably does your index surface the right raw turn." That is a more tractable engineering problem, and it is one where multi-model comparison tools that expose verbatim model outputs, rather than abstractions over them, point in the same direction: raw fidelity over convenient compression.
The teams most likely to adopt lossless memory first are those building agents with long task horizons, where a single forgotten detail can invalidate hours of work.
If your memory layer is summarizing on write, you are making irreversible decisions about what the future will need, and you will be wrong more often than you expect.
READY TO ASCEND
Get AI news that respects your time
The signal, distilled. Curated AI news and prompt-engineering insight. No noise.