/Catalogue/Prompt/thedotmack/thedotmack-claude-mem-how-it-works

Origin: github

how-it-works

Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".

by thedotmack · updated 11h ago · imported from GitHub

Installs0+0/7d
Security score92/100
Retention 14d0%
GitHub stars94.7K

Skill logic

Execution graph
User message
Prompt rewrites behaviour
Response

SKILL.md

View on GitHub ↗

How claude-mem works

What it does

Every Read, Edit, and Bash that Claude makes turns into a compressed observation. Observations get summarized at session end. Relevant ones get auto-injected into future prompts so the next session starts with context from the last one — 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 in a fresh project seeds memory; subsequent sessions receive auto-injected context for relevant past work. Run /learn-codebase if you want to front-load the entire repo into memory in a single pass (~5 minutes, optional).

Where data lives

Everything stays in ~/.claude-mem on this machine.

Nothing leaves your machine except calls to whichever AI provider you configured for compression (Claude / OpenRouter / Gemini). The SQLite database, vector index, logs, and settings all live under that directory and are removed cleanly on npx claude-mem uninstall.

Discussion

No comments yet — start the thread.

Sign in to join the discussion.

/More from thedotmack/claude-mem

thedotmack· 11h agoCommunity
claude-mem-install

Prompts · TypeScript · v0.1.0

Use this when setting up claude-mem on Cursor: local or remote worker, local host-login observer or remote cmem.ai inference.

#ai#ai-agents#ai-memory

0 94.7K
thedotmack· 11h agoSandbox
openclaw

Prompts · TypeScript · v0.1.0

This guide walks through setting up the claude-mem plugin on an OpenClaw gateway. By the end, your agents will have persistent memory across sessions via system prompt context injection, and optionally a real-time observation feed streaming to a messaging channel.

#ai#ai-agents#ai-memory

0 94.7K
thedotmack· 11h agoCommunity
mem-search

Prompts · TypeScript · v0.1.0

Use this when the user asks to search memory, "did we already solve this?", "how did we do X last time?", or wants work from previous sessions.

#ai#ai-agents#ai-memory

0 94.7K
thedotmack· 11h agoCommunity
host-observer

Prompts · TypeScript · v0.1.0

Use this when fulfilling claude-mem observer jobs on Grok Bot: reply only skip_summary or one full observation XML, never prose.

#ai#ai-agents#ai-memory

0 94.7K