YouTube2Text

How AI Agent Memory Actually Works in 2026 (Mem0, Letta, Zep) — Transcript

by Pico AI Lab · 1,690 words · 259 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Every agent I've tested this year has
  2. 0:02the same weak spot. And it's not
  3. 0:04reasoning and it's not coding. It's
  4. 0:06memory. You give an agent a long task,
  5. 0:09it makes good decisions early on, and
  6. 0:11then 40 steps later it contradicts
  7. 0:14itself or it repeats a mistake it
  8. 0:16already fixed 20 minutes ago. And the
  9. 0:18reason is pretty simple. The model does
  10. 0:21not remember anything on its own.
  11. 0:23Whatever it knew 10 tool calls back is
  12. 0:25gone unless something in your system
  13. 0:28puts that information back in front of
  14. 0:30it. There's a real story that stuck with
  15. 0:32me while researching this. A production
  16. 0:35assistant kept referring to a client as
  17. 0:37single in an email 6 months after that
  18. 0:40client got married. The system stored a
  19. 0:42fact once, treated it like it was
  20. 0:44permanent, and nothing ever came back to
  21. 0:46correct it. That's not the model being
  22. 0:48dumb. That's a memory architecture
  23. 0:50problem. And that exact class of problem
  24. 0:54is what this whole video is about
  25. 0:56because in 2026, memory has quietly
  26. 0:59become its own layer in the agent stack.
  27. 1:01And if you're building agents, you kind
  28. 1:03of have to understand it now. Okay, so
  29. 1:06first thing, context and memory are not
  30. 1:09the same thing and people mix these up
  31. 1:11constantly. Context is what the model
  32. 1:14actually sees during the current
  33. 1:15request, the system prompt, recent
  34. 1:18messages, tool results, whatever got
  35. 1:20packed in there. When that request ends,
  36. 1:22it's gone. Memory is everything stored
  37. 1:25outside the model that might get loaded
  38. 1:27back in later. Different location,
  39. 1:30different lifespan, different rules.
  40. 1:32Here's how I think about it. Context is
  41. 1:35like the papers spread out on your desk
  42. 1:37right now. You can see all of them
  43. 1:39instantly. No effort. But the desk only
  44. 1:41fits so much and it gets cleared at the
  45. 1:43end of the day. Memory is the filing
  46. 1:46cabinet next to the desk. Way more
  47. 1:48capacity. Nothing disappears. But you
  48. 1:50have to know which drawer to open and
  49. 1:52someone has to actually walk over and
  50. 1:54open it. An agent needs both. And more
  51. 1:57importantly, it needs a system that
  52. 1:59decides what moves from the desk into
  53. 2:01the cabinet and what comes back out and
  54. 2:03when. Now, the obvious push back is
  55. 2:06context windows keep getting bigger. So
  56. 2:08maybe this whole problem just goes away.
  57. 2:11We have models with a million tokens of
  58. 2:13context now. But it doesn't go away. And
  59. 2:16there are three reasons. First, cost.
  60. 2:19You pay for every token on every single
  61. 2:21call. So stuffing your entire history
  62. 2:24into each request gets expensive fast.
  63. 2:27Second, latency. Bigger prompts means
  64. 2:29slower responses and agents already make
  65. 2:32a lot of calls per task. And third,
  66. 2:35there's this effect people call context
  67. 2:37rot, where models get measurably worse
  68. 2:39at using information buried in the
  69. 2:41middle of a huge context. The stuff at
  70. 2:44the start and the end gets attention.
  71. 2:46The middle gets fuzzy. So a bigger
  72. 2:48window delays the problem. It doesn't
  73. 2:51solve it. The real issue was never
  74. 2:53storage. It's management. Deciding what
  75. 2:56matters. Before dedicated memory systems
  76. 2:58existed, the field basically had three
  77. 3:01workarounds. And it's worth
  78. 3:02understanding why each one falls short
  79. 3:05because they're all still used today.
  80. 3:07The first one is retrieval. So R A
  81. 3:10instead of putting an entire knowledge
  82. 3:12base into the prompt, you store it
  83. 3:14externally and pull in only the chunks
  84. 3:16that seem relevant to the current
  85. 3:18question. Sounds clean. In practice,
  86. 3:20it's a whole pipeline. You have to split
  87. 3:23the data into chunks, embed those
  88. 3:25chunks, index them, retrieve them, and
  89. 3:28rank them. And every one of those steps
  90. 3:30can go wrong quietly. retrieval pulls
  91. 3:32the wrong chunk and the agent
  92. 3:34confidently answers from bad information
  93. 3:37and you have no idea why. The second
  94. 3:39workaround is summaries. When the
  95. 3:42conversation gets too long, you compress
  96. 3:44the older parts into a short recap and
  97. 3:46keep going. The problem is that
  98. 3:49summaries are lossy and the language
  99. 3:51model is the one deciding what to keep.
  100. 3:54Say your agent spends an hour debugging
  101. 3:56and the fix depended on one specific
  102. 3:58environment variable. If the summary
  103. 4:00drops that one line and the same bug
  104. 4:03shows up two days later, the agent
  105. 4:05starts from zero. It technically had the
  106. 4:07answer at some point. It just threw it
  107. 4:09away. The third one is profiles. A
  108. 4:12stored table of facts about the user.
  109. 4:15Preferences, writing style, current
  110. 4:17projects. Great for personalization, but
  111. 4:20profiles go stale. What was true about
  112. 4:22someone 3 months ago might be flatout
  113. 4:25wrong today. and a naive profile system
  114. 4:28keeps serving the old fact forever.
  115. 4:30That's literally the wedding email story
  116. 4:32from earlier. Nobody built a way for
  117. 4:34facts to expire. So, here's the mental
  118. 4:37model that actually helped me. Memory is
  119. 4:40not a feature you bolt on. It's a loop.
  120. 4:43And the loop has two halves. The first
  121. 4:45half is writing. The agent observes what
  122. 4:47happened, decides which parts are worth
  123. 4:49keeping, and saves them somewhere
  124. 4:51durable. And that alone is genuinely
  125. 4:54hard because 95% of what an agent sees
  126. 4:57is noise, tool outputs, intermediate
  127. 5:00steps, failed attempts. If you save
  128. 5:02everything, retrieval drowns later. If
  129. 5:05you save too little, you lose the one
  130. 5:07detail that mattered. The second half is
  131. 5:09reading. And this is where most systems
  132. 5:11quietly fail. The agent has to pull the
  133. 5:14right memories back at the right moment.
  134. 5:16Inject them into context. And this is
  135. 5:19the key part. Update them when reality
  136. 5:21changes. Updating is way harder than
  137. 5:24storing. If a new fact contradicts an
  138. 5:26old one, something has to notice, decide
  139. 5:29which one wins, and either overwrite or
  140. 5:31mark the old one as expired. Most simple
  141. 5:34setups just append new facts next to old
  142. 5:37ones, and then the retrieval step
  143. 5:38returns both, and the agent has to
  144. 5:40guess. That's how you get agents
  145. 5:43confidently citing outdated information.
  146. 5:46All right, so what does the actual
  147. 5:48landscape look like right now? Because
  148. 5:50this space got crowded fast. The most
  149. 5:52popular open-source option is mem
  150. 5:55sitting at around 48,000 stars on
  151. 5:57GitHub. It's basically a drop in memory
  152. 6:00layer. Conversations go in, an
  153. 6:03extraction step pulls out the facts
  154. 6:05worth keeping, and retrieval brings them
  155. 6:07back later. very fast to integrate,
  156. 6:10which is why so many people start there.
  157. 6:12The catch is that conflict handling
  158. 6:14depends on the model correctly noticing
  159. 6:16contradictions when new information
  160. 6:18comes in, and there's no real version
  161. 6:21history. So asking what the user
  162. 6:23preferred last quarter isn't really
  163. 6:25answerable. Then there's letter, which
  164. 6:27came out of the MEM GPT research
  165. 6:29project, and it takes a totally
  166. 6:31different approach. It treats memory
  167. 6:33like an operating system treats memory.
  168. 6:36There's a small core memory that always
  169. 6:38sits inside the prompt, kind of like
  170. 6:40RAM, and a much bigger archival memory
  171. 6:43in a database, kind of like disk. And
  172. 6:45the interesting part is the agent
  173. 6:47manages its own memory with tools. It
  174. 6:50decides on its own when to write
  175. 6:52something down and when to go look
  176. 6:54something up. On the long meal
  177. 6:56benchmark, Lea style architectures score
  178. 6:59around 83% which is one of the strongest
  179. 7:02results out there right now. The third
  180. 7:04approach is temporal knowledge graphs.
  181. 7:06And this is the one I find most
  182. 7:08interesting. Technically systems like
  183. 7:10Zep built on an engine called graffidi
  184. 7:13don't store facts as flat text. They
  185. 7:15store them as a graph where every fact
  186. 7:17has a validity window. So the system
  187. 7:19knows the client was single from this
  188. 7:22date to that date and married after.
  189. 7:24Facts supersede each other instead of
  190. 7:26piling up. that directly solves the
  191. 7:29stale profile problem. And it's why some
  192. 7:31people are predicting graph-based memory
  193. 7:33becomes the default architecture over
  194. 7:35the next year or so. And then there's
  195. 7:38the boring option that honestly works
  196. 7:40better than people expect. Plain files.
  197. 7:42Clouded code does this with markdown
  198. 7:44files that persist across sessions and
  199. 7:47the agent just reads and edits them
  200. 7:49directly. No embeddings, no graph
  201. 7:51database, no infrastructure. You can
  202. 7:54open the file yourself and see exactly
  203. 7:56what the agent remembers, which makes
  204. 7:58debugging trivial. For a single user
  205. 8:00tool, this is genuinely hard to beat,
  206. 8:03and I think a lot of teams overengineer
  207. 8:05past it. The differences between these
  208. 8:07approaches are not small. By the way,
  209. 8:10there are proper benchmarks now like
  210. 8:12locomo, which tests recall across
  211. 8:14multi-session conversations with about
  212. 8:161,500 questions, and long meal, which
  213. 8:19focuses on long range and timebased
  214. 8:22reasoning. And on temporal questions
  215. 8:24specifically, the gap between
  216. 8:26architectures can be up to 15 accuracy
  217. 8:28points. That's the difference between an
  218. 8:31agent that reliably knows what changed
  219. 8:33and when and one that guesses.
  220. 8:36Architecture choice matters more here
  221. 8:38than it looks from the outside. One more
  222. 8:41thing that surprised me in the research.
  223. 8:43Vector only memory tends to degrade once
  224. 8:46you get past a few hundred stored
  225. 8:48entries, specifically when facts change
  226. 8:50over time. Retrieval precision without
  227. 8:53any sense of time just breaks down
  228. 8:56because old and new versions of the same
  229. 8:58fact sit next to each other with similar
  230. 9:00embeddings which means deleting and
  231. 9:03expiring memories is just as important
  232. 9:05as storing them. Forgetting is a
  233. 9:08feature. Human memory works the same
  234. 9:10way. And it turns out that's not a bug
  235. 9:13in us either. So if you're building
  236. 9:15something, here's how I'd actually
  237. 9:17approach it. Start with the simplest
  238. 9:19thing that works, which is usually files
  239. 9:21or a basic profile, and only move up
  240. 9:24when you hit a real limit. If your
  241. 9:26agent's world is mostly static and the
  242. 9:28job is recall, a vector layer like mem
  243. 9:31is fine. If facts change and history
  244. 9:34matters, look at graph-based systems. If
  245. 9:36you want a longunning agent that manages
  246. 9:39itself over days or weeks, that's leta
  247. 9:41territory. There's no single winner
  248. 9:44here, and anyone selling you one is
  249. 9:46selling. The bigger picture is that the
  250. 9:48benchmarks everyone watches now are long
  251. 9:51horizon ones where an agent has to stay
  252. 9:53coherent across hundreds of steps.
  253. 9:55Reasoning is mostly there. Tool use is
  254. 9:58mostly there. Memory management is the
  255. 10:00thing still separating a demo from
  256. 10:02something you'd trust with a week-long
  257. 10:04task. And that gap is exactly where the
  258. 10:07next generation of agents is going to be
  259. 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.