All memory systems
Work & project memory

claude-mem

A Claude Code plugin that quietly takes notes on your coding sessions and hands them back next time.

by Alex Newman (thedotmack) · Built this? Edit this page on GitHub

Our guideclaude-mem: CLAUDE.md files, usage costs, and where its data lives

Measured against human memory

each one, with its source ↓

built today in development

Head to head withClaude Code memory

In short

While you work in Claude Code, a second, hidden AI watches each step (every file read, edit and command) and writes short notes about what was built, fixed or learned. After each reply it also writes a summary: what you asked, what was found, what's next. When you start again, the newest notes are laid out at the top of the chat, and Claude can search the rest by keywords or meaning, then open just the notes it needs.

Who it’s for

Developers using Claude Code and other coding agents who want the next session to pick up where the last one left off, without writing notes themselves. It installs with one command; Cloud Sync, a paid add-on, carries memory across machines.

What it remembers

What happened while coding: bugs fixed, features built, decisions and discoveries, the files each one touched, your prompts, and a summary of each exchange. It also suggests rules for how you like agents to work, and since v16.2.0 it can take notes on iMessage chats you pick.

Memory lives
Your machine (cloud sync optional)
API keys
None on your Claude plan; or a ChatGPT login (Codex), a Gemini, OpenRouter or OpenAI-compatible key, or their hosted tokens
Works with
Claude Code, Codex, Cursor, OpenCode, OpenClaw, MCP tools
License
Open sourceApache-2.0
Price
Free; Cloud Sync $12/mo or $99/yr; hosted note-taking from $30/mo

Under the hood

