Index of every page on this site: llms.txt
All skills
langchain-ai avatar

/deep-agents-memory

@7a385cd official
Run it yourself

Retired skill, replaced by `langchain-build-agent`. Use for Deep Agents memory, filesystem backends, and stores: it tells you to switch to `langchain-build-agent`.

Use this Skill: https://skilld.dev/gh/langchain-ai/langchain-skills/deep-agents-memory

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈46 tokens for metadata: the name and description. ≈119 when used: this file.

Description uses 2.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈184 characters, or 2.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

deep-agents-memory (retired)

deep-agents-memory was retired from langchain-skills. Use the langchain-build-agent skill instead.

  1. If langchain-build-agent is available, use it for this task.

  2. Otherwise, install it, then use it:

    npx skills add langchain-ai/langchain-skills --skill langchain-build-agent --yes
  3. Tell the user that deep-agents-memory is retired and that they can remove it with npx skills remove deep-agents-memory.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1d5 checks · Risk SAFE
  • Gen Agent Trust Hub1d

    This skill serves as a migration guide for a retired component. It contains a command to install its successor skill, which is a standard procedure for updating tools from this provider. See detailed analysis for context.

  • Socket1d

    No alerts

  • Snyk1d

    Risk: MEDIUM · 1 issue

  • Runlayer8mo

    1/1 file flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 7a385cd. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated yesterday
metadata
{
  "internal": "true"
}
  • Python
  • TypeScript
  • deep-agents
  • langchain
  • memory
  • persistence
  • statebackend
  • storebackend
  • filesystem

README badge

README badge for langchain-ai/langchain-skills/deep-agents-memory

Configures memory and file persistence for Deep Agents using pluggable backends: StateBackend for thread-scoped ephemeral storage, StoreBackend for cross-session persistence, and CompositeBackend to route different paths to different backends. Provides filesystem tools (ls, read_file, write_file, edit_file, glob, grep) and integrates with LangGraph's store layer for long-term memory across agent invocations.

Generated from the current SKILL.md.

What's the difference between StateBackend and StoreBackend?
StateBackend stores files ephemerally within a single thread and loses them when the thread ends. StoreBackend persists files across threads and sessions, making it suitable for cross-session memory.
How do I make files persist across different agent invocations?
Use CompositeBackend to route paths to StoreBackend (e.g., `/memories/` prefix), or use StoreBackend directly. You must also pass a store instance (InMemoryStore or PostgresStore) to the agent.
Can I use FilesystemBackend in production?
No. FilesystemBackend is for local development only. Never use it in web servers due to security risks; use StateBackend or a sandboxed environment instead.
What file tools does FilesystemMiddleware provide?
The middleware provides ls, read_file, write_file, edit_file, glob, and grep tools for the agent to interact with files.
What store should I use in production?
Use PostgresStore with a connection string instead of InMemoryStore, which loses all data on restart.

Generated from the current SKILL.md. These answers refresh after source changes.