module-4
Skill4 starsChanged 6 months agoMITView on GitHub
Teaching instructions for Module 4 (Storage) — use when module_id is module-4
3 other projects use a version of this.
Adopted by
Most recently taken up by
- NVIDIA/nemoclaw-communitytheir own version, first seen Oct 13, 2026
- brevdev/workshop-build-an-agenttheir own version, first seen Oct 9, 2026
- midegdugarova/operating-production-agentstheir own version, first seen Aug 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- brevdev/workshop-build-an-agent★ 156same name
- NVIDIA/nemoclaw-community★ 142same name
- midegdugarova/operating-production-agents★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- python/deep_tutor/AGENTS.mdAGENTS.md
- python/m5/l5/AGENTS.mdAGENTS.md
- python/m6/dacli_tutor/AGENTS.mdAGENTS.md
- typescript/deep_tutor/AGENTS.mdAGENTS.md
- typescript/m5/l5/AGENTS.mdAGENTS.md
- module-1Skill
- module-2Skill
- module-3Skill
- module-4Skill
- module-5Skill
- module-6Skill
- module-1Skill
- module-2Skill
- module-3Skill
- module-5Skill
- module-6Skill
- module-1Skill
- module-1Skill
- module-2Skill
- module-3Skill
- module-4Skill
- module-5Skill
- module-6Skill
- module-1Skill
- module-2Skill
- module-3Skill
- module-4Skill
- module-5Skill
- module-6Skill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Start with the three memory types: each has a different scope and persistence story.
- Very specific: line 19
After the SDK surface is solid, introduce deepagents' BackendProtocol.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Module 4 — Storage
Lesson Title
Memory and Storage in LangGraph Deployments
Goal
Help the student understand the three memory mechanisms in a LangGraph deployment (checkpointer, Store, filesystem), how to read and write the Store from a client, and how deepagents wraps these primitives behind a backend abstraction.
How to run this lesson
- Start with the three memory types: each has a different scope and persistence story. Make sure the student can name them and say what each holds before diving into APIs.
- The checkpointer is automatic — no API to call directly. Mention it but don't dwell.
- The Store is the focus: cross-thread, persistent, namespaced. The SDK's
client.store.put_item / get_item / search_itemsis how the UI reads/writes student profiles. - The filesystem is read-only for runtime data (it's baked into the Docker image), useful for static content like skills and AGENTS.md.
- After the SDK surface is solid, introduce deepagents' BackendProtocol. The same
ls/read/download_filesinterface is implemented by FilesystemBackend, StoreBackend, and StateBackend — swapping backends changes where data lives without changing middleware code. - Reinforce the tutor as a worked example: register/login writes profile + sessions to the Store; the dynamic prompt reads the profile on every model call; skills are loaded from the filesystem by SkillsMiddleware.
Key concepts to cover
- Three memory types: checkpointer (per-thread, automatic), Store (cross-thread, namespaced, persistent), filesystem (read-only at runtime, image-baked)
- Store namespace — a tuple keying into a per-deployment KV space; in deep_tutor it's
(email_with_dot_to_underscore,) - SDK Store API —
put_item,get_item,search_items,delete_item,list_namespaces - The
langgraph_auth_userand theruntime.storeinjection inside graph nodes — direct access, no HTTP - deepagents
BackendProtocol— uniform interface (ls,read,write,download_files) - FilesystemBackend with
virtual_mode=Trueandroot_dir—/skills/maps to<root>/skills/ - StoreBackend — same interface, data lives in the Store instead of disk
- StateBackend — same interface, data lives in agent state (per-thread)
- SkillsMiddleware and MemoryMiddleware — what
create_deep_agentwires up internally - Why skills are read on demand (
read_filetool) instead of all loaded upfront — progressive disclosure for token economy - Why the filesystem is fine for read-only data but problematic for writes — a thread may execute across multiple containers
- Permissions —
FilesystemPermission(operations=["write"], paths=["/skills/**"], mode="deny")keeps the agent from clobbering skill files at runtime
Tone guidance
Concrete and example-driven. The student has already used the SDK in module 2; now we're extending those calls with Store operations. When explaining backends, lead with what changes (where data lives) and what stays the same (the middleware code).
Reference material
Full reference material is in information.md in this directory. Read it before answering factual questions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

