MMS • RSS
The Agent’s Memory Is the Product
When an AI agent gives a bad answer or takes a wrong action, the instinct is to blame the model. Chirag Shah, MongoDB’s senior vice president and general manager of AI platform, thinks that instinct is almost always wrong. “If a model starts to struggle or not work, it’s because of data,” he said on the MTS podcast. “Collectively, it’s what context is. So one of the most important parts of the context is memory.”
That claim is the spine of a conversation that spends most of its time on the least glamorous part of the AI stack: the plumbing that lets an agent remember who it is talking to, what happened last time, and which facts actually apply right now. Shah speaks as a vendor — MongoDB sells the solution he is describing — but his diagnosis of where agents break in production is specific enough to be useful to anyone building or buying.
His failure mode is concrete. Suppose a user moves address. If the agent retrieves the old address at the moment it needs to act, “there’s a very high chance that the production output of that agent’s action is going to be a slump or pretty much the wrong outcome.” Forgetting, in other words, is not a cosmetic flaw. Memory decay is a correctness requirement, and an agent that hoards every fact forever is a liability.
Four kinds of memory, and the builder shouldn’t pick
Shah breaks memory into distinct categories and argues that matching the right type to the right action is the core engineering problem. From a storage standpoint, he notes, these are all just data in a database. The difficulty lives in the retrieval logic, not the storage format.
| Memory type | What it holds | The question it answers |
|---|---|---|
| Semantic | Facts and preferences | What do I know about this user? |
| Episodic | Events and sessions | What happened last time? |
| Taxonomic | Term definitions | What does this word mean? |
| Procedural | Step-by-step skills | How many steps to perform an action successfully? |
His answer to how an agent decides what to keep, look up, or drop is that it shouldn’t decide at all. The memory provider should. “We don’t want our agent builders to worry about that. We want that to be our problem as a memory solution provider,” he said, describing a system that parses the prompt and session context and retrieves the right memory on the builder’s behalf — for instance, when a user comes back trying to recover the details of an order placed six months earlier.

From Lego pieces to a castle
The product rationale comes straight from customer complaints. Builders were taking MongoDB’s raw primitives — vector search, embeddings, re-ranking — and stitching together their own memory systems, then finding the maintenance burden expensive and far from their actual mission. Shah quotes the ask he kept hearing: customers wanted a finished solution rather than components, telling him in effect, you give us these Lego pieces and we stitch it together, so why don’t you just give us a castle?
That castle is Atlas Agent Engine. It bundles two things: an Agent Runtime that runs agents with security and guardrails built in, and the memory and context layer described above. The stated goal is that builders focus on agent logic and leave what Shah calls “the agentic infrastructure plumbing” to MongoDB. He grounds the pitch in the existing Atlas platform — more than a decade of development, built on JSON, which he notes is “literally the language that is in stock” for large language models.
He frames the two things customers consistently flag when moving an agent from prototype to production: the complexity of the data problem, and the security and governance needed to run agents “with that confidence that enterprise customers desire.” The engineering effort of building memory in-house, he argues, pulls teams away from the business logic that actually differentiates them — which is why MongoDB’s existing vector search and its Voyage embeddings and re-ranking capabilities made the memory product a natural extension rather than a new direction.
The anchor use case is auto insurance claims. Traditionally, Shah says, a claim passes through an insurance representative, a claim adjuster, an investigator, and a payoff analyst — five human touchpoints over roughly seven days. The customer’s agent now collects photos and details from the claimant, cross-references local systems for counter-complaints from other parties, and aims to return a high-confidence outcome in hours to about a day.

