deep-agents-memory

Persist memory and filesystem access for Deep Agents via CompositeBackend routing.

Updated Nov 16, 2025
One-click install
npx skills add https://github.com/daniel-dihardja/menuyukti --skill deep-agents-memory-daniel-dihardja
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deep-agents-memory
Source: https://github.com/daniel-dihardja/menuyukti/tree/main/.agents/skills/deep-agents-memory
Command: npx skills add https://github.com/daniel-dihardja/menuyukti --skill deep-agents-memory-daniel-dihardja

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deep Agents need a reliable way to store transient and persistent state, enabling memory and filesystem access across runs and threads.

Core Features & Use Cases

  • StateBackend provides ephemeral per-thread memory.
  • StoreBackend offers long-term persistence across sessions.
  • CompositeBackend enables hybrid routing to combine backends.
  • FilesystemMiddleware exposes ls, read_file, write_file, edit_file, glob, and grep for on-demand file operations.

Quick Start

Invoke this skill to configure a persistent memory store with a CompositeBackend and use it from your Deep Agent.

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 Deep Agent memory across multiple sessions?

To persist Deep Agent memory across sessions, you need a backend that stores long-term state. This skill provides a StoreBackend specifically designed to maintain memory and filesystem access continuity between independent agent runs and threads.

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

The best way to manage mixed agent state is using a CompositeBackend for hybrid routing. It combines StateBackend for ephemeral per-thread memory with StoreBackend for cross-session persistence within a single configuration.

How do I give an AI agent filesystem access to read and write files?

You give an agent filesystem access by integrating FilesystemMiddleware. It exposes file operations like ls, read_file, write_file, edit_file, glob, and grep, enabling on-demand file manipulation during agent execution.

Can I restrict agent filesystem access to a specific root directory?

Yes, you can restrict agent filesystem access to a specific root directory. The backend configuration enforces root-dir restrictions and routing rules, ensuring agents only operate within allowed path boundaries.

Does this memory backend support human-in-the-loop controls?

Yes, the memory backend supports optional human-in-the-loop controls. Alongside enforcing backend configuration and routing rules, it allows you to integrate manual oversight into the agent's state and file operations.

Why does my agent lose its memory state when a new thread starts?

Your agent loses memory because it lacks cross-session persistence and is using ephemeral per-thread state. You need to configure a StoreBackend or CompositeBackend to route memory data to a persistent storage layer.