Blog·Learning

Best memory for Claude Code in 2026: built-ins, plugins and supermemory

By Dhravya Shah·7 min read

A blurred photo of sunlit leaves against a blue sky, with the supermemory logo and the headline Supermemory for Claude Code.

Start with what Claude Code already has. CLAUDE.md holds the rules you write and auto memory holds notes Claude writes for itself, and for one person on one machine that covers a lot (Anthropic docs). Add a memory plugin when you want earlier sessions recalled by what they're about, or memory that follows a repo to another machine or another agent.

We make supermemory, one of the plugins below, so read this with that in mind. Every option is described from its own docs as of October 21, 2026, and judged on the same six questions.

How we compared them

  • What it keeps, and who writes it: you, Claude, or a plugin.
  • When Claude sees it: every session, on every prompt, or only when the model asks.
  • Where it's stored: your repo, your machine, or someone's cloud.
  • Who else can use it: other agents, other machines, your team.
  • What it costs.
  • What you have to set up. The table is ordered by this, from nothing to install to a hosted service.

Claude Code memory options compared

Option What it keeps When Claude sees it Where it's stored Other agents and machines Cost
CLAUDE.md or AGENTS.md Rules you write: commands, conventions, layout Every session, in full Your repo and home folder Teammates get it through Git, and other agents read AGENTS.md Free
Auto memory Notes Claude writes on your preferences, corrections and ongoing work Every session: the first 200 lines or 25KB of the index ~/.claude/projects/ on your machine One machine, every worktree of the repo Free
claude-mem Summaries of your sessions and tool use, written by a model through hooks Context at session start, plus search tools Claude can call A local SQLite database and vector index, with optional cloud backup Several coding tools on the same machine Open source (Apache 2.0). Summaries run on your Claude plan, your own model key or its paid hosted option
Other memory plugins: Mem0, cognee, Hindsight Varies Check whether recall runs on every prompt or waits for the model to call a tool Varies: hosted, local or self-hosted, depending on the plugin Varies Varies
supermemory plugin Memories extracted from your sessions, plus a profile for each project Profile at session start, a memory search on every substantive prompt supermemory's cloud, or supermemory Local on your own machine Claude Code, Codex, Cursor, OpenCode and Muse Code share one memory per repo, on any machine signed in to your organization Plugin free on every plan. Usage draws on credits, and Free includes $5 a month

Sources: Anthropic's memory docs for the built-ins, claude-mem's README on GitHub, each vendor's own Claude Code pages for the other plugins, and our plugin README, Cursor docs and billing docs for supermemory.

Which memory should you use with Claude Code?

  • One person, one machine, rules you can write down: CLAUDE.md plus auto memory. Nothing to install, and auto memory is on by default.
  • You want sessions captured automatically but kept on your machine: a local plugin such as claude-mem.
  • You switch machines, use more than one coding agent, or share a repo with a team: a hosted memory plugin. This is where supermemory fits, since the Claude Code, Codex, Cursor, OpenCode and Muse Code plugins all read and write one memory per repo.
  • Memory can't leave your infrastructure: supermemory Local, which the plugin can point at, or another self-hosted option. Self-hosted memory for AI agents compares them.

Whatever you pick, keep CLAUDE.md for the rules. A plugin is for what happened in sessions, not for what should always apply.

What the supermemory plugin does

Install it with one command, which also sets up OpenCode and Codex if you use them, and approve sign-in once in the browser:

npx supermemory plugin

From then on it runs on hooks, so nothing waits for the model to decide to call a tool (README):

  • When a session starts, it loads your profile for the project.
  • On every substantive prompt, it searches memory with your prompt and adds the matches before Claude reads it.
  • When Claude finishes responding, it saves the new part of the conversation in the background.
  • On demand, Claude can use supermemory's MCP tools for a deeper search or a deliberate save, and read-only lookups are approved automatically.

Setup in detail, settings, and a two-session test to check it's working are in our Claude Code memory guide. The plugin's settings and commands are in its README.

Why we built it

Claude Code and supermemory logos on a terracotta background under a line drawing of a face, captioned Supercharge your Claude Code with Supermemory.

When we launched the plugin in January, the problem was simple. Claude Code changed how I work, but every day I had to explain the same things to it again: that the user service talks to Postgres, not MySQL, and that the ugly function is ugly on purpose. The workarounds were long CLAUDE.md files and pasting context at the start of every prompt.

