November 27, 2026
Memory OS of AI Agent: How MemoryOS Actually Works
Understand MemoryOS tiers, updates, retrieval, benchmark evidence, and the boundary between personalized recall and readable project truth.
The phrase memory OS of AI agent sounds broader than the system described in the MemoryOS paper. MemoryOS is not a general operating system for every kind of agent state. It is a concrete architecture for personalized conversational memory: recent dialogue enters short-term storage, recurring topics move into a mid-term layer, selected information updates long-term personal memory, and retrieval feeds relevant context back into response generation.
That design solves a real problem. A context window alone cannot preserve a user's preferences and history across many sessions. But personalized recall and canonical project knowledge are different jobs. A production design should know where MemoryOS ends and where reviewed, readable files begin.
The four modules and three storage tiers
The MemoryOS paper defines four modules: storage, updating, retrieval, and generation. Storage is split into three tiers.
| Tier | What it holds | How it changes | Main risk |
|---|---|---|---|
| Short-term memory (STM) | Recent user-query, assistant-response, and timestamp pages | A fixed-length FIFO queue sends its oldest page to mid-term memory when full | An important old fact can leave active context before it is safely promoted |
| Mid-term memory (MTM) | Dialogue pages grouped into topic segments | Segments gain a heat score from retrieval count, interaction length, and recency; low-heat segments may be evicted | Popularity and recency are not the same as correctness or authority |
| Long-term personal memory (LPM) | User traits, user knowledge, and assistant traits | High-heat segments are analyzed to update profile dimensions and knowledge queues | Model-generated extraction can turn an inference into an apparently durable fact |
The retrieval path queries all three. It uses recent STM context, performs segment-level and page-level retrieval over MTM, and adds personal knowledge from LPM. The generation module then includes those results in the model prompt. This is more specific than the generic memory types in our AI agent memory architecture guide: MemoryOS defines an actual promotion and retrieval mechanism.
Trace one fact through MemoryOS
Suppose a user tells a travel assistant, "I avoid overnight flights." MemoryOS stores that exchange as a dialogue page in STM. When the queue fills, FIFO moves the page into MTM. Semantic segmentation may place it in a travel-preferences segment. Repeated travel planning raises that segment's heat through visits, interaction length, and recency. Once heat crosses the configured threshold, an LLM can extract a durable preference into LPM.
On a later request, retrieval can combine the new itinerary question, recent conversation, relevant travel pages, and the long-term preference. The model can avoid an overnight option without requiring the user to repeat the constraint.
Now change the example: "Production uses PostgreSQL 17." The mechanism can remember that sentence, but heat does not prove it is current, reviewed, or approved. If an agent inferred the version from an old deployment log, promoting it into personal memory could amplify an error. Project facts need a stronger write contract: source, reviewer, scope, replacement rule, and history.
What the benchmark result establishes
The paper reports average improvements of 49.11% in F1 and 46.18% in BLEU-1 over its baselines on LoCoMo with GPT-4o-mini. Those are the authors' reported improvements for that experimental setup. They are not a claim that every MemoryOS deployment is 49% more accurate, nor do they compare directly with unrelated vendor results produced with different models, prompts, judges, retrieval budgets, or dataset versions.
LoCoMo is useful for long multi-session conversation questions and summaries. It does not by itself prove tenant isolation, exact deletion, correction history, crash recovery, access control, or export quality. The agent memory leaderboard guide explains why benchmark scores and production acceptance tests answer different questions.
MemoryOS compared with other memory shapes
| Approach | Center of gravity | Good fit | Trade-off to test |
|---|---|---|---|
| MemoryOS | Hierarchical personalized conversation memory | Long-running assistants that need evolving user and agent profiles | Automatic promotion, correction, and exact deletion |
| Mem0 | Memory extraction and retrieval layer for applications | Adding reusable user or session memory to an existing stack | How extracted memories are inspected, superseded, and exported |
| Zep / Graphiti | Temporal entities and relationships | Facts whose relationships and validity change over time | Graph operations, provenance, and infrastructure complexity |
| Letta | Stateful agent runtime with memory in the agent loop | Agents whose identity and evolving state belong together | Runtime coupling and reconstruction outside Letta |
| ChatGPT or Claude native memory | Product-managed personal continuity | Convenient recall inside one assistant product | Cross-tool sharing, application control, and auditability |
| Readable Markdown over MCP | Human-inspectable project truth | Decisions, runbooks, sources, and knowledge shared across agents | Requires explicit curation; semantic recall may need a separate index |
These are not interchangeable competitors. A useful stack can combine them. MemoryOS may personalize one assistant while a temporal graph tracks changing entities and a Markdown wiki holds approved engineering truth.
The missing boundary: recall plane versus truth plane
The paper and repository explain the MemoryOS architecture, implementation, and setup. The missing production decision is an authority boundary. Use two planes:
- Recall plane: automatically extracted preferences, summaries, episodes, and retrieval signals. The system may update this plane without human review because mistakes are recoverable and scoped.
- Truth plane: approved decisions, operating procedures, constraints, source notes, and corrections. Writes need provenance and history because other agents and people will act on them.
A fact crosses from recall to truth only when the workflow can answer: who asserted it, which project owns it, what source supports it, what old value it replaces, and how to reverse the change. This is where Meshnote fits beside MemoryOS. Agents maintain plain Markdown projects through MCP, while people can inspect the files and their history. The memory remains agent-agnostic instead of belonging only to one runtime.
A six-case promotion-boundary test
Run this drill before treating any hierarchical memory as production knowledge:
- Correction: store "staging uses port 5000," then correct it to 5007. The next agent must return only the current value while history retains the old one.
- Scope: store different deployment regions for two projects. A query in project A must never retrieve project B's value.
- Provenance: promote a decision from a source document. The truth-plane record must identify that source, not only the generated summary.
- Deletion: remove a preference and a project fact. Verify that neither appears in retrieval, derived summaries, or ordinary search.
- Restart: stop the agent process, start a clean client, and retrieve both current records without replaying the conversation.
- Exit: disable the original memory runtime. A human must still be able to read the canonical project record and its correction history.
MemoryOS can be evaluated on the recall side of each case. A readable project store should pass the truth side. Failure tells you which policy is missing: promotion, namespace isolation, source tracking, purge propagation, persistence, or export.
When to use MemoryOS
Use MemoryOS when the application is fundamentally conversational and benefits from evolving personal context across many sessions. Its three-tier design gives you explicit places to tune capacity, segmentation, heat, promotion, and retrieval.
Do not assume that the hierarchy alone makes memory trustworthy. For software projects, research, or operations, keep canonical knowledge in files people can review. Meshnote provides that shared MCP layer. Start syncing - $8/mo. Teams that need their own deployment can use self-hosted for teams from $10/seat/month.
Related Reading
Your agent's memory should be files you can read and own
Meshnote is readable, self-hosted memory for AI agents — markdown wikis your agents maintain over MCP. Hosted from $8/month.
Start syncing — $8/mo