SELINA.ai
Sign in

MemGPT to Memory Standards: How "Agent Operating Systems" Became the Default Architecture for AI Memory, and Why Technical-Depth Matters More Than Framework Choice

Eighteen months ago, giving an LLM agent persistent memory meant bolting a vector database onto a RAG pipeline and hoping for the best. Now, open-source frameworks are racing to ship graph-plus-vector hybrid memory, native MCP support, and tiered persistence modeled on computer architecture. The technical-depth of these systems has increased by an order of magnitude, and the architecture decisions you make this quarter will lock in tradeoffs for years. This piece walks through how we got here, what the "Agent OS" abstraction actually means at the implementation level, and where the industry is still lying to itself about security.

Key Takeaways

Where Did the "Agent OS" Metaphor Come From?

It came from a Berkeley paper in 2023. The MemGPT framework proposed a simple analogy: an LLM's context window is RAM, and just like a traditional operating system pages data between RAM and disk, an agent should page facts between its context window and external storage. The LLM becomes a process. Memory management becomes a system concern, not an application concern.

The project rebranded to Letta as it matured from a research artifact into a general-purpose agent framework with persistence as a default. The rebrand reflected a real shift: this was no longer about one clever trick for extending context. It was about building the runtime layer that sits beneath any agent.

What matters is that the metaphor has since escaped its origin. A paper presented at EMNLP 2025 used the explicit "memory operating system" framing. The AIOS project introduced an LLM-specific kernel with agent scheduling, context management, memory and storage management, tool management, and access control. As recently as July 2026, Alation launched its own "Intelligence Operating System" combining data, context, and agents into a unified governed platform. The OS metaphor is no longer one vendor's marketing. It is the vocabulary the field has settled on.

What Does Letta's Tiered Memory Model Actually Look Like?

Letta's architecture manages the agent loop, tool execution, state persistence, and memory across three tiers inspired by computer architecture. The innermost tier is Core Memory, a block that lives directly in the context window (the "RAM" analog). It holds the facts the agent needs on every turn: user name, current preferences, active task state. The second tier is Recall Memory, a searchable archive of past conversation turns. The third is Archival Memory, a vector-indexed long-term store for documents, extracted facts, and anything too large or too infrequent for the context window.

The agent itself decides when to page data between tiers. This is the key design choice. Rather than a static retrieval pipeline where you as the developer write the chunking and ranking logic, Letta gives the LLM tool-calls like archival_memory_insert and core_memory_replace. The agent manages its own memory.

This is powerful. It is also, as we will get to, a security problem.

Why Did Hybrid Vector-Plus-Graph Become the Consensus?

Because pure vector search fails on exactly the queries that make agents useful: temporal ordering, entity relationships, and multi-hop reasoning. Industry analysis from early 2026 states the pattern flatly: production agents that survive contact with real users combine two or three memory architectures and route queries to the store best suited to each.

The benchmark evidence, while mostly vendor-published, is consistent in direction. One widely cited comparison reports that Mem0 scored 49.0% on the LongMemEval benchmark while Zep's temporal knowledge graph architecture (Graphiti) scored 63.8%. That is a 15-point gap attributed to temporal graph reasoning advantages. Treat the exact numbers as indicative rather than independently verified, but the structural point holds: vector similarity search answers "what is semantically close to this query" while graph traversal answers "what happened before this, and how are these entities related." You need both.

A 2026 roundup of open-source memory frameworks ranks Cognee first for its hybrid graph-vector architecture, 14 retrieval modes, and self-improving memory pipeline. Letta, Mem0, Graphiti, Zep CE, LangMem, and Memary round out the field. Every serious contender now ships some form of hybrid retrieval.

Mem0's own research paper formalizes a hybrid backend combining vector similarity search with knowledge graph traversal. The self-reported numbers claim 26% higher response accuracy versus a vendor's native memory system on the LOCOMO benchmark, 91% lower p95 latency, and 90% fewer tokens versus full-context methods. Again, vendor-authored, but the direction of investment is clear.