A lot has changed since then:

  • One command installs it. npx supermemory plugin sets up any of Claude Code, OpenCode and Codex in one go and signs you in through the browser (changelog).
  • It's free on every plan. The Claude Code plugin stopped needing a paid plan in July, and every coding plugin was free by August 15. Usage still counts against your credits (changelog).
  • Recall happens on every prompt. It used to depend on Claude deciding to search. Since August 21, the hook searches on every substantive prompt itself (changelog).
  • One memory per repo across agents. Claude Code, Codex, Cursor, OpenCode and Muse Code now use the same container for a repo, keyed to its Git remote. A decision made in Claude Code is there when you open the repo in Codex or Cursor.
  • A security fix in August. If you installed before August 12, update: a crafted Bash command could be approved automatically during recall (changelog).
  • The status line is gone. August's status line with counts was removed in October. On Claude Code 2.1.287 or later in the terminal, a headline above the prompt shows when memories came back.

How do you test a memory tool for Claude Code?

Use a fact the model couldn't guess. Tell Claude "we deploy from the release branch, never from main," end the session, and ask in a new session which branch you deploy from. Memories form in the background, so if nothing comes back yet, ask again a little later. Then correct the fact and check the new answer wins, and ask from another repo to check it doesn't leak. Run the same test on each option you're considering. A general memory benchmark won't tell you how a tool does on your repo, and this takes five minutes.

Common questions

Does Claude Code have memory?

Yes. CLAUDE.md files hold the instructions you write, and auto memory holds notes Claude writes about your preferences and ongoing work. Both load at the start of every session. Neither recalls earlier sessions by relevance, and auto memory stays on the machine that wrote it.

Is CLAUDE.md enough?

For rules, yes. CLAUDE.md is the right home for build commands and conventions, because changes to it get reviewed like code. It only knows what someone wrote down, though, so the approach you dropped last week or the half-finished migration usually isn't in it.

Do memory plugins slow Claude Code down?

Each prompt waits for the plugin's search before Claude reads it. supermemory's hooks have short time limits and fail open, so if supermemory is slow or unreachable your session carries on without the extra context (README).

Can I use the plugin and supermemory's MCP server together?

Yes, and the plugin already registers the MCP tools. The MCP server on its own is the way to share one memory across chat apps such as Claude and ChatGPT, where there are no hooks to install.

What does the supermemory plugin cost?