Who writes memories
A separate “observer” AI (Claude Haiku by default) watches each tool step and writes notes, plus a summary after each reply. The AI you talk to doesn't write them.
Where they're kept
A SQLite database on your machine, with a local Chroma index for meaning-based search. Optional sync to their cloud. If your own agent can't sort them, the interactive installer's setup page can also upload your last 30 days of prompts there: since v15.8.3 only if you say yes (v15.2.0 to v15.8.2 didn't ask).
How they're found
The newest 50 notes and recent summaries are shown at the start. After that, Claude searches by keywords or meaning, looks at what happened around a note, and opens the ones it needs.
Extra AI calls
Yes: observer calls as you work, plus a summary each reply, on your Claude plan, another provider, or their paid hosted note-taking. A background My Work refresh, run by your signed-in agent, reviews your requests, and setup sorts your last 30 days of prompts the same way. If that agent can't run, setup can upload those prompts to their cloud for a hosted AI to turn into goals and rules (since v15.8.3, only if you say yes).

How it works

  1. 1You workClaude reads, edits and runs commands as usual.
  2. 2A hidden observerAnother AI watches each step and writes short, labelled notes.
  3. 3Sum it upAfter each reply: what was asked, learned, done, and what's next.
  4. 4StoreSaved in SQLite on your machine, searchable by keywords and meaning.
  5. 5Hand them backNext session, the newest notes come first; Claude searches for more.
next session: back to 1, you work

What stands out

  • Fully automatic: there's nothing to remember to save. A silent observer turns raw tool activity into tidy, labelled notes as you work.
  • Shows a cheap index first and fetches full detail only when needed, so memory doesn't eat up the conversation.
  • Notes tied to files: when Claude opens a file it has worked on before, that file's history comes up with it.
  • Widely used: about 120,000 GitHub stars (26 Nov 2026), with notes in about 30 languages and plugins for many coding agents.

What it doesn’t do

  • Notes are written once and kept as they are. Nothing fades or corrects them, so an outdated note sits beside the newer one. Repeats are merged only if you switch that on.
  • It remembers the work and how you like it done, not who you are: its rules cover working preferences only, and the AI has no sense of self.
  • The hidden note-taker is an extra AI working alongside every session. It runs on your Claude plan unless you choose another provider (Codex, Gemini, OpenRouter, any OpenAI-compatible API) or buy their hosted note-taking (from $30/mo); if the hosted service stops serving your account, it falls back to your Claude plan. The setup page pre-selects their Cloud Sync trial (30 days, no card; then $12/mo if you add one); the other choice is to keep memory on this computer, free.
  • Anonymous usage stats are on by default (the npx installer asks once, but not in CI or other non-interactive installs; one command turns them off). Apart from the setup upload below, a local install contacts cmem.ai once, to create its sign-in link, with a numbers-only usage summary. Cloud sync, if you turn it on, uploads your notes and prompts.
  • An interactive `npx claude-mem install`, including on an existing install, opens a setup page that reads the prompts you typed in the last 30 days and sorts them with your own signed-in agent; if that agent can't run, it can offer to upload them to cmem.ai. That covers Claude Code and other coding agents on the machine, with project names and folder paths, and a hosted AI turns them into goals and rules. From v15.2.0 (25 Oct 2026) to v15.8.2 the page uploaded them as soon as it loaded, without asking. Since v15.8.3 (2 Nov) it asks first and lists each tool with its prompt count, all ticked; it uploads only the tools left ticked, and declining uploads nothing. Prompts uploaded by earlier versions stay uploaded. Installing with any `--provider` or `--ide`, with `--no-auto-start`, or from the Claude Code plugin marketplace skips that page; a non-interactive install puts it off until you first open My Work.

Measured against human memory

0 built, 7 partly, 4 not of the Field Guide’s 11 mechanisms, and 1 in development

Encoding

Salience

Decides what's worth keeping, and how much, as a memory is written.

partly built

The observer is told what's worth recording and to skip routine steps, and it labels each note (bugfix, decision…). There's no importance score. source

Emotion

Gives memories written with feeling more weight.

not built

No emotional weighting. Notes are sorted by the kind of work, not by feeling.

Storage

Forgetting

Lets unused memories fade over time on its own.

partly built

Nothing fades note by note, but meaning-based search only looks back 90 days by default, and the start of a session shows just the newest notes. source

Interference

When a new memory closely matches an old one, notices and lets the newer one win.

partly built

If you switch it on, a new note whose title matches an older one is folded into it, and near matches are listed for you to review. It's off by default, and a newer note that contradicts an older one is simply stored beside it. source

Retrieval

Retrieval

Remembering something makes that memory stronger.

not builtin development

Being found doesn't strengthen a note. A usage counter exists in the database, but nothing updates it yet. With the opt-in merging on, a note the observer writes again on a later day is marked as re-confirmed, and another opt-in setting lets those climb into the start of a session. source

Their open fix plan (issue #3609) says the counter will go up each time a note is recalled.

Association

Links memories, so recalling one brings its neighbours.

partly built

Notes are tied to their files and their moment in a session, and a timeline tool brings up what happened just before and after one. Notes aren't linked to each other. source

Prospective

Brings a memory back at the right time without being asked.

partly built

When Claude opens a file it has notes on, that file's history is added on its own. A full read of a code file of 32 KB or more is, by default, replaced by its notes and outline. There are no reminders for a set time. source

Transformation

Consolidation

Reworks memories between sessions: strengthening, merging, reorganising.

not built

Nothing reworks notes between sessions. A summary is written after each reply, and a background refresh writes reviews of your requests, but old notes stay as first written.

Reconsolidation

Corrects a memory when it's contradicted, and keeps what it used to say.

not built

Nothing corrects an old note when it's contradicted; old and new sit side by side.

Gist

Turns many specific moments into general knowledge.

partly built

A background refresh, on by default, merges the working preferences your requests show into rules for how you like agents to work, with your quotes and how often each came up; you approve them. No lasting lessons about the code or project are drawn from the notes. source

Schemas

Forms beliefs about people and projects, and weighs new facts against them.

partly built

My Rules keeps a list of how you like agents to work. Approved rules are written to MY-RULES.md, which Claude Code loads once you let My Work add one import line to your CLAUDE.md. It covers working preferences only: there's no kept picture of who you are. source

Not every system is trying to be a human memory, so a hollow dot isn’t a flaw. It just says what the system doesn’t do. What the mechanisms are.

Compare claude-mem with the others, side by side

Questions

Who is claude-mem for?

Developers using Claude Code and other coding agents who want the next session to pick up where the last one left off, without writing notes themselves. It installs with one command; Cloud Sync, a paid add-on, carries memory across machines.

Where does claude-mem keep its memories?

Your machine (cloud sync optional). A SQLite database on your machine, with a local Chroma index for meaning-based search. Optional sync to their cloud. If your own agent can't sort them, the interactive installer's setup page can also upload your last 30 days of prompts there: since v15.8.3 only if you say yes (v15.2.0 to v15.8.2 didn't ask).

Does claude-mem forget?

Forgetting: a little. Nothing fades note by note, but meaning-based search only looks back 90 days by default, and the start of a session shows just the newest notes. source

Does claude-mem correct a memory when it turns out to be wrong?

Reconsolidation: not built. Nothing corrects an old note when it's contradicted; old and new sit side by side.

Is claude-mem open source?

Yes, it's open source. License: Apache-2.0. Code: github.com/thedotmack/claude-mem.

Does claude-mem work with Claude Code?

Yes. Works with: Claude Code, Codex, Cursor, OpenCode, OpenClaw, MCP tools.

Does claude-mem need an API key?

API keys: None on your Claude plan; or a ChatGPT login (Codex), a Gemini, OpenRouter or OpenAI-compatible key, or their hosted tokens.

How much does claude-mem cost?

Price: Free; Cloud Sync $12/mo or $99/yr; hosted note-taking from $30/mo.