What Does "Hybrid" Mean at the Storage Layer?

It means fewer databases than you might expect. The trend is consolidation. Rather than maintaining separate vector, graph, and relational databases, teams are converging on unified platforms like Postgres with pgvector or MongoDB with Atlas Vector Search. Memory layers like Mem0 and Zep abstract these backends behind a unified API. You write to one interface; the framework decides whether a fact goes into the vector index, the graph, or both.

For us, running a product where memory is encrypted at rest and where a slice of each request necessarily reaches a frontier provider at inference, this consolidation matters practically. Fewer backends means fewer places data can leak. Fewer replication paths means deletion can actually propagate. Memory is not end-to-end encrypted (a request has to reach a frontier provider in usable form), so minimizing the surface area of storage is one of the few levers you actually have.

How Did MCP Go from Anthropic Side Project to Universal Infrastructure?

MCP crossed 97 million installs on March 25, 2026, hitting that mark in sixteen months. For comparison, React took roughly three years to reach equivalent adoption. It is the fastest adoption curve of any AI infrastructure standard.

Two things made this happen. First, in December 2025, Anthropic donated MCP to the Agentic AI Foundation under the Linux Foundation, making it vendor-neutral and community-governed. That removed the "why would I build on one competitor's protocol" objection overnight. Second, MCP solved a real problem. Before MCP, connecting an agent to an external tool meant writing a bespoke integration per tool per framework. MCP standardized the interface: describe your tool's capabilities in a schema, expose them over a standard transport, let any MCP-compatible agent discover and call them.

A release candidate for a major new MCP specification is available now, with the final specification expected July 28, 2026. The headline change: MCP is becoming stateless at the protocol layer. This is directly relevant to memory architecture because it means state management, including persistent memory, lives outside the protocol itself. MCP handles tool discovery and invocation. Your memory layer handles everything else.

Does MCP Solve the Memory Problem?

No. Stanford's 2026 Emerging Technology Review names memory, reliability, interoperability, and efficiency as the four constraints limiting production agents, and notes that MCP addresses only the interoperability piece. This is a useful corrective. The ecosystem sometimes talks about MCP support as if checking that box makes an agent production-ready. It does not. MCP gives your agent the ability to reach tools. It says nothing about whether the memory your agent accumulates is auditable, deletable, or compliant.

Consider GDPR's right to erasure applied to a knowledge graph that has silently merged a user's extracted facts with relational context from other interactions. "Delete this user's data" is a graph surgery problem, not an API call. MCP has no opinion on this. Your memory layer has to.

What Is the Actual Security Risk of Writable Agent Memory?

It is larger than most teams have acknowledged. When your agent can call core_memory_replace on its own memory, an adversary who can influence the agent's inputs (through prompt injection, poisoned documents, or compromised tool responses) can write persistent false beliefs into the agent's long-term store. Those false beliefs then influence every subsequent interaction. This is not a theoretical concern.

OWASP's Top 10 for LLM Applications 2025 names Data and Model Poisoning and Vector and Embedding Weaknesses as the primary memory-relevant attack vectors. These are categories, not edge cases.

Think about what "hybrid graph-plus-vector memory" means from a threat model perspective. Your agent extracts a user fact, embeds it into a vector store, and simultaneously creates a node and edges in a knowledge graph. A poisoned fact now lives in two separate stores with two separate retrieval paths. Deleting it requires coordinated removal from both. Detecting it requires monitoring both. Most architecture diagrams showing "hybrid graph+vector memory" are incomplete without a parallel diagram of where data physically lives, who can query it, and how deletion propagates across tiers.

Microsoft open-sourced an "Agent Governance Toolkit" in April 2026 under MIT license, covering all 10 OWASP Agentic Top 10 risks across Python, TypeScript, Rust, Go, and .NET. The existence of a dedicated governance toolkit from a major vendor is itself a signal: the industry is only now building the monitoring infrastructure that should have shipped alongside the memory frameworks.