The plugin is free on every plan, including Free, which comes with $5 of credits a month. Saving and searching draw on those credits, and the pricing page has the rates.

  1. How AI memory actually works. A beginner's guideHow AI apps remember things between chats, why a bigger context window doesn't solve it, and the parts every memory system shares.
  2. We're open sourcing the company brain. Here's how we designed the multiplayer harnessCompany Brain is now open source. A walkthrough of the multiplayer harness behind its Slack experience, from proactivity and memory boundaries to approvals and recovery.
  3. Jev changes a lot in memory & context engineering. Here's exactly how.We tested Jev across reranking, chunking, observation, and harness decisions. Here is where fast decision models help memory systems, where they cost more, and where they still fall short.
  4. I reverse-engineered Instinct's memory. Here's exactly how it worksInstinct keeps its memory as git-tracked markdown files, found with grep rather than vectors. Here is the whole system as far as black-box probing can reconstruct it, and how to rebuild it on supermemory in about 60 lines.
  5. An update to supermemoryWe've discontinued the supermemory company brain and Nova. Everyone who was charged has been refunded, our MCP and plugins continue to run, and we're going all in on the memory engine.
  6. Scaling Conversations: How Adapta Grew Usage Without Losing ContextAdapta added Supermemory as a persistent memory layer so every conversation keeps its context — letting the team scale usage without losing the thread.
  7. How Chatarmin Ditched RAG and Went Memory-Only with SupermemoryChatarmin replaced a heavy RAG pipeline with Supermemory's memory layer — cutting average AI response time from 40s to 12s and token usage by 40–50%.
  8. SMFS: making agentic retrieval 55% cheaper AND more accurateWe launched SMFS.ai (Supermemory Filesystem) a few weeks ago, with a simple bet: We can redesign the filesystem specifically for agents, with special files, structures, and commands that it can use for it's tasks. Today, SMFS is used by hundreds of companies to power their agents.
  9. Introducing Dynamic Dreaming: supermemory now connects the dots, for you.Dreaming is magical. TLDR: We're launching Dynamic Dreaming in supermemory today, which automatically works if you're using supermemory in any way - API, OpenClaw, Hermes agent, etc.
  10. Dear reader, we just made supermemory insanely cheap... the Context CloudWhen I first started building supermemory, I had one goal: To build the best memory system for AI. I would talk to customers, and find out that memory was not the only thing they needed - They were all setting up 7-8 different vendors at the same time.
  11. Introducing @supermemory/tools v2.0.0Today we're releasing v2.0.0. This release unifies the API across all agents sdk integrations from AI SDK to Mastra, makes conversation identity a first-class concept, and ships with memory saving on by default.
  12. Solving the Precision-Recall Tradeoff: Search Result AggregationWhen you're building memory for AI, search is your foundational layer. The way search generally works is straightforward: the user defines a query, and then sets a limit (top-K) on how many search results they want returned. Usually, this is set to 10 or 20.
  13. OpenClaw Memory Problems: Why It Forgets and How to Fix It (2026)OpenClaw remembers by writing Markdown files in its workspace, so it forgets anything the agent didn't save. Why that breaks down, how the supermemory plugin recalls and saves on every turn instead, and how to install it, free on every plan.
  14. Stateful Coding Agents with Memory: Build Long-Running Agents (2026)We built a plugin for Claude Code and OpenCode that gives your coding agent persistent memory. It remembers your preferences, learns your codebase, and never loses context mid-conversation. The result is an agent you can run for months without starting over.
  15. Clawd / Molt bot's memory SUCKS. We gave it supermemory.I'm the founder of supermemory. Clawd/Molt bot is blowing up right now, with many, many use cases. I set it up, too, and have been using it through telegram. TLDR: just go to https://supermemory.ai/docs/integrations/clawdbot to set up supermemory for your clawd bot.
  16. Catch up with our UNFORGETTABLE Launch WeekOver the last year, one belief has guided almost everything we’ve built at Supermemory AI becomes meaningfully useful only when it remembers. Memory shouldn’t be something developers rebuild from scratch. It shouldn’t be fragile, expensive, or trapped inside a single tool.
  17. Empowering the Next Generation of Founders: Supermemory Startup ProgramIf there’s one thing we’ve learned while building Supermemory, it’s that most startups don’t fail because they didn't build features; they fail when infrastructure slows them down, or they built too slow.
  18. Building code-chunk: AST Aware Code ChunkingAt Supermemory, we're building context engineering infrastructure for AI. A huge part of that is dealing with code: ingesting repos, understanding structure, and making it searchable. The problem is that most code chunking solutions are terrible. We built code-chunk to fix this.
  19. Supermemory raises $3 million with the best memory engine for LLMsToday, I am excited to announce our first funding round to accelerate our mission of building an interoperable, scalable and reliable memory for LLMs and agents. Memory is one of the hardest challenges in AI right now.
  20. Mem0 vs Supermemory: Why Scira SwitchedScira AI moved its production memory layer from Mem0 to Supermemory. This is what failed, what improved, and how the team evaluated the two systems.
  21. Never Record Again: How Montra Uses Supermemory to Rethink Video CreationCampbell Baron, the founder of Montra, has been making videos since he was twelve. By thirteen, he was already doing brand work. Today, he’s betting on a very different future for creators: a world where recording is the exception, and most videos are generated from scratch.
  22. Unified Memory That Works Where You Work: Your Second Brain With SupermemoryHi everyone, I’m Dhravya, the founder of Supermemory. I want to start with a little story behind why this product means so much to me. You can also skip straight to what it is and how it works below.
  23. Supermemory just got faster on PlanetScaleWhat is Supermemory? Supermemory completes the missing part of the LLM puzzle: memory. Just as memory is crucial for human intelligence, it's essential for truly intelligent AI systems.
  24. Faster, smarter, reliable infinite chat: Supermemory IS context engineering.People are obsessed with prompts and prompt engineering. Sure, what you say is important, but what the model knows when you say it is the difference between a stateless text generator and an intelligent AI system. In short, context is the most crucial component.
  25. We solved AI API interoperabilityOne API to rule them all, One spec to find them, One library to bring them all and in the TypeScript, bind them. When we were building the Infinite Chat API, initially, we only supported the OpenAI format. This was fine, until a lot of our customers started asking for more.
  26. The Wow Factor of Memory - How Flow Used Supermemory To Build Smarter, Stickier ProductsOverview: Flow is a note-taking app built around a bold vision: to create a more personal, context-aware writing experience powered by AI. At the heart of this mission is memory.
  27. The UX and technicalities of awesome MCPsLast month, we launched the Supermemory MCP, mostly to test our own infrastructure and get some initial traction. It blew up. To my absolute surprise, the initial launch itself got half a million impressions (!!!). Then, we launched and got #2 on ProductHunt too.
  28. Architecting a memory engine inspired by the human brainLanguage is at the heart of intelligence, but what truly powers meaningful interaction is memory — the ability to accumulate, recall, and contextualize information over time. Large Language Models (LLMs) have mastered language, but memory remains their Achilles’ heel.
YOUR PRIVACY

Change or withdraw any time via Cookie settings in the footer. Read our cookie notice.