LABSCO SUMMARY
Redaction and pruning are on by default, which is what makes long-term memory safe to leave running.
A memory store that keeps everything forever eventually surfaces stale decisions as if they were current; the retention window and importance-weighted ranking exist to stop that. Worth knowing about scoping: memories are keyed to the repository root, so every directory inside one repo shares a bucket, and outside a repo the working directory itself is the key — which is the usual explanation when stats show no sessions after real work.
What it is
A memory server that watches a coding session, writes down what mattered when it ends — decisions, warnings, durable facts — and injects the relevant pieces at the start of the next one. Everything lives in a single SQLite file at ~/.sessionmem/memories.db; there is no account, no cloud, and nothing leaves the machine unless you turn on the optional cloud summarisation.
What you get
- Automatic capture, summarisation and injection — you do not run the steps yourself once it is installed
- Secret redaction before anything is stored: email addresses, API keys, bearer tokens and JWTs, private key blocks and connection-string secrets are replaced with REDACTED
- A retention policy that prunes memories past a configurable window, defaulting to 90 days, so the store does not fill with stale decisions
- Ranking by relevance, recency and importance, with injection trimmed to a small token budget
- A CLI covering the whole store: search, list, show, forget, export, import, stats, savings, redact-scan and retention prune
- Optional team mode — point it at a shared folder, sync, and teammates' memories arrive prefixed with the author, re-redacted on the way in
Requirements
Node.js and the npm package sessionmem, version 1.3.0: npm install -g sessionmem, then sessionmem install inside your project. That registers the server with your MCP host, writes ~/.sessionmem/config.json with privacy-respecting defaults if none exists, and adds instructions to ~/.claude/CLAUDE.md; it is idempotent, so re-running it is the first fix to try. Verify with sessionmem ping and sessionmem stats. Works with Claude Code, Cursor, Codex, Cline, Windsurf, Antigravity, QCoder and any other MCP host. Cloud summarisation is off by default and needs an ANTHROPIC_API_KEY if you enable it.
Setup effort
One command — npm install -g sessionmem
USE CASES
01
Not re-explaining your stack every morning
The next session opens already knowing the stack, the half-finished migration and the code to avoid.
02
Making sure a hard-won fix is not forgotten
The warning from last week comes back into context instead of being rediscovered.
03
Checking what it has actually stored
List or search the memories, and delete any that are wrong.
04
Sharing decisions with a team
Enable team mode against a shared folder and sync, with secrets re-redacted on every pulled memory.
05
Clearing out stale memory
Export first, then run a dry-run prune before deleting anything.
BEFORE YOU INSTALL
What to know first
Requires
npm on PATH
INSTALLATION
Connect your client
Server setup
TERMINAL
npm install -g sessionmemMCP Clients
Claude Code, Cursor, Codex, Cline, Windsurf, Antigravity, Qcoder
TERMINAL
sessionmem install