Directory · head to head
Claude Code vs claude-mem
How their memory differs, from each one’s entry in the directory.
In the directory, which sorts systems by whose memory they hold, Claude Code memory is filed under “Work & project memory” (also “Memory about you”); claude-mem under “Work & project memory”. Claude Code memory is closed source and keeps memory on your machine; claude-mem is open source and can keep memory on your machine or in its maker's cloud. Of the 11 mechanisms of human memory, Claude Code memory has 0 built, 8 partly, 2 not, 1 not known; claude-mem has 0 built, 7 partly, 4 not, 1 in development. Neither has fully built any of the 11. Both have partly built Salience, Interference, Association, Prospective, Gist and Schemas. Only Claude Code memory has partly built Consolidation and Reconsolidation. Only claude-mem has partly built Forgetting. Neither has built Retrieval (claude-mem: more in development). Not known for Claude Code memory, as its makers' docs don't say: Emotion. claude-mem hasn't built it.
Claude Code memory’s page →claude-mem’s page →All systems side by side →
Measured against human memory
Claude Code memory0 built, 8 partly, 2 not, 1 not known
claude-mem0 built, 7 partly, 4 not
built today in developmentLonger = more of it built: a little, partly, built, in depth
Side by side
| Claude Code memory | claude-mem | |
|---|---|---|
| At a glance | ||
| Whose memory | Work & project memory | Work & project memory |
| Memory lives | Your machine (plain files) | Your machine (cloud sync optional) |
| API keys | A Claude plan login, an API key, or a cloud provider | 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 CLI, VS Code, Claude desktop app, Agent SDK, AGENTS.md files | Claude Code, Codex, Cursor, OpenCode, OpenClaw, MCP tools |
| License | Closed sourceProprietary (Anthropic Commercial Terms) | Open sourceApache-2.0 |
| Price | Comes with Claude Pro, Max, Team or Enterprise, or pay per use with an API key | Free; Cloud Sync $12/mo or $99/yr; hosted note-taking from $30/mo |
| Under the hood | ||
| Who writes memories | You write CLAUDE.md files. Claude writes its auto memory notes itself during the session, deciding what will be useful next time and skipping what the code already shows. | 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 | Markdown files: CLAUDE.md in your project and home folder, and a per-project memory folder under ~/.claude with a MEMORY.md index and one file per note. | 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 | No search engine. CLAUDE.md and the index load at the start; a nested CLAUDE.md loads when Claude reads, writes or edits any file in its folder, and a path rule when it does so to a file matching its pattern (a `cat` or `head` of one file counts as reading); Claude opens notes with its normal file tools. | 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 | No separate AI call is documented: notes are written by the same Claude, as part of the session, using the context they take up. | 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). |
| Measured against human memory | ||
| Claude Code memory | claude-mem | |
| Of the 11 | 0 built, 8 partly, 2 not, 1 not known | 0 built, 7 partly, 4 not · 1 in development |
| Encoding | ||
| SalienceDecides what's worth keeping, and how much, as a memory is written. | Claude decides what’s worth saving and sorts notes into four kinds, skipping what the code already shows. There’s no importance score. source | 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 |
| EmotionGives memories written with feeling more weight. | The docs describe four kinds of note and never mention weighting by feeling. | No emotional weighting. Notes are sorted by the kind of work, not by feeling. |
| Storage | ||
| ForgettingLets unused memories fade over time on its own. | Notes stay until you or Claude edit or delete them, and they’re kept out of the old-transcript cleanup. The index cap (200 lines or 25KB) is a size limit, not fading. source | 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 |
| InterferenceWhen a new memory closely matches an old one, notices and lets the newer one win. | Each note carries its last-changed date, and when the index gets long Claude is told to merge or drop stale entries. Old and new are sorted out by Claude’s judgement. source | 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 | ||
| RetrievalRemembering something makes that memory stronger. | Notes load by their place in the index or when Claude opens them. The only date kept is when a note was last written, so reading one doesn’t strengthen it. source | 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. |
| AssociationLinks memories, so recalling one brings its neighbours. | The always-loaded index works as signposts to the notes behind it. There are no automatic links between notes. source | 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 |
| ProspectiveBrings a memory back at the right time without being asked. | Folder CLAUDE.md files and path rules come back on their own when Claude touches matching files, but only for rules you wrote. Its own notes wait to be opened. source | 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 | ||
| ConsolidationReworks memories between sessions: strengthening, merging, reorganising. | Claude tidies the index when it nears its size limit, moving detail into topic files and merging entries, but during a session. No pass between sessions is documented. source | 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. |
| ReconsolidationCorrects a memory when it's contradicted, and keeps what it used to say. | Claude edits a note in place when things change and the date updates, but the docs describe no history of what it said before. source | Nothing corrects an old note when it's contradicted; old and new sit side by side. |
| GistTurns many specific moments into general knowledge. | Notes are lessons drawn from sessions (corrections, approaches you confirmed), written by Claude rather than a separate mechanism. source | 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 |
| SchemasForms beliefs about people and projects, and weighs new facts against them. | Notes about you and the project are read every session and shape how it works, but new facts aren’t explicitly weighed against them. source | 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 |
The same table on the compare page, where you can add other systems.