How Should You Think About Memory Hygiene?

The same way you think about database hygiene, but with the added complication that your agent is the one writing the data. Provenance tracking (which input caused this memory write), memory verification (is this extracted fact consistent with the source), and per-tenant isolation (can one user's agent memory influence another's) deserve the same engineering rigor as the retrieval architecture itself.

We learned this the hard way building Selina. The distinction between retrieval and generation is invisible to users, but it is the distinction that matters most for privacy. When the system retrieves a stored fact and surfaces it, the user sees continuity. When the system generates a plausible-sounding fact from pattern matching, the user also sees continuity. The difference is that the first is grounded in something they actually said, and the second is a hallucination wearing the costume of memory. Getting this wrong does not just produce a bad answer; it produces a bad answer that the user trusts more, because the system is supposed to remember them.

We do not claim perfect or complete memory. Selina's memory is adaptive, not a transcript. But the boundary between "I retrieved this from your encrypted-at-rest memory store" and "I inferred this from context" is something we track internally, and it is something you should track in whatever architecture you choose.

How Are the Major Frameworks Positioned Right Now?

Here is the landscape as of mid-2026, with the caveat that most published benchmarks are vendor-authored:

Letta is consolidating. The standalone chatbot product was archived and folded into "Letta Code" as the company converges on a single product (a memory-first coding agent) rather than parallel bets. The architecture remains the most OS-like: the agent manages its own memory across explicit tiers, with tool-calls for memory operations.

Mem0 has formalized its hybrid vector-plus-graph backend in a research paper and positions itself as a drop-in memory layer you can add to any agent framework. The approach is more library than runtime: you integrate Mem0 as a dependency rather than building your agent inside it.

Cognee leads several 2026 roundups for its hybrid graph-vector architecture and 14 retrieval modes. Its differentiator is a self-improving memory pipeline that refines stored knowledge over time.

