claude-mem: Instructions file for Claude Code

CLAUDE.md

claude-mem CLAUDE.md is an instructions file for Claude Code from thedotmack/claude-mem. It costs 38 tokens per session, scanned A, original, Apache-2.0.

A project instruction file describing how Claude-Mem is built, where its files are stored, and what software it requires.

In plain words
What is it for?
It helps with building, documenting, and maintaining Claude-Mem.
Why use it?
It gives the coding agent the project rules and locations it needs to work on the add-on correctly.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions AGENTS.md.

This is thedotmack/claude-mem's own configuration. It tells Claude Code how to work on claude-mem itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-mem configures →

About the project

Claude-Mem, now presented as Grok Mem, records an agent's work, compresses it with AI, and brings relevant notes into later sessions so the agent can remember decisions and next steps. It is intended for persistent context across agent conversations and supports multiple coding-agent environments. The catalogue add-ons provide the workflows and integrations used to operate this memory system.

thedotmack/claude-mem · 120,667 stars · on GitHub · claude-mem.ai

Reuse

Borrowing it

Nothing to install: this file belongs to thedotmack/claude-mem. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/thedotmack/claude-mem/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/thedotmack/claude-mem

Made for: Claude Code.

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 claude-mem CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/thedotmack/claude-mem/claude-md/github.svg)](https://agentmods.dev/instructions/thedotmack/claude-mem/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/thedotmack/claude-mem/claude-md"><img src="https://agentmods.dev/badge/instructions/thedotmack/claude-mem/claude-md/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 claude-mem CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/thedotmack/claude-mem/claude-md"><img src="https://agentmods.dev/badge/instructions/thedotmack/claude-mem/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 This file is loaded in full into every session.
When invoked 38 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00038 $0.00038
Opus 5.5 $0.00015 $0.00015
Sonnet 5.5 $0.00008 $0.00008
Haiku 4.5 $0.00004 $0.00004

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

Security

Grade A, and why

claude-mem CLAUDE.md 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 23d 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.

CLAUDE.md · 7 lines

What it actually says

Claude-Mem development

@AGENTS.md

Before changing capture, retries, or recovery, follow the canonical observer lifecycle contract.

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. 23d ago Changed · -35 lines · -458 tokens per session e9554bcd58fc
  2. 1mo ago Changed · +4 lines · +161 tokens per session ab16d95bcf98
  3. 1mo ago Changed · +4 lines · +64 tokens per session 9040ee698432
  4. 3mo ago First seen · 34 lines · 271 tokens per session scan A e3092317cf68

Subscribe to this mod's changes

claude-mem CLAUDE.md is an instructions file published in the GitHub repository thedotmack/claude-mem (120,667 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

claude-mem CLAUDE.md compared with instructions from other repositories

claude-mem CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-mem CLAUDE.mdthedotmack/claude-memInstructions file121ktodayApache-2.0A38Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode