About this video
MemGPT tiered memory: my small AI model never searched its own memory once.
Every chat sat on a searchable disk; a model twice the size searched it.
MemGPT (UC Berkeley, 2023; now the Letta framework) runs agent memory like an operating system: the context window is RAM, a small core memory block is always in it, older chats page out to disk, and the model saves, edits and searches its own memory with tool calls.
The test: 8 made-up passengers at a made-up airline's bag desk, a week of 35 chats each, and a window shrunk to the last 10 chats. When the window filled, the oldest 5 paged out, after a memory-pressure warning. Then 3 requests that need old facts: open a claim listing what's in my bag (booking and contents, Monday), deliver to my new hotel (Thursday) and text my colleague again (Tuesday).
Small model (Qwen3.5 2B), 24 requests: window alone 0/24, + a 60-word running summary 4/24, + core memory and search 13/24. Core memory carried the claim (8/8), but it was written after Monday's chats and never changed, and the model never searched (0 of 24): the colleague's number 1/8. Twice the size (Qwen3.5 4B), first 4 passengers: 12/12 with core memory and search (small model on the same 4: 6/12); it searched for the colleague's number all 4 times. The catch: both filled core memory with desk trivia; at the hotel change both hit 'memory full', and the new hotel never reached core memory (0 of 12): the summary carried it.
Learn AI in Under 3 Minutes, Ep 21 (level 4: agent memory).
Measured on an M1 MacBook Air: Qwen3.5 2B and 4B (4-bit, llama.cpp, greedy), my own small version of the MemGPT pattern (a 400-character core block, keyword search, a 60-word recursive summary), not Letta itself. The 4B ran 4 of the 8 passengers. Small models: an example, not a benchmark. Paper: MemGPT (Packer et al., 2023).
Comment TIERS and I'll send you the checklist, my memory-pressure prompt and the test passengers.
0:00 Never searched
0:21 Memory as an operating system
0:36 The test
1:06 What helped
1:19 Quiz
1:40 The catch
1:55 My take
2:08 The checklist
Music: Aitech by Kevin MacLeod, CC BY 3.0, via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:Aitech_(ISRC_USUAN1100336).mp3)
Follow @PranavInnovates for the tech story that matters, every day.
What the video says
My AI agent had MemGPT tiered memory, every chat on a searchable disk, and the small model never searched it once in twenty-four requests. Its core memory, the part it always sees, was written on Monday, gate number and all, and never changed. When the passenger moved hotels, it tried to save Monday's note again, and got: memory full. This is MemGPT, from UC Berkeley in twenty twenty-three, now the Letta framework. The context window is RAM: small and fast. A core memory block always sits in it. Older chats page out to disk, and the agent searches them back in, by itself. So I built the pattern myself, and shrank the window to the last ten chats. Eight made-up passengers, a week of thirty-five chats each. Each time the window filled, the oldest five paged out, right after a memory-pressure warning to save what matters. Then three requests that need old facts: open a claim listing what's in my bag, deliver to my new hotel, and text my colleague again. The window alone: zero of twenty-four. Plus a running summary: four. Plus core memory and search: thirteen. Core memory carried the claim: booking and bag contents, saved on Monday, eight of eight. The colleague's number was only on disk, and the small model never looked: one of eight, and that one came from the summary. Quick quiz: a model twice the size, same memory. Does it search its disk for the colleague's number? Every time. It searched colleague phone number, found Tuesday's chat, and texted the right person. On the same four passengers: small model, six of twelve. Twice the size, twelve of twelve. But look inside its core memory. Both models filled theirs with desk trivia, like flight times and toiletry rules. When the hotel changed, both got: memory full. New hotel saved in core: zero of twelve. The summary carried it. My take: in tiered memory, the model is the scheduler of its own operating system. It works only if the model saves, updates and searches. So log those memory calls, and test them, not just the answers. Here's my checklist for tiered memory. Core: only the facts every chat needs. Update them in place when they change. Page old chats out, never delete them. And log every search, to check it happens. Comment TIERS, and I'll send you this checklist, my memory-pressure prompt and the test passengers. Next: memory with time. Episode twenty-two.