New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Explains how claude-mem records session observations, injects memory, and stores data locally.

skills.sh installs
5.6K
GitHub stars
118.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers how a second observer agent writes observations and session summaries that carry context into the next session
  • Includes the injection timing (from the second session in a project) and optional /learn-codebase to seed memory in one pass
  • Specifies local storage in ~/.claude-mem and that npx claude-mem uninstall removes it
  • Designed for users who want to know what data leaves the machine, which model sees it, and how to disable telemetry

Install

$ npx -y skills add thedotmack/claude-mem --skill how-it-works -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

How claude-mem works

What it does

While you work, an observer (a second agent) watches what your agent reads, edits and runs, and writes short notes about what mattered. Those notes are called observations. When a session ends, the observer writes a summary. When the next session starts, your agent gets a compact index of the observations that matter for this project and fetches full details only when it needs them.

So the next session starts where the last one left off: no re-explaining the codebase, no re-discovering decisions.

When it kicks in

Memory injection starts on your second session in a project.

The first session seeds memory as you work. To front-load a whole repo in one pass instead, run /learn-codebase (~5 minutes on a typical repo, optional).

Where data lives

Your memory lives in ~/.claude-mem on this machine: the SQLite database, vector index, logs and settings. npx claude-mem uninstall removes it.

What leaves the machine:

Details

Repository
github.com/thedotmack/claude-mem
Category
Memory & Context
First seen
May 16, 2026

More from thedotmack/claude-mem

All 18

Similar to How It Works

More Memory & Context