Try Pro free

MTS · 4 min · Nov 5, 2026

Agents need memory that changes with the user

Chirag Shah distinguishes memory types from broader business context and explains why stale memories can lead to wrong actions.

The episode’s best minutes

Full analysis
  1. 2:28Agents need memory that changes with the userPro pick 4 min
  2. 9:46Building agent memory can distract from the business logicPro pick 3 min
  3. 15:45Agent backends are becoming multi-agent systems2 min
  4. 3 more moments in the full episode
“you moved location from one to another place, you have to decay that memory because you're no longer associated with that address.”
CSChirag Shahat 3:21 · MTS
3:21

Takeaways Pro pick

  1. Semantic memory stores facts and preferences; episodic memory stores events.
  2. Old information may need to decay when a user's circumstances change.
  3. Agents need relevant memory and institutional context for each action.

About this segment

Chirag Shah distinguishes memory types from broader business context and explains why stale memories can lead to wrong actions. It’s a practical look at what production agents need to retrieve—and when.

CS

Chirag Shah

Chirag Shah is SVP, GM, and head of AI platform at MongoDB.

  • Theo Jaffee, Host · Co-founder & host, MTS

    One of the first members of a16z's new media team; earlier hosted the Emergent Ventures-backed Theo Jaffee Podcast.

  • Sophia Dew, Host · Host, MTS

From “AI Agents Will Replace Full-Stack Backends | Chirag Shah”, Nov 5, 2026. Watch the full episode

Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

  1. 2:34

    context? And if so, how is that showing up within these agents? I think it's all of the above. Context is very broad in a vaguely defined term. And one may argue memory is part of the context, right? So at the end of the day, if you just zoom out for one quick minute, there are models and they're well-trained, and they're just getting better every passing day. And then there are agents, good framework and a good logic.

  2. 3:01

    They're all starting to come together. So if model starts to struggle or not work, it's because of data. Collectively, it's what context is. So one of the most important part of the context is memory. every action, everything that agent does, it just starts to become a memory, almost like a human memory. And then you have to be very careful about how you use this memory in every action and every decision.

  3. 3:24

    And that's that part of the data story, right? Is, for example, you moved location from one to another place, you have to decay that memory because you're no longer associated with that address. And if agent at that point is about to take an action, what's going to happen is if you retrieve an old memory, there's a very high chance that the production out of that agent's action is going to be a slope or pretty much the wrong outcome.

  4. 3:47

    So that's memory. And then you zoom out further. The context is other institutional knowledge that your enterprise have, your files, your folders, your other data that sits into other systems like SAP. Oracle and what have you. And it all kind of becomes contextual for that action that agent is about to do and how it retrieves and finds that meaningful information along with memory to get the job done and get the job done with the highest accuracy that you used to as desires.

  5. 4:15

    So that's where, yes, memory is one of the very, very important part of that story. And the broader story for us is the memory plus the context that makes agents so successful and really, really good in the production. Yep. And when you say memory, what are you referring to? Are there different types of memory? Yeah, yeah, no, absolutely. I mean, some of the examples with the memory would be think about the situations like episodic memory, for example, or semantic memory, or procedural memory. And I'll go into the detail of each one of them in a minute. But when you start to think about the collectively in action that desires, what kind of memory you want to look at, right?

  6. 4:54

    So, for example, the semantic one, as I mentioned, it's all about facts and preferences. What do I know about this user? That's that semantic memory. Episodic memory is the events and the sessions, such as what happened last time. The taxonomic memory is the terms definition. What does this word mean? And then, of course, another one is procedural memory, which is like a step-by-step skills that agent needs.

  7. 5:20

    how many steps do we need to take to do this action or perform this action successfully? And those are all unique in itself, but it can be easily confused, especially from the digitization point of view. These are all data in your storage, in your database. So how does that logic translate into the right memory retrieval to match the right action that agent desires. That's a great question. I have it for you. How does an agent figure out what to hold on to, when to actually look something up or leave it out? How does that all work?

  8. 5:56

    So more often, we don't want our agent builders to worry about that. We want that to be our problem as a memory solution provider. We kind of understand that prompt. We kind of understand the contextual information and we have all the historical knowledge of it. So let's say you went to an agent on a prompt and you created a prompt saying, hey, just find these details because I am trying to remember I saw this amazing thing and I placed an order six months ago, but now I'm not able to retrieve that details. What do I do? Now, we have that level of information about you, the user, and about that agent, and we pull those information out for you without you having to worry about exactly asking what you want to do. Just We leave that call on us and we will retrieve that exact memory for that user for that session, according to that prompt that comes our way.

  9. 6:48

    Yeah. Where does Atlas Engine fit into all of this?