memory

memory is a skill for Claude Code, Codex from saolalab/clawforce. It costs 11 tokens per session (223 once invoked), scanned A, a copy of memory, Apache-2.0.

A two-level memory system for an agent: one file stores lasting facts, while another keeps a searchable history of past events.

In plain words
What is it for?
Use it to store user preferences, project details, and relationships, then search previous events with text matching.
Why use it?
It helps the agent retain important project context and find older information instead of relying only on the current conversation.

Skill for Claude CodeCodex

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

Good fit Use it to store user preferences, project details, and relationships, then search previous events with text matching.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saolalab/clawforce/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 saolalab/clawforce --skill memory
Clone the repo
git clone --depth 1 https://github.com/saolalab/clawforce

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 memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/saolalab/clawforce/memory/github.svg)](https://agentmods.dev/skills/saolalab/clawforce/memory)
Your own site
<a href="https://agentmods.dev/skills/saolalab/clawforce/memory"><img src="https://agentmods.dev/badge/skills/saolalab/clawforce/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 memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/saolalab/clawforce/memory"><img src="https://agentmods.dev/badge/skills/saolalab/clawforce/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 223 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 84% 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.00011 $0.00223
Opus 5.5 $0.00004 $0.00089
Sonnet 5.5 $0.00002 $0.00045
Haiku 4.5 $0.00001 $0.00022

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

Security

Grade A, and why

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 1mo 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

84% identical to memory — 8 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.

clawbot/skills/memory/SKILL.md · 32 lines

What it actually says

Memory

Structure

  • .agents/memory/MEMORY.md — Long-term facts (preferences, project context, relationships). Always loaded into your context.
  • .agents/memory/HISTORY.md — Append-only event log. NOT loaded into context. Search it with grep.

Search Past Events

grep -i "keyword" .agents/memory/HISTORY.md

Use the exec tool to run grep. Combine patterns: grep -iE "meeting|deadline" .agents/memory/HISTORY.md

When to Update MEMORY.md

Write important facts immediately using edit_file or write_file:

  • User preferences ("I prefer dark mode")
  • Project context ("The API uses OAuth2")
  • Relationships ("Alice is the project lead")

Auto-consolidation

Old conversations are automatically summarized and appended to HISTORY.md when the session grows large. Long-term facts are extracted to MEMORY.md. You don't need to manage this.

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. 1mo ago First seen · 32 lines · 11 tokens per session scan A e0b49bb2e0a9

Subscribe to this mod's changes

memory is a skill published in the GitHub repository saolalab/clawforce (38 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 11 tokens to every session and 223 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 84% identical to memory, differing in 8 lines, and is treated as a copy.

Related

Other skills, from other repositories

add-compact

Add /compact command for manual context compaction. Solves context rot in long sessions by forwarding the SDK's built-in /compact slash command. Main-group or trusted sender only.

sbusso/claudeclaw · 40 tokens

add-qmd

Add QMD (Query Markup Documents) as an advanced memory search backend. Upgrades the built-in grep-based memorysearch with hybrid BM25 + vector semantic search + LLM re-ranking. Fully local, no API keys needed. Triggers on "add qmd", "qmd memory", "semantic memory search", "upgrade memory".

sbusso/claudeclaw · 73 tokens

obsidian-pro

Advanced Obsidian knowledge management using callouts, properties, and wikilinks. Aligned with the Gold Standard.

turmyshevd/openclawgotchi · 28 tokens

vault-memory

Treat the Obsidian vault as operational memory, not just note storage. Focus on retrieval quality, metadata integrity, and safe consolidation.

turmyshevd/openclawgotchi · 30 tokens

self-improvement

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge…

InternLM/WildClawBench · 102 tokens

LangGraph Persistence & Memory

INVOKE THIS SKILL when your LangGraph needs to remember state across calls, use memory, or persist conversations. Covers checkpointers (MemorySaver, Postgres), threadid configuration, and Store for long-term memory.

jackjin1997/ClawForge · 52 tokens