Deep Agents Memory
INVOKE THIS SKILL when your Deep Agent needs memory, persistence, or filesystem access. Covers StateBackend (ephemeral), StoreBackend (persistent), FilesystemMiddleware, and CompositeBackend for routing.
- Type
- Skill
- Author
- langchain-ai
- Category
- AI Agents
- GitHub stars
- 1.3K
- Installs
- 19.1K
- Last updated
- October 29, 2026
Install
npx skills add https://github.com/langchain-ai/langchain-skills --skill deep-agents-memoryUse cases
- Persist agent state across sessions with StoreBackend instead of losing it when the process ends.
- Read and write files from inside a Deep Agent using FilesystemMiddleware.
- Route some paths to ephemeral StateBackend and others to persistent StoreBackend with CompositeBackend.
Frequently Asked Questions
What is the difference between StateBackend and StoreBackend?
StateBackend is ephemeral, while StoreBackend is persistent, so you pick based on whether the data should survive the session.
How does an agent get filesystem access?
The skill covers FilesystemMiddleware alongside the memory backends for reading and writing files.
When would I use CompositeBackend?
When you need to route between backends, for example keeping some state ephemeral while other state persists.
About this skill
Provides memory, persistence, and filesystem access for Deep Agents, covering the ephemeral StateBackend, the persistent StoreBackend, FilesystemMiddleware, and CompositeBackend for routing between them. Invoke it when an agent needs to retain state or read and write files across a session. It's part of LangChain's Deep Agents toolset.
Summary written with AI assistance from the project's public description.
More from langchain-ai
Langgraph Fundamentals
INVOKE THIS SKILL when writing ANY LangGraph code. Covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error hand...
by langchain-ai
Langgraph Persistence
INVOKE THIS SKILL when your LangGraph needs to persist state, remember conversations, travel through history, or configure subgraph checkpointer sc...
by langchain-ai
Langchain Rag
INVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system. Covers document loaders, RecursiveCharacterTextSplitter, embedding...
by langchain-ai
Langchain Fundamentals
Create LangChain agents with create_agent, define tools, and use middleware for human-in-the-loop and error handling.
by langchain-ai
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh