PrepCity

Agent memory: what an agent remembers, and where

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 11 pages · about 9 min

Agent memory: what an agent remembers, and where

A language model forgets everything between calls. An agent seems to remember because the app keeps the conversation in its context window, squeezes it when it fills, and writes lasting facts to a store it can search days later. See both kinds of memory, and how they go wrong.

Words you’ll learn

  • Language model
  • Context window
  • Agent harness
  • Short-term memory
  • Compaction
  • API
  • Server
  • Checkpoint
  • Thread (conversation)
  • Memory store

Page by page