How AI Agent Memory Actually Works in 2026 (Mem0, Letta, Zep) — Transcript
Full transcript
- 0:00Every agent I've tested this year has
- 0:02the same weak spot. And it's not
- 0:04reasoning and it's not coding. It's
- 0:06memory. You give an agent a long task,
- 0:09it makes good decisions early on, and
- 0:11then 40 steps later it contradicts
- 0:14itself or it repeats a mistake it
- 0:16already fixed 20 minutes ago. And the
- 0:18reason is pretty simple. The model does
- 0:21not remember anything on its own.
- 0:23Whatever it knew 10 tool calls back is
- 0:25gone unless something in your system
- 0:28puts that information back in front of
- 0:30it. There's a real story that stuck with
- 0:32me while researching this. A production
- 0:35assistant kept referring to a client as
- 0:37single in an email 6 months after that
- 0:40client got married. The system stored a
- 0:42fact once, treated it like it was
- 0:44permanent, and nothing ever came back to
- 0:46correct it. That's not the model being
- 0:48dumb. That's a memory architecture
- 0:50problem. And that exact class of problem
- 0:54is what this whole video is about
- 0:56because in 2026, memory has quietly
- 0:59become its own layer in the agent stack.
- 1:01And if you're building agents, you kind
- 1:03of have to understand it now. Okay, so
- 1:06first thing, context and memory are not
- 1:09the same thing and people mix these up
- 1:11constantly. Context is what the model
- 1:14actually sees during the current
- 1:15request, the system prompt, recent
- 1:18messages, tool results, whatever got
- 1:20packed in there. When that request ends,
- 1:22it's gone. Memory is everything stored
- 1:25outside the model that might get loaded
- 1:27back in later. Different location,
- 1:30different lifespan, different rules.
- 1:32Here's how I think about it. Context is
- 1:35like the papers spread out on your desk
- 1:37right now. You can see all of them
- 1:39instantly. No effort. But the desk only
- 1:41fits so much and it gets cleared at the
- 1:43end of the day. Memory is the filing
- 1:46cabinet next to the desk. Way more
- 1:48capacity. Nothing disappears. But you
- 1:50have to know which drawer to open and
- 1:52someone has to actually walk over and
- 1:54open it. An agent needs both. And more
- 1:57importantly, it needs a system that
- 1:59decides what moves from the desk into
- 2:01the cabinet and what comes back out and
- 2:03when. Now, the obvious push back is
- 2:06context windows keep getting bigger. So
- 2:08maybe this whole problem just goes away.
- 2:11We have models with a million tokens of
- 2:13context now. But it doesn't go away. And
- 2:16there are three reasons. First, cost.
- 2:19You pay for every token on every single
- 2:21call. So stuffing your entire history
- 2:24into each request gets expensive fast.
- 2:27Second, latency. Bigger prompts means
- 2:29slower responses and agents already make
- 2:32a lot of calls per task. And third,
- 2:35there's this effect people call context
- 2:37rot, where models get measurably worse
- 2:39at using information buried in the
- 2:41middle of a huge context. The stuff at
- 2:44the start and the end gets attention.
- 2:46The middle gets fuzzy. So a bigger
- 2:48window delays the problem. It doesn't
- 2:51solve it. The real issue was never
- 2:53storage. It's management. Deciding what
- 2:56matters. Before dedicated memory systems
- 2:58existed, the field basically had three
- 3:01workarounds. And it's worth
- 3:02understanding why each one falls short
- 3:05because they're all still used today.
- 3:07The first one is retrieval. So R A
- 3:10instead of putting an entire knowledge
- 3:12base into the prompt, you store it
- 3:14externally and pull in only the chunks
- 3:16that seem relevant to the current
- 3:18question. Sounds clean. In practice,
- 3:20it's a whole pipeline. You have to split
- 3:23the data into chunks, embed those
- 3:25chunks, index them, retrieve them, and
- 3:28rank them. And every one of those steps
- 3:30can go wrong quietly. retrieval pulls
- 3:32the wrong chunk and the agent
- 3:34confidently answers from bad information
- 3:37and you have no idea why. The second
- 3:39workaround is summaries. When the
- 3:42conversation gets too long, you compress
- 3:44the older parts into a short recap and
- 3:46keep going. The problem is that
- 3:49summaries are lossy and the language
- 3:51model is the one deciding what to keep.
- 3:54Say your agent spends an hour debugging
- 3:56and the fix depended on one specific
- 3:58environment variable. If the summary
- 4:00drops that one line and the same bug
- 4:03shows up two days later, the agent
- 4:05starts from zero. It technically had the
- 4:07answer at some point. It just threw it
- 4:09away. The third one is profiles. A
- 4:12stored table of facts about the user.
- 4:15Preferences, writing style, current
- 4:17projects. Great for personalization, but
- 4:20profiles go stale. What was true about
- 4:22someone 3 months ago might be flatout
- 4:25wrong today. and a naive profile system
- 4:28keeps serving the old fact forever.
- 4:30That's literally the wedding email story
- 4:32from earlier. Nobody built a way for
- 4:34facts to expire. So, here's the mental
- 4:37model that actually helped me. Memory is
- 4:40not a feature you bolt on. It's a loop.
- 4:43And the loop has two halves. The first
- 4:45half is writing. The agent observes what
- 4:47happened, decides which parts are worth
- 4:49keeping, and saves them somewhere
- 4:51durable. And that alone is genuinely
- 4:54hard because 95% of what an agent sees
- 4:57is noise, tool outputs, intermediate
- 5:00steps, failed attempts. If you save
- 5:02everything, retrieval drowns later. If
- 5:05you save too little, you lose the one
- 5:07detail that mattered. The second half is
- 5:09reading. And this is where most systems
- 5:11quietly fail. The agent has to pull the
- 5:14right memories back at the right moment.
- 5:16Inject them into context. And this is
- 5:19the key part. Update them when reality
- 5:21changes. Updating is way harder than
- 5:24storing. If a new fact contradicts an
- 5:26old one, something has to notice, decide
- 5:29which one wins, and either overwrite or
- 5:31mark the old one as expired. Most simple
- 5:34setups just append new facts next to old
- 5:37ones, and then the retrieval step
- 5:38returns both, and the agent has to
- 5:40guess. That's how you get agents
- 5:43confidently citing outdated information.
- 5:46All right, so what does the actual
- 5:48landscape look like right now? Because
- 5:50this space got crowded fast. The most
- 5:52popular open-source option is mem
- 5:55sitting at around 48,000 stars on
- 5:57GitHub. It's basically a drop in memory
- 6:00layer. Conversations go in, an
- 6:03extraction step pulls out the facts
- 6:05worth keeping, and retrieval brings them
- 6:07back later. very fast to integrate,
- 6:10which is why so many people start there.
- 6:12The catch is that conflict handling
- 6:14depends on the model correctly noticing
- 6:16contradictions when new information
- 6:18comes in, and there's no real version
- 6:21history. So asking what the user
- 6:23preferred last quarter isn't really
- 6:25answerable. Then there's letter, which
- 6:27came out of the MEM GPT research
- 6:29project, and it takes a totally
- 6:31different approach. It treats memory
- 6:33like an operating system treats memory.
- 6:36There's a small core memory that always
- 6:38sits inside the prompt, kind of like
- 6:40RAM, and a much bigger archival memory
- 6:43in a database, kind of like disk. And
- 6:45the interesting part is the agent
- 6:47manages its own memory with tools. It
- 6:50decides on its own when to write
- 6:52something down and when to go look
- 6:54something up. On the long meal
- 6:56benchmark, Lea style architectures score
- 6:59around 83% which is one of the strongest
- 7:02results out there right now. The third
- 7:04approach is temporal knowledge graphs.
- 7:06And this is the one I find most
- 7:08interesting. Technically systems like
- 7:10Zep built on an engine called graffidi
- 7:13don't store facts as flat text. They
- 7:15store them as a graph where every fact
- 7:17has a validity window. So the system
- 7:19knows the client was single from this
- 7:22date to that date and married after.
- 7:24Facts supersede each other instead of
- 7:26piling up. that directly solves the
- 7:29stale profile problem. And it's why some
- 7:31people are predicting graph-based memory
- 7:33becomes the default architecture over
- 7:35the next year or so. And then there's
- 7:38the boring option that honestly works
- 7:40better than people expect. Plain files.
- 7:42Clouded code does this with markdown
- 7:44files that persist across sessions and
- 7:47the agent just reads and edits them
- 7:49directly. No embeddings, no graph
- 7:51database, no infrastructure. You can
- 7:54open the file yourself and see exactly
- 7:56what the agent remembers, which makes
- 7:58debugging trivial. For a single user
- 8:00tool, this is genuinely hard to beat,
- 8:03and I think a lot of teams overengineer
- 8:05past it. The differences between these
- 8:07approaches are not small. By the way,
- 8:10there are proper benchmarks now like
- 8:12locomo, which tests recall across
- 8:14multi-session conversations with about
- 8:161,500 questions, and long meal, which
- 8:19focuses on long range and timebased
- 8:22reasoning. And on temporal questions
- 8:24specifically, the gap between
- 8:26architectures can be up to 15 accuracy
- 8:28points. That's the difference between an
- 8:31agent that reliably knows what changed
- 8:33and when and one that guesses.
- 8:36Architecture choice matters more here
- 8:38than it looks from the outside. One more
- 8:41thing that surprised me in the research.
- 8:43Vector only memory tends to degrade once
- 8:46you get past a few hundred stored
- 8:48entries, specifically when facts change
- 8:50over time. Retrieval precision without
- 8:53any sense of time just breaks down
- 8:56because old and new versions of the same
- 8:58fact sit next to each other with similar
- 9:00embeddings which means deleting and
- 9:03expiring memories is just as important
- 9:05as storing them. Forgetting is a
- 9:08feature. Human memory works the same
- 9:10way. And it turns out that's not a bug
- 9:13in us either. So if you're building
- 9:15something, here's how I'd actually
- 9:17approach it. Start with the simplest
- 9:19thing that works, which is usually files
- 9:21or a basic profile, and only move up
- 9:24when you hit a real limit. If your
- 9:26agent's world is mostly static and the
- 9:28job is recall, a vector layer like mem
- 9:31is fine. If facts change and history
- 9:34matters, look at graph-based systems. If
- 9:36you want a longunning agent that manages
- 9:39itself over days or weeks, that's leta
- 9:41territory. There's no single winner
- 9:44here, and anyone selling you one is
- 9:46selling. The bigger picture is that the
- 9:48benchmarks everyone watches now are long
- 9:51horizon ones where an agent has to stay
- 9:53coherent across hundreds of steps.
- 9:55Reasoning is mostly there. Tool use is
- 9:58mostly there. Memory management is the
- 10:00thing still separating a demo from
- 10:02something you'd trust with a week-long
- 10:04task. And that gap is exactly where the
- 10:07next generation of agents is going to be
- 10:09decided.
About this transcript
This page contains the full transcript of How AI Agent Memory Actually Works in 2026 (Mem0, Letta, Zep) by Pico AI Lab, generated from the public captions YouTube serves with the video. The transcript has 1,690 words across 259 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.