# Claude mem

> Claude mem is an open-source agent skill for knowledge and memory. Persists compressed memory of past sessions so your coding agent recalls prior work. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/claude-mem
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** claude-mem
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-01

## About

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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/claude-mem)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/claude-mem)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Compound memory](https://ai-powered.com/skills/compound-memory-protocol-zero-0): Compound memory is an open-source agent skill for knowledge and memory.
- [Memory sync](https://ai-powered.com/skills/memory-sync): Memory sync is an open-source agent skill for knowledge and memory.
- [Learn](https://ai-powered.com/skills/learn): Learn is an open-source agent skill for knowledge and memory.
- [Recap](https://ai-powered.com/skills/recap-onebrain-ai): Recap is an open-source agent skill for knowledge and memory.
- [Memory review](https://ai-powered.com/skills/memory-review): Memory review is an open-source agent skill for knowledge and memory.
- [Memory](https://ai-powered.com/skills/memory-chachamaru127-2): Memory is an open-source agent skill for knowledge and memory.
- [Nemo rl session memory](https://ai-powered.com/skills/nemo-rl-session-memory): Nemo rl session memory is an open-source agent skill for knowledge and memory.
- [Memory merger](https://ai-powered.com/skills/memory-merger): Memory merger is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/claude-mem-smartworldarafath
