Skip to content
Skill

Claude mem

Persists compressed memory of past sessions so your coding agent recalls prior work

Claude mem is an open-source agent skill for knowledge and memory. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
66
Last commit
License
MIT
Listing updated

Similar skills

About Claude mem

Claude-Mem is a memory layer for coding agents that condenses session transcripts and project context into compact snapshots, so decisions and earlier changes can carry over into later sessions without reloading the full conversation history. The SKILL.md describes a flow where memory is compressed at the end of a session, saved as structured YAML or JSON in a project-level .claude-mem directory, and loaded again when the next session starts.

The skill documents a set of /mem commands for compressing the current session, loading memory, checking status, searching stored entries, forgetting topics and enabling a shared cowork mode where several agents read and write the same store. Behaviour is controlled through a config.json file inside that directory, which sets compression level, entry limits, which categories to keep and whether cowork is on.

Installation is shown through npx or the Claude Code plugin marketplace. The memory store lives in the project folder, so the listing's advice to add it to .gitignore when content is private is worth following. The folder holds the SKILL.md plus one additional file.

When your agent uses it

Persistent memory compression system for Claude Code and AI coding agents. Compresses conversation transcripts, knowledge graphs, and project context into compact memory snapshots that survive across sessions. Use when you want Claude Code to remember previous work, decisions, and context without re-loading full conversation history. Features transcript-based compression, multi-agent memory sharing, team cowork sessions, and cross-tool support (Cursor, Grok, Windsurf, OMP, Hermes, Pi, and more).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (3 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath

Or copy only this skill to ~/.claude/skills/claude-mem:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/claude-mem &&
cp -R "$tmp/.agents/skills/claude-mem" ~/.claude/skills/claude-mem &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/claude-mem inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/claude-mem to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/claude-mem &&
cp -R "$tmp/.agents/skills/claude-mem" ~/.agents/skills/claude-mem &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/claude-mem inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/claude-mem to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/claude-mem &&
cp -R "$tmp/.agents/skills/claude-mem" ~/.cursor/skills/claude-mem &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/claude-mem inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/claude-mem

Or copy the folder to ~/.gemini/skills/claude-mem yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/claude-mem:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/claude-mem &&
cp -R "$tmp/.agents/skills/claude-mem" ~/.copilot/skills/claude-mem &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/claude-mem inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git

Then copy REA_Skill/.agents/skills/claude-mem into your agent's skills folder as claude-mem. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Session transcript compression
Condenses conversation transcripts into compact entries covering decisions, code changes and context.
Cross-session memory loading
Loads stored project memory at the start of a new session so earlier work is available.
Memory search and removal
Lets the agent search stored entries by query and forget specific topics.
Multi-agent cowork sharing
Allows several agents working on one project to read and write a shared memory store.
Configurable memory rules
Uses a config.json file to set compression level, entry limits and which categories are kept.

Good for

  • Pick up yesterday's refactor without re-explaining the decisions made
  • Search project memory for why a particular design choice was made
  • Share context between two agents working on the same codebase
  • Remove outdated notes from the project's stored memory

Claude mem FAQ

How do I install Claude mem?

The SKILL.md shows installation with npx claude-mem install, or by adding the thedotmack/claude-mem marketplace through the Claude Code plugin marketplace.

Where is the memory stored?

Memory is kept in a .claude-mem directory in the project root as structured YAML or JSON.

Can I control what gets remembered?

Yes. A config.json file in the same directory sets the compression level, maximum entries, which categories are included and whether cowork is enabled.

Which tools does Claude mem support?

The description names Claude Code, Cursor, Grok, Windsurf, OMP, Hermes and Pi among others.

How do I install Claude mem in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/claude-mem to use it in all your projects, or to .claude/skills/claude-mem in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

Does Claude mem run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Claude mem?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Claude mem?

The closest alternatives to Claude mem are Compound memory, Memory sync, Learn, Recap and Memory review.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from smartworldarafath/REA_Skill

  1. Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android

    • Open source
    • 66 GitHub stars
    • Developer tools
  2. Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity

    • Open source
    • 66 GitHub stars
    • Developer tools
  3. Compare coding agents head-to-head on your own tasks by pass rate, cost and time

    • Open source
    • 66 GitHub stars
    • Developer tools
  4. Guides an agent to design tool sets, observations and error recovery for better completion

    • Open source
    • 66 GitHub stars
    • Developer tools
  5. Lets an AI agent make x402 payments within per-task budgets and spending policies

    • Open source
    • 66 GitHub stars
    • Finance and payments