published fresh until

claude-mem, built-in memory or notes: carry lessons across sessions?

Summary There are three common ways to give a coding agent memory across sessions: an automatic capture plugin such as claude-mem (Apache-2.0), Claude Code's built-in auto memory, or plain checkpoint notes you keep in the repo. They differ in what gets stored, what is re-injected, where the data goes, and how much stale context comes back.

Not for Obsidian notes vault, solved-bug learnings

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, built-in auto memory and curated checkpoint notes remain options for carrying context across sessions; claude-mem needs an additional setup-privacy check. Do first: if using its browser installer, use v15.8.3 or later and review upload consent (maintainer release, 2 November 2026).

The question

In July 2026 @FiladelfoU argued that "remember everything" makes agents worse: an agent that carries every dead decision from old sessions reasons over stale context. The setup he described capped history and leaned on checkpoint notes and rolling summaries instead of a memory plugin. Here is how the options compare as of November 2026.

The options

What is storedWhat comes backWhere data goesEffort
claude-mem (plugin)Every Read, Edit and Bash call becomes a compressed observation; sessions are summarised at the endRelevant observations injected into later sessions, plus a search skill and local web viewerLocal SQLite and vector index under ~/.claude-mem; compression runs through the AI provider you pick (its hosted observer, OpenRouter, Gemini or your Anthropic plan)Install once, automatic
Claude Code auto memory (built in, on by default)Notes Claude decides are worth keeping: your preferences, corrections, project decisions, where to find things. It skips what it can derive from code or gitFirst 200 lines or 25KB of MEMORY.md every session; topic files read on demand~/.claude/projects/<project>/memory/, shared by all worktrees of the repoNone; review with /memory
Checkpoint notes you writeWhatever you or the agent write into a file such as TASKS.md or NOTES.mdOnly what the next session is told to readThe repo (reviewable in git)Manual, explicit

Codex CLI 0.165.0 selects memory v2 when memory is enabled and no v1 memories directory exists, unless explicit memories.version or the memories.dual_write = false transition opt-out overrides it (controlling PR); external-agent memory imports are also available (checked 2026-11-05).

How to choose

  • Long-running work on one codebase where re-explaining is the pain: try built-in auto memory first; it is already on in Claude Code.
  • You want searchable history of what the agent actually did, across tools: a capture plugin like claude-mem. It also supports Codex, Cursor, OpenCode and others through its installer.
  • You want control and reviewability, or several people share the work: checkpoint notes in the repo. Anthropic's Opus 5.5 guide also recommends a task checklist in a file for long unattended runs.
  • Context feels polluted: prefer fewer, curated notes over automatic capture, and /clear between unrelated tasks.

Caveats (as of November 2026)

  • claude-mem's installer asks you to sign in to its service by default and offers a hosted observer with a trial; pass an explicit provider flag to skip sign-in. Read its privacy notes before using it on private code; it supports <private> tags to exclude content. The local-storage description does not cover every setup or hosted-service data flow.
  • claude-mem's repo includes a pipe-to-shell installer for one of its integrations, so it isn't packaged on this page. If you try it, install from its README (npx claude-mem install or the Claude Code plugin marketplace) and read what the installer sets up.
  • Setup privacy fix: saltenasl reported on 29 October 2026 that browser setup since v15.2.0 uploaded the previous 30 days of prompts without separate consent. The maintainer's v15.8.3 release, 2 November, adds explicit consent, per-tool selection and a keep-local choice. It does not remove earlier uploads or settle downstream retention; the issue was closed as completed on 2026-11-10, with the maintainer citing merged PR #5220 and the v15.8.3 release (status checked 2026-11-14). v15.9.0, 2 November, adds further secret redaction and local-worker write protections. Remote workers now require HTTPS when off-machine. These are upstream reports, not a WhatWorks trial.
  • Any automatic memory can re-inject outdated decisions. Review and prune it the way you would a CLAUDE.md.
  • None of these replace a short, accurate CLAUDE.md/AGENTS.md for rules that must always apply.

Which approach has held up for you over weeks, not days?

Sources

Primary sources: the claude-mem repository README (read through the GitHub API; Apache-2.0 on 18 October 2026) and the Claude Code memory docs. The post by @FiladelfoU was not re-opened.

  • Confirms (claude-mem): a SQLite database plus a Chroma vector store, a local web viewer, settings in ~/.claude-mem/settings.json, <private> tags to exclude content, install with npx claude-mem install or the Claude Code plugin marketplace, support for several other tools (OpenCode, Antigravity and more), and an installer that asks you to sign in to claude-mem and offers a hosted observer with a 30-day trial. The README also warns that npm install -g claude-mem installs only the library.
  • Confirms (Claude Code): auto memory is on by default in local sessions, lives in ~/.claude/projects/<project>/memory/ shared by all worktrees of a repo, is machine-local, and loads the first 200 lines or 25KB of MEMORY.md each session with topic files read on demand; /memory browses it.
  • The README now lists OpenRouter, Gemini and the Anthropic plan as observer choices (read 3 November 2026). The setup-upload report and fixed release above qualify any blanket claim that data only leaves through the compression provider. The Opus 5.5 guide does recommend a task checklist kept in a to-do tool or file for long unattended runs.

Not for: an Obsidian notes vault or a solved-bug learnings workflow.

checked 2026-11-03

Started from a post by @FiladelfoU, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# claude-mem, built-in memory or notes: carry lessons across sessions?
Summary: There are three common ways to give a coding agent memory across sessions: an automatic capture plugin such as claude-mem (Apache-2.0), Claude Code's built-in auto memory, or plain checkpoint notes you keep in the repo. They differ in what gets stored, what is re-injected, where the data goes, and how much stale context comes back.
Copy for agent
get the whatworks thread cross-session-memory-plugin-vs-notes and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cross-session-memory-plugin-vs-notes
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks