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

    Exercise answers

    • Answer: Inventory the memory of an agent you use
  • 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
CapstoneA memory layer for a 12-week caseReference implementation

Module 1 · How agents remember · Lesson 1

Memory types for agents

Working, 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.

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

By the end of this lesson you can

  • Define working, episodic, semantic and procedural memory in the CoALA sense and name a concrete mechanism for each
  • Classify the facts a long-running case produces by memory type, owner and lifetime
  • Explain why the context window is working memory, not long-term memory, and what that implies for multi-week cases
  • Compare full-history and memory-based designs by tokens per turn, and explain why cost is not the main argument

On this page

  • Intuition: the fee earner's four kinds of knowing
  • The CoALA framework
  • Use the vocabulary only where it decides something
  • From labels to mechanisms
  • The context window is working memory only
  • A worked example: one matter, twelve weeks
  • Full history or memory?
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: the fee earner's four kinds of knowing
  2. 02The CoALA framework
  3. 03From labels to mechanisms
  4. 04The context window is working memory only
  5. 05A worked example: one matter, twelve weeks
  6. 06Misconceptions and limits
  7. 07Connections
  8. 08Summary

Sources & further reading

  • Cognitive Architectures for Language AgentsPaper · Sumers, Yao, Narasimhan, Griffiths · Princeton · 2023The CoALA framework this lesson uses. Read section 4.1 for the four memory types and section 4.5 for learning actions, including the warning that writing to procedural memory is riskier than writing to episodic or semantic memory.
  • MemGPT: Towards LLMs as Operating SystemsPaper · Packer, Wooders, Lin, Fang, Patil, Stoica, Gonzalez · UC Berkeley · 2023The operating-system analogy: main context (prompt tokens) versus recall and archival storage, with the model moving data between them through function calls. Section 2 is the design.
  • Generative Agents: Interactive Simulacra of Human BehaviorPaper · Park, O'Brien, Cai, Morris, Liang, Bernstein · Stanford · 2023The memory stream, retrieval by recency, importance and relevance, and reflection. Section 4 is the most cited memory design in the agent literature; the Write, update and forget lesson uses its decay numbers.
  • A Survey on the Memory Mechanism of Large Language Model based AgentsPaper · Zhang et al. · 2024A broad survey (ACM TOIS) of memory sources, forms and operations. Use sections 4 and 5 as a map of the design space.
  • Memory in the Age of AI AgentsPaper · Hu et al. · 2025The most comprehensive recent survey. Read the introduction for why the field's terminology is fragmented and how it relates memory to RAG and context engineering.
  • Effective context engineering for AI agentsLab research · Anthropic · 2025Context as a finite resource, and structured note-taking ("agentic memory") as one of three techniques for long-horizon work.
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
  • 2 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks