deep-agents-memory

Route agent memory operations across ephemeral and persistent storage backends.

2|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/jxtngx/dgx-lab --skill deep-agents-memory-jxtngx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deep-agents-memory
Source: https://github.com/jxtngx/dgx-lab/tree/main/.cursor/skills/deep-agents-memory
Command: npx skills add https://github.com/jxtngx/dgx-lab --skill deep-agents-memory-jxtngx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires deepagents, @langchain/langgraph.

What problem does it solve?

This skill solves the challenge of managing agent memory and file access by providing a structured way to handle ephemeral state, persistent long-term storage, and secure filesystem interactions.

Core Features & Use Cases

  • Flexible Backend Routing: Use CompositeBackend to intelligently route file operations between ephemeral memory and persistent storage.
  • Cross-Session Persistence: Implement StoreBackend to ensure agent data survives across different threads and sessions.
  • Secure Filesystem Access: Utilize FilesystemBackend with virtual mode to safely interact with local disk resources during development.

Quick Start

Configure the agent to use a CompositeBackend that routes all files under the memories directory to a persistent StoreBackend.

Frequently Asked Questions about deep-agents-memory

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

FAQPage Schema
How do I persist agent memory across different LangGraph sessions?

To persist agent memory across different LangGraph sessions, you can implement a StoreBackend. This ensures that your agent data and state survive across different threads and sessions within your multi-thread agent workflows.

What is the best way to manage both ephemeral state and persistent file storage for agents?

The best way to manage both ephemeral state and persistent file storage is by using a CompositeBackend. It intelligently routes file operations between ephemeral memory and persistent storage based on your specific routing scenarios.

Can I securely access the local filesystem during agent development?

Yes, you can securely access the local filesystem during agent development by utilizing a FilesystemBackend. You should configure it with virtual mode to safely interact with local disk resources without risking unauthorized modifications.

Does this approach require specific dependencies for LangGraph storage?

Yes, this approach requires specific dependencies for LangGraph storage. You must integrate with LangGraph storage primitives and have the deepagents and langgraph libraries installed to configure the backend architectures properly.

When should I route file operations to ephemeral memory instead of persistent storage?

You should route file operations to ephemeral memory instead of persistent storage for temporary state needs. Use CompositeBackend to route files under specific directories, like memories, to persistent StoreBackend while keeping others ephemeral.