Memory · 2026-08-03

A long-running assistant needs to remember facts across many sessions.

Best approach?

  1. ARely on an ever-growing context window
  2. BUse external memory: store facts, retrieve the relevant ones
  3. CRe-send the entire history every turn
  4. DFine-tune the model every night on the day’s conversations so the facts become part of its weights

Answer: B

Use external memory: store facts, retrieve the relevant ones

Why

Context is finite and expensive. Persist facts in external memory and retrieve only what’s relevant - this is how agents “remember” at scale.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path