This shows you exactly what claude-mem is doing under the hood: capturing compressed observations from every Read, Edit, and Bash command, then auto-injecting relevant context into future sessions so you never re-explain your codebase. Memory kicks in on your second session in a project, and everything lives in ~/.claude-mem on your machine. The only network calls go to your configured AI provider for compression. It's the kind of explainer you'd want when a tool starts doing invisible things in the background and you need to know whether to trust it or rip it out.

skills.sh installs
5.4K
GitHub stars
115.5K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

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

More from thedotmack/claude-mem

All 18
1affaan-m avatargoogle-workspace-opsaffaan-m/eccOperate across Google Drive, Docs, Sheets, and Slides as one workflow surface for plans, trackers, decks, and shared documents. Use when the user needs to find,5.4Kskills.sh installs
2composiohq avatarimage-enhancercomposiohq/awesome-claude-skillsImproves the quality of images, especially screenshots, by enhancing resolution, sharpness, and clarity. Perfect for preparing images for presentations, documen5.3Kskills.sh installs
3marimo-team avatarretro-marimo-pairmarimo-team/marimo-pairSession retrospective for improving marimo-pair and marimo._code_mode. Use when the user wants to analyze friction from a pairing session, identify what went wr5.2Kskills.sh installs
4openai avatarskill-creatoropenai/skillsGuide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabili5.1Kskills.sh installs
5forcedotcom avatardx-code-analyzer-custom-rule-createforcedotcom/sf-skillsCreate custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript). Use when user4.9Kskills.sh installs
6composiohq avatarskill-creatorcomposiohq/awesome-claude-skillsGuide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabil4.9Kskills.sh installs