Agent Memory
Make agents remember the right facts about a customer and a case for weeks, keep each case's memory sealed, and prove that memory helps rather than harms.
2 modules · 8 lessons~20 hoursUpdated 2026-10-30Certificate included
- Lessons8
- Quizzes8
- Sources52
- Of study~20h
About this course
About this course
An advanced course on what agents should remember and how. You map working, episodic, semantic and procedural memory onto concrete mechanisms (the context window, compaction and context editing, CLAUDE.md and skills, the Claude memory tool and Managed Agents memory stores, and services such as Mem0, Letta and Zep), then read their benchmarks critically. The second module is about running memory in production: scoping stores per customer, case, organisation and agent under confidentiality duties and data-protection rules on retention and erasure (such as GDPR), write, update and forget policies with provenance, structured state shared by a fleet of per-step agents, memory poisoning, and evaluating whether memory pays for its retrieval cost. The running example is a 12-week case handled by per-step agents and a customer-facing assistant; every lesson has a worked example in Python, primary sources, a quiz and exercises you do with Claude.
About the running example
The examples follow a fictional property-law (conveyancing) firm in England and Wales: a 12-week leasehold flat purchase handled by per-step agents and a client-facing assistant. It's a case study, chosen because its documents are long, structured and high-stakes. You don't need a legal background, and the same patterns apply to contracts, insurance claims, invoices, support tickets or patient records. In the lessons, a matter is one client's case and a solicitor is the lawyer who signs work off.
What you'll learn.
- 1Classify any fact an agent needs as working, episodic, semantic or procedural memory and choose the mechanism that should hold it
- 2Configure compaction, context editing, CLAUDE.md, skills, the Claude memory tool and Managed Agents memory stores, and predict what each keeps and loses
- 3Compare Mem0, Letta, Zep and LangMem by what they actually do, and read LoCoMo and LongMemEval results critically
- 4Design memory scopes, retention and erasure that satisfy confidentiality duties and data-protection law such as GDPR, with provenance that makes deletion possible
- 5Implement write, update and forget policies, including conflict resolution when facts change and structured state shared by a fleet of agents
- 6Defend memory against poisoning and evaluate it with ablations that measure recall, staleness, leaks, latency and cost
2 modules, 8 lessons.
10h 5m of lessons
Module 1 · 4 lessons · 4h 50m
How agents remember
The kinds of memory an agent needs and the mechanisms that implement them: the context window and compaction, files, skills and memory tools, and dedicated memory services with their benchmarks.
- 1Memory types for agentsWorking, episodic, semantic and procedural memory, what each one is in a real agent system, and how to decide where each fact about a 12-week case should live.1h 5m7-question quiz6 sources
- 2The context window as working memoryHow compaction, context editing and Claude Code's compaction rules decide what an agent still knows late in a long session, why every summary is a lossy write, and how to pin the facts that must survive.1h 10m7-question quiz7 sources
- 3Files, skills and memory toolsMemory that outlives the session as files. CLAUDE.md and auto memory in Claude Code, skills as procedural memory, the Claude memory tool you host yourself, and Managed Agents memory stores with versions and read-only mounts.1h 15m7-question quiz6 sources
- 4Memory frameworks and benchmarksWhat 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.1h 20m7-question quiz7 sources
Module 2 · 4 lessons · 5h 15m
Memory in production
Running memory in production: scopes, retention and erasure; policies for writing, updating and forgetting; shared state across an agent fleet and its security; and evaluating whether memory pays for itself.
- 5Scoping, retention and erasurePer-customer, per-case, per-organisation and per-agent memory scopes, why case memory must never leak across customers under confidentiality duties, and what data-protection storage limitation and erasure (as in GDPR) mean for every memory, embedding and summary an agent creates.1h 15m6-question quiz7 sources
- 6Write, update and forgetPolicies for the whole life of a memory. What to write and how to extract it, deduplication, resolving conflicts when facts change, retrieval that respects time, and forgetting by expiry, decay and consolidation, with provenance throughout.1h 20m6-question quiz6 sources
- 7Shared state and memory poisoningHow a fleet of per-step agents should share one case's state (typed records, field-level write authority, compare-and-set and an event log rather than free-text memory), and how attackers turn memory into a persistent injection channel, with the defences that work.1h 20m6-question quiz7 sources
- 8Evaluating memoryHow 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.1h 20m6-question quiz6 sources
A memory layer for a 12-week case
Build and evaluate the memory for a simulated 12-week case handled by per-step agents and a customer-facing assistant, with scoped stores, typed time-aware facts, shared state, poisoning defences, retention and erasure, and an ablation that proves it helps.
Finish it. Get certified.
Complete every lesson of Agent Memory and you get a certificate with your name on it. Free, like the course.
- A public page with a certificate ID anyone can check
- Download it as a PDF
- Add it to LinkedIn in one click
Agent Memory, answered.
Is Agent Memory free?
Yes, for everyone: all 8 lessons, 8 quizzes, the capstone brief and the certificate are free, with no card and no trial. The hands-on exercises need the tools listed under Prerequisites.
Do I get a certificate?
Yes. Finish every lesson of Agent Memory and you get a certificate with your name and a certificate ID, on a public page anyone can check. Finishing every course in a learning path earns the path certificate too. You can download each one as a PDF and add it to LinkedIn. They're certificates of completion from the Coders In Hoods AI Academy, not an accredited qualification.
How long does Agent Memory take?
About 20 hours: 2 modules and 8 lessons, at your own pace. Your progress is saved to your account, on every device.
What do I need before I start?
Agent Foundations, especially the lesson on context engineering, or equivalent experience building agents. LLMs for Engineers, the lesson on context windows and caching. Comfortable writing Python and designing database schemas. Helpful: Retrieval and Knowledge Systems, for embeddings, vector search and reranking.
More in Documents, Retrieval and Memory.
- IntermediateDocument AI · Data pipelines
Document Ingestion Pipelines
Turn a case's PDFs, scans, forms and emails into verified, structured, privacy-safe data your agents and search can trust.
8 lessons ~16hFree - AdvancedRetrieval · RAG
Retrieval and Knowledge Systems
Build retrieval your agents can trust over a case's documents and a company's reference library, and measure that it finds what it should.
8 lessons ~24hFree
