coding agents forget everything between sessions. give them one shared memory instead. local and inspectable, built for agent fleets.
https://t.co/L8rZWcsrgQ
@garrytan we believe the jump happens in capturing it while the agent works and not as a separate "harvesting" project. every tool call, every decision, the agent writes what happened in the loop. extraction must stop being a project and become a byproduct of the work.
8/Memory is the substrate on which an agent's continuity of self is built.
If it can't distinguish observation from inference, can't preserve evidence, and can't reason about time — the agent on top will be confidently wrong in ways its operators can't diagnose.
Five layers isn't a feature. It's the minimum.
7/What the structure unlocks:
→ Evidence traceability: walk a Belief down through Facts → Episodes → raw Events
→ Safe schema evolution: rebuild derived layers under a better extraction model, from the Events you already have
→ Genuine temporal reasoning: "What did we believe on day X, as of day Y?"
6/Facts are bi-temporal. Every Fact records two things:
→ when it was true in the world
→ when the system learned about it
These are different axes. Conflating them is the root cause of a whole class of memory bugs. Separating them lets the agent reason about its own past states without anachronism.
5/The commitment underneath: no LLM on the write path.
Ingested data lands as an immutable Event and the call returns. The original payload is preserved verbatim, forever. Facts, Beliefs, and Understanding get derived later, asynchronously, by separate pipelines.
The derived layers are disposable. The Events are not.
3/"The user clicked cancel" — a thing that happened. "The user dislikes the UI" — an inference drawn from many such things.
Store both in the same vector space and they become equivalent retrievable strings. Confidence stops being a first-class property.
This is why agents hallucinate about their own history.
2/Knowledge ≠ memory.
Knowledge: what's true about the world in general. Memory: what a specific agent observed, what it inferred, what it currently believes, and how confident it should be in each.
These are different epistemic categories. Flat memory destroys the distinction.
1/Most AI memory systems flatten everything into one layer.
When the agent tells you what it believes, you can't ask why. The chain of reasoning has been compressed away.
Here's what memory looks like when you don't do that