readingmemoryplan

Plan: “Agent Memory, Made Clear” — a product-grade mini-course

Goal: after reading this series, you can launch a product around agentic/LLM memory — you understand every memory type, every storage and retrieval choice, how the leading systems work internally, how to optimize cost/latency, how to evaluate, and how to defend against attacks.

Style: same as the scaling/ series — every sentence clear, nothing assumed, each part ~5-8 min, built strictly on the parts before it.

Research inputs (done before writing)

The blogs (13 parts + README + map)

# File Teaches
1 01-why-agents-need-memory.md LLMs are stateless (the goldfish problem); weights vs context vs external store; what breaks without memory
2 02-working-memory-the-context-window.md The context window as working memory; why “just use a bigger context” fails (cost, context rot)
3 03-the-four-types-of-memory.md The full taxonomy: working / episodic / semantic / procedural, with one running example
4 04-episodic-memory.md Storing experiences; raw logs vs summaries; reflection; learning from past successes/failures
5 05-semantic-memory.md Facts and profiles; extraction; profile-vs-collection; knowledge triplets; updating and contradictions
6 06-procedural-memory.md Skills, instructions, self-edited prompts; CLAUDE.md; skill libraries; lessons-learned loops
7 07-how-memories-are-stored.md The four substrates: files, vector DB (embeddings explained from zero), knowledge graph, SQL; hybrid
8 08-how-memories-are-retrieved.md The read path: when to retrieve, query building, scoring (similarity+recency+importance), reranking, injection
9 09-writing-consolidating-forgetting.md The write path: what to save, hot-path vs background, ADD/UPDATE/DELETE/NOOP, dedup, decay, eviction, sleep-time compute
10 10-how-modern-systems-do-it.md Case studies: MemGPT/Letta, Mem0, Zep/Graphiti, LangGraph/LangMem, ChatGPT & Claude memory, Claude Code
11 11-context-engineering-and-optimization.md Compaction, note-taking, sub-agents, token budgets, prompt caching, the cost math of memory
12 12-evaluating-and-securing-memory.md Benchmarks (LoCoMo, LongMemEval, BEAM), metrics, failure modes, memory poisoning + defenses, privacy
13 13-build-your-own-memory-product.md The blueprint: minimal viable memory → advanced roadmap; architecture; decision checklists; pitfalls

Plus:

Product-coverage checklist (what “launchable” means)