Patterns · Vol. 06

Pattern

Letta (formerly MemGPT)

Implement memory for LLM agents the way a computer's OS implements memory — with a small fast "main context" (RAM-like), large slower "archival memory" (disk-like), and paging logic that moves entries between tiers as needed.

Classification — Hierarchical memory architecture modeled on operating system virtual memory.

Full entry

The complete treatment — problem, how it works, when to use it, sources, and examples — lives in the volume below.

Browse the full pattern index or the catalog.