claude-mem

claude-mem is a skill for Claude Code from mnzralee/claude-multi-agent-architecture. It costs 159 tokens per session (1,683 once invoked), scanned A, original, MIT.

A persistent project-memory system built around a PROJECTCONTEXT.md file in the repository. It records the project’s purpose, technology choices, commands, file map, decisions, current state, and next steps across coding sessions.

In plain words
What is it for?
Use it to keep a repository’s current context up to date, including work records, mistakes to avoid, and the next tasks to continue.
Why use it?
It prevents each new session from starting with no knowledge of earlier decisions, failed approaches, or unfinished work. A short shared file makes the project context available to both people and agents.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions Claude Code.

Part of the claude-multi-agent-architecture plugin — 23 skills, 19 agents, 4 hooks shipped together

Good fit Use it to keep a repository’s current context up to date, including work records, mistakes to avoid, and the next tasks to continue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mnzralee/claude-multi-agent-architecture/claude-mem
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 mnzralee/claude-multi-agent-architecture --skill claude-mem
Clone the repo
git clone --depth 1 https://github.com/mnzralee/claude-multi-agent-architecture

Made for: Claude Code.

Or install claude-multi-agent-architecture, the plugin that ships this one along with the rest of its 23 skills, 19 agents, 4 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mnzralee/claude-multi-agent-architecture/claude-mem"><img src="https://agentmods.dev/badge/skills/mnzralee/claude-multi-agent-architecture/claude-mem.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,683 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 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.00159 $0.01683
Opus 5.5 $0.00064 $0.00673
Sonnet 5.5 $0.00032 $0.00337
Haiku 4.5 $0.00016 $0.00168

Measured 5d ago against content hash e64192d1bd9e, 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 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 5d 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/skills/claude-mem/SKILL.md · 126 lines

How it starts

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

Claude-mem: persistent project memory

You are the project's chief of staff. Every session starts cold, with no memory of yesterday's decisions, last week's dead ends, or the folder somebody renamed. Your job is to make the next session start warm, by keeping one short, true, current file that any agent or person can read in two minutes.

Input: $ARGUMENTS

The problem this fixes

Without it, every session rediscovers the stack, relitigates settled decisions, and proposes again the approach that was already tried and rejected. Work done in one session is invisible to the next. Notes, when they exist at all, are scattered through chat history nobody can search.

Where it sits among the memory layers

Layer Scope Holds Lifecycle
PROJECT_CONTEXT.md (this skill) One repo, committed Current state: what this is, how it is built, what is decided, what is next Rewritten as a snapshot
Work records (docs/workrecords/) One repo, per day The story of what happened and why Append-only journal
mistakes.log (napkin) One repo Errors made and the rule that prevents each Append-only
Claude's own memory One user, private Preferences and facts about the user Managed by Claude Code

Do not duplicate across layers. PROJECT_CONTEXT.md links to the others; it never copies them.

Rules

  1. Read first. At the start of work in a repo, read PROJECT_CONTEXT.md if it exists, before proposing anything. Treat its Decisions section as settled unless the user reopens one.
  2. Update at the end of every session that changed something: code, a decision, the file layout or the plan. Also update right after a decision is locked mid-session, so it survives a crash or a context reset. A session that changed nothing leaves the file alone.
  3. Snapshot, not diary. Rewrite Current State, File Map and Next Steps to describe now; do not append to them. History lives in git and the work records.
  4. Decisions are append-only. Each locked decision gets one dated line with its reason. A reversed decision is never deleted: mark it SUPERSEDED YYYY-MM-DD by D-NNN and add the new line.
  5. Verify before you write. Every path in the File Map exists (ls it), every command is one that runs, every "done" in Current State points at evidence (a commit, a passing test). Never record intent as fact.
  6. Stay under 150 lines. Past that, compress: drop finished next steps, collapse the File Map to directories, move narrative to the work record. Short enough that reading it is never skipped.
  7. Never store secrets. No tokens, passwords, keys, connection strings or personal data. Name where a secret lives (.env, the vault), never its value.

Read the full file on GitHub · 126 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. 5d ago First seen · 126 lines · 159 tokens per session scan A e64192d1bd9e

Subscribe to this mod's changes

claude-mem is a skill published in the GitHub repository mnzralee/claude-multi-agent-architecture (9 stars, last pushed 5d ago), licensed MIT. It adds 159 tokens to every session and 1,683 once invoked, about $0.0006 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-11-29.

Related

claude-mem compared with skills from other repositories

claude-mem next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-memmnzralee/claude-multi-agent-architectureSkill95d agoMITA159Claude Code
compact-s0fuk/OpenACCPSkill21mo agoMITA120Claude Code
mem0-integrationa5c-ai/babysitterSkill1.9k1mo agoMITA27Claude Code
moai-foundation-contextmodu-ai/moai-adkSkill1.3ktodayApache-2.0A41Claude Code
knowledge-graph-managementa5c-ai/babysitterSkill1.9k1mo agoMITA22Claude Code
langchain-memorya5c-ai/babysitterSkill1.9k1mo agoMITA21Claude Code
memory-summarizationa5c-ai/babysitterSkill1.9k1mo agoMITA14Claude Code