Teaching instructions for Module 4 (Storage) — use when module_id is module-4
npx skills add https://github.com/langchain-ai/lca-deployment --skill module-4
Memory and Storage in LangGraph Deployments
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.
client.store.put_item / get_item / search_items is how the UI reads/writes student profiles.ls/read/download_files interface is implemented by FilesystemBackend, StoreBackend, and StateBackend — swapping backends changes where data lives without changing middleware code.(email_with_dot_to_underscore,)put_item, get_item, search_items, delete_item, list_namespaceslanggraph_auth_user and the runtime.store injection inside graph nodes — direct access, no HTTPBackendProtocol — uniform interface (ls, read, write, download_files)virtual_mode=True and root_dir — /skills/ maps to <root>/skills/create_deep_agent wires up internally10. Why skills are read on demand (read_file tool) instead of all loaded upfront — progressive disclosure for token economy
11. Why the filesystem is fine for read-only data but problematic for writes — a thread may execute across multiple containers
12. Permissions — FilesystemPermission(operations=["write"], paths=["/skills/**"], mode="deny") keeps the agent from clobbering skill files at runtime
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).
Full reference material is in information.md in this directory. Read it before answering factual questions.
Take langchain-ai/module-4 from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.