X-08The Four Memories

/context/memory-types

Working, episodic, semantic, procedural — four stores with different lifetimes, indexes, and write rules.

Step-by-step walkthrough6 steps
  1. Four kinds of memory, four different lifetimes. Click any store to inspect it.
  2. Working — in the window, gone when the task ends.
  3. Episodic — “what happened”, indexed by time and situation.
  4. Semantic — “what is true”, updated as evidence changes.
  5. Procedural — “how to do it”, loaded when the task matches.
  6. Confusing them is the classic bug: storing episodes as facts, or facts as one-off events.
Key insight

Each type earns its own machinery: working memory lives in the window; the rest live outside it and come back through retrieval, each indexed differently. The memory tool is the file-shaped version that ships in the API: the model reads and writes a /memories directory your application stores, so facts persist across sessions without all of them sitting in the window.

Failure mode

One undifferentiated “memory” blob: episodes stored as facts, preferences stored as events, and retrieval that can’t tell them apart. A memory tool with no path restriction is the same blob, plus a write primitive an injection can aim at.

Elsewhere in the atlas