Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

AgentMemoryBook

A comprehensive guide to understanding how state-of-the-art agent memory systems work — what techniques they use, how they differ, and which situations each one fits best.

By Atum


Who Is This For?

  • AI engineers building agents that need to remember across sessions
  • Product builders choosing a memory layer for their AI application
  • Researchers studying the evolving landscape of agent memory architectures
  • Curious minds who want to understand what makes an AI agent “remember”

What’s Inside

This book is organized into three parts:

Part I — Concepts covers the foundations: what agent memory is, the taxonomy of memory types, the write–manage–read loop, and the ten core engineering techniques that power every memory system.

Part II — Provider Deep Dives gives each major memory system its own chapter with architecture diagrams, real SDK code examples, step-by-step walkthroughs, and honest assessments. Twelve systems are covered: Mem0, OpenViking, Hindsight, ByteRover, Zep/Graphiti, Supermemory, Honcho, Letta (MemGPT), Cognee, RetainDB, Nuggets, and Claude Code (from the leaked source).

Part III — Landscape & Decision Making covers the consumer AI memory race (ChatGPT vs Claude vs Gemini), benchmarks and evaluation, a practical decision guide for choosing the right system, and open challenges for the future.

Quick Comparison

SystemArchitectureOpen SourceBest For
Mem0Extract → Update pipeline + vector/graphYes (Apache 2.0)Production chat agents
OpenVikingFilesystem paradigm + tiered contextYes (Apache 2.0)Unified context management
Hindsight4-network structured memory bankYes (MIT)Long-horizon reasoning agents
ByteRoverHierarchical Context Tree + file-basedPartial (CLI)Coding agents
Zep/GraphitiTemporal knowledge graphGraphiti: YesEnterprise temporal reasoning
SupermemoryMemory graph + RAG + connectorsCore: YesAll-in-one platform
HonchoDialectic reasoning + user modelingYesDeep personalization
Letta (MemGPT)Memory-as-OS (RAM/disk tiers)YesStateful autonomous agents
CogneeKnowledge graph + vector hybridYes (Apache 2.0)Institutional knowledge
RetainDB7 memory types + delta compressionNo (SaaS)Quick integration
NuggetsHRR superposed vectorsYesLightweight local memory
Claude CodeMarkdown files + Sonnet side-callSource leakedDev with Claude

References

Key academic surveys referenced throughout this book:

License

This book is released under CC BY-SA 4.0. You are free to share and adapt, with attribution.