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

2 · Memory in production

  • 5Scoping, retention and erasure
  • 6Write, update and forget
  • 7Shared state and memory poisoning
  • 8Evaluating memory

    Exercise answers

    • Answer: Run a memory ablation on synthetic matters
    • Answer: Model memory cost for your session pattern
CapstoneA memory layer for a 12-week caseReference implementation

Module 2 · Memory in production · Lesson 8

Evaluating memory

How to tell whether memory helps. Ground-truth-first test cases, ablations against no memory, full history and an oracle, metrics for staleness, abstention, leaks and poisoning, and the full cost and latency of writing and retrieving memories.

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

By the end of this lesson you can

  • Build a memory test set from facts with validity intervals before any text is generated, with questions at several points in a case
  • Run ablations (no memory, full history, memory system, oracle) and attribute failures to the write, retrieval or reading stage
  • Measure stale answers, false memories, cross-case leaks and poisoning resistance, and bound a zero-failure leak rate with the rule of three
  • Compute the per-case cost of a memory design, including write-time extraction and cold caches between sessions, and compare it with full history
  • Decide from evidence whether to ship, tune or remove a memory component

On this page

  • Intuition: test the file, not the clerk's confidence
  • What to measure
  • Build the test set ground-truth-first
  • Ablations: what is memory actually adding?
  • Statistics that fit memory
  • Bounding leaks you never observed
  • The cost of memory
  • A worked example: one matter's client assistant
  • After launch
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: test the file, not the clerk's confidence
  2. 02What to measure
  3. 03Build the test set ground-truth-first
  4. 04Ablations: what is memory actually adding?
  5. 05Statistics that fit memory
  6. 06The cost of memory
  7. 07After launch
  8. 08Misconceptions and limits
  9. 09Connections
  10. 10Summary

Sources & further reading

  • LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive MemoryPaper · Wu, Wang, Yu, Zhang, Chang, Yu · 2024The five abilities to test, and the indexing, retrieval and reading decomposition (section 4) used in this lesson to localise failures.
  • Ground Truth First: A Longitudinal Evaluation Instrument for Agent Memory, and the Tenure Crossover in Memory-Architecture RankingsPaper · Quentin Spencer · 2026Generates facts with validity intervals and trust channels before any text, adds injection probes and as-of-date questions, and finds rankings invert between three and nine weeks. A recent single-author preprint: treat the numbers as suggestive, the method as a template.
  • Anatomy of Agentic Memory: Taxonomy and Empirical Analysis of Evaluation and System LimitationsPaper · Jiang et al. · 2026Why memory evaluations mislead (saturated benchmarks, judge sensitivity, backbone dependence) and why latency and maintenance costs belong in the result.
  • Zep: A Temporal Knowledge Graph Architecture for Agent MemoryPaper · Rasmussen et al. · 2025Table 2 reports accuracy, latency and context size together for memory versus full context, the right shape for any memory result.
  • From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM AgentsPaper · Dash, Ge, Jain, Shah, Shang · 2026MPBench, a benchmark of memory poisoning attacks: a source of test cases for the security part of a memory evaluation.
  • Pricing (Claude API docs)Docs · AnthropicInput, cache write, cache read and output prices for Claude Sonnet 5.5 and Haiku 5.5 used in the cost model.
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.

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