
How It Works
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
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-codebaseto seed memory in one pass - Specifies local storage in
~/.claude-memand thatnpx claude-mem uninstallremoves 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 -yInstalls 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 18Similar to How It Works
More Memory & Context
Mneme MemoryMCP serverslow-stack252 starsPersistent cross-session memory for AI coding agents, stored in a local SQLite database.
agent-memorySkillapi/git1.1K installsGives your Claude Code agent persistent memory across conversations. The repository doesn't include documentation, but the premise is straightforward: it stores
knowledge-agentSkillthedotmack/claude-mem6.2K installsCompile focused AI knowledge bases from claude-mem observations and query them conversationally.
claude-history-ingestSkillar9av/obsidian-wiki3K installsDistills Claude Code and Claude desktop session history into the Obsidian wiki for knowledge extraction.
nemo-rl-session-memorySkillnvidia/skills2.1K installsPersistent working-session memory that lets coding agents checkpoint and resume after disconnects or handoffs.