deep-agents-memory

deep-agents-memory is a skill for Claude Code, Codex from akillness/jeo-skills. It costs 46 tokens per session (2,359 once invoked), scanned A, a copy of deep-agents-memory, MIT.

A set of instructions for giving a Deep Agent memory that can last between tasks and access to files. It covers temporary state, saved data, file access, and routing between these storage types.

In plain words
What is it for?
Use it to add short-lived or persistent memory and filesystem access to a Deep Agent application.
Why use it?
It removes the need to design storage and file access from scratch when building an agent that must remember information or work with files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add short-lived or persistent memory and filesystem access to a Deep Agent application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/akillness/jeo-skills/deep-agents-memory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add akillness/jeo-skills --skill deep-agents-memory
Clone the repo
git clone --depth 1 https://github.com/akillness/jeo-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deep-agents-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/akillness/jeo-skills/deep-agents-memory/github.svg)](https://agentmods.dev/skills/akillness/jeo-skills/deep-agents-memory)
Your own site
<a href="https://agentmods.dev/skills/akillness/jeo-skills/deep-agents-memory"><img src="https://agentmods.dev/badge/skills/akillness/jeo-skills/deep-agents-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deep-agents-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/akillness/jeo-skills/deep-agents-memory"><img src="https://agentmods.dev/badge/skills/akillness/jeo-skills/deep-agents-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,359 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.02359
Opus 5.5 $0.00018 $0.00944
Sonnet 5.5 $0.00009 $0.00472
Haiku 4.5 $0.00005 $0.00236

Measured 2mo ago against content hash 3549b750ca96, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deep-agents-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to deep-agents-memory — 324 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agent-skills/deep-agents-memory/SKILL.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Short-term (StateBackend): Persists within a single thread, lost when thread ends Long-term (StoreBackend): Persists across threads and sessions Hybrid (CompositeBackend): Route different paths to different backends

FilesystemMiddleware provides tools: ls, read_file, write_file, edit_file, glob, grep

Use Case Backend Why
Temporary working files StateBackend Default, no setup
Local development CLI FilesystemBackend Direct disk access
Cross-session memory StoreBackend Persists across threads
Hybrid storage CompositeBackend Mix ephemeral + persistent
from deepagents import create_deep_agent

agent = create_deep_agent()  # Default: StateBackend
result = agent.invoke({
    "messages": [{"role": "user", "content": "Write notes to /draft.txt"}]
}, config={"configurable": {"thread_id": "thread-1"}})
# /draft.txt is lost when thread ends
import { createDeepAgent } from "deepagents";

const agent = await createDeepAgent();  // Default: StateBackend
const result = await agent.invoke({
  messages: [{ role: "user", content: "Write notes to /draft.txt" }]
}, { configurable: { thread_id: "thread-1" } });
// /draft.txt is lost when thread ends
from deepagents import create_deep_agent
from deepagents.backends import CompositeBackend, StateBackend, StoreBackend
from langgraph.store.memory import InMemoryStore

store = InMemoryStore()

composite_backend = lambda rt: CompositeBackend(
    default=StateBackend(rt),
    routes={"/memories/": StoreBackend(rt)}
)

agent = create_deep_agent(backend=composite_backend, store=store)

# /draft.txt -> ephemeral (StateBackend)
# /memories/user-prefs.txt -> persistent (StoreBackend)
import { createDeepAgent, CompositeBackend, StateBackend, StoreBackend } from "deepagents";
import { InMemoryStore } from "@langchain/langgraph";

const store = new InMemoryStore();

const agent = await createDeepAgent({
  backend: (config) => new CompositeBackend(
    new StateBackend(config),
    { "/memories/": new StoreBackend(config) }
  ),
  store
});

// /draft.txt -> ephemeral (StateBackend)
// /memories/user-prefs.txt -> persistent (StoreBackend)
# Using CompositeBackend from previous example
config1 = {"configurable": {"thread_id": "thread-1"}}
agent.invoke({"messages": [{"role": "user", "content": "Save to /memories/style.txt"}]}, config=config1)

config2 = {"configurable": {"thread_id": "thread-2"}}
agent.invoke({"messages": [{"role": "user", "content": "Read /memories/style.txt"}]}, config=config2)
# Thread 2 can read file saved by Thread 1
// Using CompositeBackend from previous example
const config1 = { configurable: { thread_id: "thread-1" } };
await agent.invoke({ messages: [{ role: "user", content: "Save to /memories/style.txt" }] }, config1);

const config2 = { configurable: { thread_id: "thread-2" } };
await agent.invoke({ messages: [{ role: "user", content: "Read /memories/style.txt" }] }, config2);
// Thread 2 can read file saved by Thread 1

Read the full file on GitHub · 321 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 321 lines · 46 tokens per session scan A 3549b750ca96

Subscribe to this mod's changes

deep-agents-memory is a skill published in the GitHub repository akillness/jeo-skills (63 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 2,359 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to deep-agents-memory, differing in 324 lines, and is treated as a copy.

Related

deep-agents-memory compared with skills from other repositories

deep-agents-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deep-agents-memoryakillness/jeo-skillsSkill63yesterdayMITA46Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill396ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k5d agoApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k14d agoMITA184Claude Code
memoryopensquilla/opensquillaSkill7.2k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex