deep-agents-memory

Configure Deep Agents with pluggable memory backends and filesystem middleware.

Updated May 29, 2026
One-click install
npx skills add https://github.com/patorn/langgraph-template --skill deep-agents-memory-patorn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deep-agents-memory
Source: https://github.com/patorn/langgraph-template/tree/main/.agents/skills/deep-agents-memory
Command: npx skills add https://github.com/patorn/langgraph-template --skill deep-agents-memory-patorn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deep Agents need a robust memory and persistence layer to manage ephemeral and long-lived data across threads and sessions. This skill provides pluggable backends (StateBackend, StoreBackend, and CompositeBackend) and a filesystem middleware to control file I/O, enabling flexible memory routing and persistence.

Core Features & Use Cases

  • Ephemeral state support via StateBackend for fast, in-memory per-thread data.
  • Persistent storage via StoreBackend for cross-session memory and durable files.
  • Hybrid routing with CompositeBackend to mix ephemeral and persistent backends.
  • FilesystemMiddleware utilities for ls, read_file, write_file, edit_file, glob, and grep for file operations.

Quick Start

Configure a deep agent to use ephemeral, persistent, or hybrid memory storage.

Frequently Asked Questions about deep-agents-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add persistent memory to backend agents for cross-session workflows?

Add persistent memory to backend agents by configuring a StoreBackend, which provides cross-session memory routing and durable file storage for long-running agent workflows.

What is the best way to combine ephemeral and persistent memory in agent routing?

Combine ephemeral and persistent memory in agent routing by using a CompositeBackend, which mixes fast in-memory per-thread state with durable cross-session storage.

How do I configure filesystem access for memory-aware agents?

Configure filesystem access for memory-aware agents using FilesystemMiddleware, enabling ls, read_file, write_file, edit_file, glob, and grep operations with defined safety constraints.

When do I need ephemeral per-thread memory versus persistent storage for agents?

Use ephemeral per-thread memory via StateBackend for fast, temporary data within a single thread, and use persistent storage for durable data that must survive across multiple sessions.

Does deep-agents-memory support hybrid routing for long-running agent workflows?

Yes, hybrid routing is supported through the CompositeBackend, allowing long-running agent workflows to simultaneously leverage both ephemeral state and persistent storage backends.