Context is bigger than memory
Shah is careful to say memory is only one piece of the puzzle. The broader challenge is what he calls context engineering: pulling what he terms institutional knowledge — files, folders, and data sitting in systems like SAP or Oracle — into the moment of decision.
His extended insurance example makes it tangible. A claim arrives from a specific ZIP code in New York City. The agent should know that area’s profile and the last two years of similar claim payoffs nearby, giving the payoff analyst quote “the highest probabilistic knowledge” at the moment it matters. That requires more than a chat history. He points to ontologies and graph capabilities as things that “will start to surface” into the broader problem, and returns to the same refrain: customers should not be building this themselves.
The same logic is spreading beyond the enterprise back office. Regulators are already confronting agent autonomy in financial markets — the Commodity Futures Trading Commission’s Michael Selig recently floated a “know-your-agent” concept alongside traditional know-your-customer checks, warning that the chain linking a user, a developer, and the software acting on their behalf is getting harder to trace. The governance question Shah raises for enterprise apps is the same one showing up in trading and payments: who is responsible when the agent, not the human, acts?
The next hard problem: agents that share memory
Asked to look a year ahead, Shah says the ideal is that agents remember everything and the user never thinks about it. The real question is which memory is meaningful for the action at hand. He compares it to human memory: he may not recall what he was doing at 15, but an agent with proper retrieval would not have to guess.
The roadmap item he singles out is shared memory across multiple agents. Agents talking to each other should be able to share memory and information — quote “provided that’s the right use case and provided you have the right security guardrails,” and crucially without agents “steal[ing] each other’s memory.” As agents live longer, he predicts memory will grow “at a scale that will be behemoth,” which he frames as an ongoing investment area rather than a solved problem.
That is the piece worth tracking. Multi-agent memory sharing with guardrails is the thing Shah describes as future work, and it is the thing that would determine whether agentic backends can actually coordinate at enterprise scale — or whether they remain a collection of clever single-purpose assistants.
The full-stack app is becoming an agentic app
The most quotable framing comes at the end. For more than 20 years, Shah says, developers built full-stack applications with a front end, client-side business logic, and a database backend. Today those applications are becoming agentic applications, and the backend “looks completely different” — not plain business logic plus a database, but a multi-agentic, multi-tooling solution that either complements an existing application or constitutes a brand-new AI-native one.
“Today, what we are starting to already see is these full-stack applications are literally becoming agentic applications. The back end is not a plain and straight back-end logic with the database. The back end is a multi-agentic, multi-tooling solution.”
He ties it to a customer-relationship analogy: a 15-year Amazon Prime membership is an ongoing relationship captured in a digitized system, and under agentic solutions that relationship becomes memory. Memory, context, security, and guardrails, combined with an agentic framework and an LLM, define what an enterprise application looks like. It is a big claim, and the episode asserts it more than it examines it — but it is directionally consistent with what the auto-insurance example shows, where an existing application quietly grew an agent-shaped brain.
Stop overthinking the model
Shah’s advice to builders is blunt. “I think we are overthinking the entire agentic building,” he said. His argument is that LLMs are “almost a fair game” — frontier and open-weight models are converging toward similar evaluations — so builders should pick one and start rather than deliberate. He expects swapping models to become routine without materially affecting an agent’s workload. His closing instruction to the audience: “If you’re excited about an idea, pick an LLM and get started.”
On token cost, which he concedes is on every CFO’s and buyer’s mind, he treats it as second-order. Build the workload, discover it burns ten thousand dollars in tokens, then switch to a cheaper or self-hosted model. Getting started, in his account, clears “almost 90% of the most complex decision” and lets the business return on investment show up.
There is an unresolved tension in the conversation, and it is worth flagging. Shah argues simultaneously that memory is a hard, specialized data-engineering problem and that builders should not overthink their stack. Both can be true — the difficulty is real, which is precisely why he wants to sell the solution — but the “just go build” advice and the “buy the castle” pitch are aimed at different parts of the same customer. The builder who follows the first instruction will eventually become the buyer the second one is designed for.
The competitive implication goes beyond MongoDB. If the bottleneck in production agents is data — memory, decay, retrieval, governance — then the moat shifts from the model to the plumbing around it. Companies with existing database, vector search, and embedding assets enter the agent era with a structural advantage over model-makers trying to build memory from scratch. The question investors should watch is not which LLM wins the next benchmark. It is who ends up owning the memory layer that every agent quietly depends on — and whether the guardrails needed for agents to share that memory arrive before enterprise deployments scale past the point where they can be retrofitted.