IntermediateAbout 17 min

    Agents & Memory Systems

    Read the full article on Substack

    6 min read.

    Run a five-turn conversation that writes facts into a memory store, then fire queries at it and watch a relevance × recency × importance scorer decide which memories are worth the context tokens — and which it drops at exactly the wrong moment.

    Think of it this way: The context window is the desk; memory is the filing cabinet. The desk is fast, small, and cleared overnight. Everything you want to survive to tomorrow has to be deliberately filed — and deliberately fetched back, which means something has to decide what is worth fetching.

    Memory store, ranked for "Find me somewhere to eat near the hotel tonight"0 items
    1. Empty. Press Next turn.

    Step through five turns. Each turn may write memories into the store.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Which memory does this belong in?

    Sort

    Sort each piece of state.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Short-term (this session)

    Drop items here

    Long-term (persisted)

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    The essential difference between a context window and memory is that the window:

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going