Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Agent Memory

Free · sign in to start and track progress

1 · How agents remember

  • 1Memory types for agents
  • 2The context window as working memory
  • 3Files, skills and memory tools
  • 4Memory frameworks and benchmarks

    Exercise answers

    • Answer: Build a miniature knowledge-update benchmark
    • Answer: Do due diligence on a memory framework

2 · Memory in production

  • 5Scoping, retention and erasure
  • 6Write, update and forget
  • 7Shared state and memory poisoning
  • 8Evaluating memory
CapstoneA memory layer for a 12-week caseReference implementation

Module 1 · How agents remember · Lesson 4

Memory frameworks and benchmarks

What Mem0, Letta, Zep with Graphiti, and LangMem actually store and do, how LoCoMo and LongMemEval measure memory, and how to read a vendor's benchmark claim before you build on it.

80 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uv

By the end of this lesson you can

  • Describe the write, update and retrieval path of Mem0, Letta, Zep/Graphiti and LangMem, and the memory types each one covers
  • Explain what LoCoMo and LongMemEval test, and what each leaves out
  • Critique a published memory benchmark result, naming at least four ways it can mislead
  • Compute the sampling uncertainty of a benchmark score and judge whether a reported gap is meaningful
  • Choose between building on your own store and adopting a memory service for a production agent fleet

On this page

  • Intuition: three ways to keep a diary
  • The frameworks
  • Mem0: extract, store, search
  • Letta: the MemGPT design as a service
  • Zep and Graphiti: a temporal knowledge graph
  • LangMem: memory primitives for LangGraph
  • How memory is benchmarked
  • Reading the numbers critically
  • A worked example: is a gap real?
  • Build or buy for a law firm
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: three ways to keep a diary
  2. 02The frameworks
  3. 03How memory is benchmarked
  4. 04Reading the numbers critically
  5. 05Build or buy for a law firm
  6. 06Misconceptions and limits
  7. 07Connections
  8. 08Summary

Sources & further reading

  • Mem0: Building Production-Ready AI Agents with Scalable Long-Term MemoryPaper · Chhikara, Khant, Aryan, Singh, Yadav · 2025Mem0's original design: LLM extraction, then an update phase choosing ADD, UPDATE, DELETE or NOOP against similar memories (section 2), and its LoCoMo evaluation, which excludes the adversarial category.
  • Zep: A Temporal Knowledge Graph Architecture for Agent MemoryPaper · Rasmussen, Paliychuk, Beauvais, Ryan, Chalef · 2025Graphiti's bi-temporal knowledge graph and edge invalidation (section 2), and LongMemEval results against a full-context baseline with latency and context size (table 2).
  • Evaluating Very Long-Term Conversational Memory of LLM AgentsPaper · Maharana, Lee, Tulyakov, Bansal, Barbieri, Fang · 2024The LoCoMo benchmark (ACL 2024): about 300 turns and 9K tokens per conversation over up to 35 sessions, with question answering, event summarisation and dialogue generation tasks.
  • LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive MemoryPaper · Wu, Wang, Yu, Zhang, Chang, Yu · 2024500 questions testing five abilities (ICLR 2025), including knowledge updates and abstention; the indexing, retrieval and reading decomposition in section 4 is a useful design checklist.
  • Anatomy of Agentic Memory: Taxonomy and Empirical Analysis of Evaluation and System LimitationsPaper · Jiang et al. · 2026A 2026 analysis of why memory systems underperform their claims: benchmark saturation, judge sensitivity, backbone-dependent accuracy and overlooked latency and maintenance costs.
  • Benchmarking AI Agent Memory: Is a Filesystem All You Need?Article · Letta · 2025A vendor's experiment showing an agent with plain file tools scoring 74.0% on LoCoMo with GPT-4o mini. Read it as evidence about what the benchmark measures.
  • Lies, Damn Lies, & Statistics: Is Mem0 Really SOTA in Agent Memory?Article · Zep · 2025A competitor's rebuttal of Mem0's LoCoMo results: the misconfigured baseline, the full-context score and the benchmark's data problems. Partisan, but specific and checkable.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 8 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks