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

    Exercise answers

    • Answer: Build and attack a per-matter memory-tool handler
    • Answer: Write a skill that survives compaction
  • 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 3

Files, skills and memory tools

Memory 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.

75 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvGet an OpenRouter keyLocal models with Ollama

By the end of this lesson you can

  • Explain how Claude Code loads CLAUDE.md, rules and auto memory, and decide what belongs in each
  • Treat skills as procedural memory, and compute what progressive disclosure and post-compaction re-attachment cost in tokens
  • Implement a memory-tool handler that maps /memories to per-case storage and rejects path traversal
  • Configure Managed Agents memory stores with the right access mode, and use versions and redaction for audit and erasure
  • Choose between CLAUDE.md, skills, the memory tool and memory stores for a given piece of knowledge

On this page

  • Intuition: the office manual, the sticky notes and the matter file
  • CLAUDE.md: memory you write
  • Auto memory: memory Claude writes about you
  • Skills: procedural memory on demand
  • A worked example: what procedural memory costs
  • The memory tool: memory you host
  • Managed Agents memory stores: memory Anthropic hosts
  • Choosing a mechanism
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: the office manual, the sticky notes and the matter file
  2. 02CLAUDE.md: memory you write
  3. 03Auto memory: memory Claude writes about you
  4. 04Skills: procedural memory on demand
  5. 05The memory tool: memory you host
  6. 06Managed Agents memory stores: memory Anthropic hosts
  7. 07Misconceptions and limits
  8. 08Connections
  9. 09Summary

Sources & further reading

  • Voyager: An Open-Ended Embodied Agent with Large Language ModelsPaper · Wang et al. · NVIDIA, Caltech · 2023The best-known agent that writes its own procedural memory: an ever-growing library of verified code skills, retrieved by description. Read section 2.2 for the skill library and section 2.3 for the self-verification step that gates what gets added.
  • Cognitive Architectures for Language AgentsPaper · Sumers, Yao, Narasimhan, Griffiths · 2023Section 4.1 on procedural memory as prompts and code, and section 4.5 on why agent-written procedures need more caution than agent-written facts.
  • How Claude remembers your project (Claude Code docs)Docs · AnthropicCLAUDE.md locations and load order, imports, path-scoped rules, and auto memory: its four note types, the MEMORY.md index and its 200-line or 25KB load limit.
  • Skills (Claude Code docs)Docs · AnthropicSKILL.md frontmatter, progressive disclosure, the 1,536-character listing cap, where skills live, and how invoked skills are re-attached after compaction.
  • Memory tool (Claude API docs)Docs · AnthropicThe client-side memory_20250818 tool: its six commands, the system prompt the API adds, security considerations including path traversal, and the multi-session pattern.
  • Using agent memory (Managed Agents docs)Docs · AnthropicMemory stores mounted under /mnt/memory, read_only versus read_write and the prompt-injection warning, limits, content_sha256 preconditions, versions and redaction.
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.

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