Zep/Graphiti leans hardest into temporal knowledge graphs. The LongMemEval benchmark results (63.8% vs. Mem0's 49.0%) suggest this approach has a structural advantage on temporal and relational queries, though the benchmark conditions matter and independent replication would strengthen the claim.

LangMem and Memary round out the field as lighter-weight options, typically chosen by teams that want memory capabilities without adopting a full agent runtime.

The pattern across all of them: hybrid retrieval, some form of tiered persistence, and MCP support either shipped or on the near-term roadmap. The differentiation is increasingly in governance, not retrieval quality.

What Does "Agent OS" Mean for Architecture Decisions You Are Making Now?

Three things.

First, memory is now a system concern, not a feature. If you are still treating persistent memory as an add-on to your agent (a RAG pipeline bolted onto the side), you are building against the grain of every major framework's direction. The 2026 consensus is that memory management belongs in the runtime layer, with the agent participating in its own memory operations. Whether you use Letta's self-managing approach, Mem0's library approach, or build your own, persistence should be a first-class architectural concern, not a feature you ship in v2.

Second, MCP is table stakes, not a differentiator. With 97 million installs and vendor-neutral governance, not supporting MCP is a decision you will have to justify to every enterprise customer. But MCP support is the minimum, not the goal. The goal is a memory architecture that is auditable, deletable, and compliant, and MCP says nothing about any of those properties.

Third, your memory architecture is also your data-governance architecture. Every fact your agent extracts and stores is a data flow. Where does it physically live? Who can query it? How does deletion propagate across tiers? Can you tell a user, with certainty, that their data is gone when they ask you to delete it? If you cannot answer these questions for your current architecture, you have a governance gap that will become a compliance problem.

What Does This Mean If You Are Building a Privacy-First Product?

It means the memory layer is simultaneously your most valuable feature and your largest attack surface. The same self-editing, self-organizing memory that makes an agent feel like it knows you is also the component most vulnerable to poisoning, exfiltration, and compliance failures.

At Selina, we encrypt memory at rest and protect accounts with layered controls. We route inference through a stack of frontier models, routed per task. We are honest about the limits: memory is not end-to-end encrypted, because a slice of each request has to reach a frontier provider in a form that provider can process. Files and transfers through SelinaSEND can be zero-knowledge and end-to-end encrypted. Memory cannot, given current architectures. Non-content operational metadata is kept for a short retention window, not zero.

We state these limits because the alternative is letting users assume protections that do not exist. Most memory-framework documentation does not discuss where extracted facts physically reside across provider boundaries. Most architecture guides do not include a deletion-propagation diagram. These are not footnotes. For a user who trusts your agent with years of context, these are the questions that matter.

Where Is This Headed?

The OS metaphor will keep consolidating. Memory, tool management, scheduling, and access control will increasingly ship as integrated runtime layers rather than separate libraries. The new MCP specification going stateless at the protocol layer will push more state management into the memory layer itself, making framework choice more consequential.

The next real battleground is governance. Retrieval quality is converging (everyone is hybrid, everyone benchmarks against LongMemEval and LOCOMO, the numbers cluster). Governance capabilities, including provenance tracking, memory verification, deletion propagation, and per-tenant isolation, remain a gap across the major open-source options. The teams that close that gap first will own the enterprise segment.

The research community is already moving in this direction. Papers on memory attribution and error tracing are appearing alongside the architecture papers. The question is shifting from "how do we give agents memory" to "how do we make agent memory trustworthy." That is a harder problem, and a more important one.

If you want to see how we approach this in practice: start a free 7-day trial, no card required.

Frequently Asked Questions

What is the 'Agent OS' or 'Memory OS' architecture pattern?

It originated from the 2023 MemGPT paper's insight that an LLM's context window acts like RAM, and an agent should page facts between context and external storage like an operating system pages data between RAM and disk. The metaphor has since spread beyond MemGPT (which rebranded to Letta) into academic papers like EMNLP 2025 and products like AIOS and Alation's Intelligence Operating System.

How does Letta's tiered memory model work?

It uses three tiers inspired by computer architecture: Core Memory (lives in the context window, holding facts needed every turn), Recall Memory (a searchable archive of past conversation turns), and Archival Memory (a vector-indexed long-term store for documents and extracted facts). The agent itself decides when to move data between these tiers using tool-calls, rather than a developer-written retrieval pipeline.

Why has hybrid vector-plus-graph memory become the industry standard?

Pure vector search struggles with temporal ordering, entity relationships, and multi-hop reasoning, while graph traversal handles these well. A cited (vendor-published, treat as indicative) comparison showed Mem0 scoring 49.0% versus Zep's temporal knowledge graph scoring 63.8% on the LongMemEval benchmark, roughly a 15-point gap attributed to temporal graph reasoning.

Did MCP's adoption solve the memory problem for AI agents?

No. MCP crossed 97 million installs in sixteen months and became vendor-neutral under the Linux Foundation in December 2025, but Stanford's 2026 review explicitly notes MCP only addresses interoperability, not memory governance, reliability, or efficiency. MCP handles tool discovery and invocation, not whether an agent's accumulated memory is auditable, deletable, or compliant.

What security risks come with self-editing agent memory?

Writable, self-editing memory creates a persistent attack surface that most teams haven't budgeted for, since the agent itself decides what to store and recall. OWASP's 2025 Top 10 for LLM Applications names data poisoning and embedding weaknesses as primary memory-relevant attack vectors.

Sources & References

Michael C.

Michael C.

Founder & Principal Engineer, Selina Labs

Michael builds Selina, a privacy-first AI that remembers you across conversations. He ships security-sensitive AI in production — real attacks, real fixes, measured in minutes and dollars — and writes about privacy, security, and LLMs from that seat. Top Rated Plus and expert-verified on Upwork.

Learn more about Selina.ai