A developer's desk in warm evening light with a laptop showing a coding session and a timeline of past session notes, a paper notebook and a coffee cup

Claude-Mem Explained: Give Your Coding Agent a Memory That Lasts Between Sessions

Claude-Mem is an open-source tool that gives coding agents persistent memory across sessions. Instead of starting every conversation from scratch, your agent remembers past decisions, files and fixes, and resumes where it left off. With 119,166 stars on GitHub, version 16.1.0 and support for Claude Code and other agents, it turns short-lived chats into a continuing working relationship.

A developer's desk in warm evening light with a laptop showing a coding session and a timeline of past session notes, a paper notebook and a coffee cup
Claude-Mem gives your coding agent a memory that lasts between sessions, so every new session starts where the last one ended.

Key facts

  • Project: Claude-Mem — persistent context across sessions for every agent
  • GitHub stars: 119,166, with 10,354 forks and 4,878 commits (checked 23 November 2026)
  • Created: 31 August 2025; licence Apache-2.0; default branch main
  • Releases: 416, with 439 tags; current version 16.1.0
  • Install: one command — npx claude-mem install
  • Requirements: Node 20.12 or newer, and a supported coding agent
  • Memory location: ~/.claude-mem on your own machine; cloud sync is opt-in

What Is Claude-Mem and Why Does It Matter?

Every developer who works with a coding agent knows the same frustration: you spend an afternoon explaining your project, the agent learns your conventions and fixes a tricky bug — and then the session ends. The next day you open a fresh chat and the agent knows nothing. You re-explain the architecture and re-discover the bug you already solved. The work is not lost because the code is gone; it is lost because the context is gone.

Claude-Mem exists to fix that gap. Created on 31 August 2025 and released under the Apache-2.0 licence, it records what happens in your coding sessions and hands a compact summary to the next one. By 23 November 2026 it had gathered 119,166 stars and 10,354 forks on GitHub, with 4,878 commits across 416 releases.

The idea matters because coding agents are no longer a novelty: they write features, refactor modules and debug production issues, and the longer a project runs, the more its history matters. A decision made in week one shapes every change that follows. Without memory, each session is a stranger; with memory, the agent becomes a colleague who was there last time — the same direction as the other open-source developer tools on the KongoTech homepage.

How Does Claude-Mem Actually Work?

Claude-Mem works in three quiet steps while you code. First, hooks hand each tool call to a small local worker, so the system sees what the agent actually did. Second, an observer agent takes notes while the main agent works, recording decisions, files touched and problems solved. Third, the next session opens with a compact index of what matters, pulling in details only when needed.

The compact index is the clever part: dumping an entire session history into a new conversation would waste context and slow the agent down, so Claude-Mem keeps the opening brief and lets the agent fetch specifics on demand — a good table of contents, not a full diary.

There is also a viewer called My Work, reached at the worker URL, where you can browse what was recorded, and an optional TeamBrain shared workspace extends the same idea to a team. Screenshots are kept by default under ~/.claude-mem/media-v1/, though you can turn that off.

A developer working at a desk while a second small monitor shows an observer taking notes on the coding session, with sticky notes and a notebook nearby
A second observer agent takes notes while the main agent works, so nothing important slips away unrecorded.

Which Coding Agents Work With Claude-Mem?

Full support covers Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode and more, so most developers will find their agent of choice already covered. Sessions in those agents are recorded, and the memory carries across them.

A second group can search the memory but not record its own sessions: Copilot CLI, Goose, Roo Code, Warp and Zed can look back through what was recorded elsewhere, but their own work is not added to the record. The richest memory comes from the agent that records everything, so the distinction matters when you choose where to do your main work.

The same agent-first pattern is spreading across the tooling world, and AG-UI shows how agents and user interfaces are learning to work together.

How Do You Install Claude-Mem?

Installation is a single command, run from the terminal:

npx claude-mem install

You need Node 20.12 or newer and a supported coding agent. The installer sets up the hooks and the local worker, and memory starts being recorded from your next session — nothing to configure first.

There is also a plugin route: add the marketplace with /plugin marketplace add thedotmack/claude-mem, then install the plugin with /plugin install claude-mem. Either route leads to the same result. After installation, do some real work in a session, then start a new one and watch the index appear — the agent should pick up the thread without you re-explaining it.

For work that is mostly documents rather than code, What Is Univer shows where the same AI-assistant pattern is heading for office files.

A developer resuming work at a laptop in the morning with an open notebook showing where the previous session left off, a bookmark and a coffee cup on the desk
The next session opens with a compact index of what matters, so work resumes instead of restarting.

How Do You Search Your Memory With mem-search?

Recording memory is only half the job; finding it again is the other half. Claude-Mem includes a skill called mem-search that searches your project history in three steps — index, timeline and details — narrowing down first and filling in the exact record only when you need it.

In practice, you can ask what was decided about the login flow last week, or why a particular file was changed, and the agent traces the answer back through the recorded sessions instead of guessing. The three-step search keeps the lookup cheap: the agent narrows down first, then reads only the relevant part.

This is where persistent memory stops being a convenience and starts changing how you work. Debugging is faster because the agent can see earlier attempts, not just the current error; refactoring is safer because it knows which parts of the code are load-bearing; and handovers improve, because a project’s history is no longer locked inside one chat window that has already closed.

What About Privacy, and Where Does the Memory Live?

Memory is only useful if you trust where it lives, and Claude-Mem keeps that simple: it lives in ~/.claude-mem on your own machine by default, and nothing is sent to a cloud service unless you opt in to cloud sync.

For sensitive material, wrap anything in <private> tags and it never gets stored, keeping secrets, credentials and personal details out of the record entirely. Screenshot storage can be turned off too, so you decide what the record contains.

That local-first design is a real difference from tools that upload everything by default: your code history is sensitive material, and the machine where the code already lives is the least surprising place for it. Cloud sync exists for people who want it, but it is a choice, not a requirement.

A tidy stack of labelled notebooks and index cards arranged beside a laptop on a desk, with a small padlock resting on the notebook
Memory lives on your own machine by default, and anything wrapped in private tags is never stored.

What Does the Observer Cost, and What Are the Limits?

The observer does the note-taking, and it comes with a 30-day free trial. The checkout page asks for a payment method when you start the trial, and after it ends, memory falls back to your Anthropic plan unless you subscribe. You can also use your own OpenRouter or Gemini key, or your Anthropic plan.

The honest limits are worth stating plainly. First, memory is only as good as what was recorded: sessions in agents that can search but not record add nothing to the history. Second, the observer is a second agent, so it adds cost to every session. Third, the project moves fast — version 16.1.0, with 416 releases since August 2025 — so check the current documentation before you install.

None of those limits cancels the value: a memory that costs a little and occasionally misses a session is still far better than none, and the fallback to your Anthropic plan means the tool keeps working after the trial even if you never subscribe.

Who Should Use Claude-Mem?

Claude-Mem fits any developer whose agent sessions stretch across days or weeks: if you work on one project for months, the memory pays for itself the first time the agent remembers a decision you made last Tuesday. Solo developers get a colleague who was there; teams get a shared record that survives holidays and handovers. Stitch Skills for Google Stitch makes the same point in another field: package a proven way of working once, and reuse it every time.

It fits less well for one-off, disposable sessions: a quick script written in a single sitting does not need a memory. But for real projects — the ones with history, conventions and past mistakes — it is the missing piece that turns a coding agent from a clever assistant into a long-term collaborator.

Frequently Asked Questions

What is Claude-Mem?

Claude-Mem is an open-source tool that gives coding agents persistent memory across sessions. It records what happens in your coding sessions and opens the next session with a compact index of what matters, so the agent resumes work instead of starting from scratch. It has 119,166 GitHub stars, was created on 31 August 2025 and is released under the Apache-2.0 licence.

How does Claude-Mem work?

Hooks hand each tool call to a small local worker, while a second observer agent takes notes as the main agent works. The next session opens with a compact index of what matters and pulls in details only when needed. The mem-search skill searches the recorded history in three steps: index, timeline and details.

Which coding agents does Claude-Mem support?

It fully supports Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode and more. Copilot CLI, Goose, Roo Code, Warp and Zed can search the memory, but their sessions are not recorded. Memory lives in ~/.claude-mem on your machine, and cloud sync is opt-in.

How do I install Claude-Mem?

Run npx claude-mem install in your terminal, with Node 20.12 or newer installed. You can also install it as a plugin with /plugin marketplace add thedotmack/claude-mem followed by /plugin install claude-mem. Memory starts being recorded from your next session.

Is Claude-Mem free, and what does the observer cost?

Claude-Mem is free and open source under the Apache-2.0 licence. The observer comes with a 30-day free trial, and the checkout page asks for a payment method. After the trial, memory falls back to your Anthropic plan unless you subscribe, or you can use your own OpenRouter or Gemini key.

Conclusion

Claude-Mem solves a problem every coding-agent user has felt: the agent that forgets everything overnight. With 119,166 stars, 10,354 forks and 416 releases since August 2025, it has clearly struck a nerve. Hooks, a quiet observer and a compact index turn scattered sessions into a continuing record, stored locally by default, searchable with mem-search and private where you say so. Install it with one command, do a day of real work, and start a fresh session. When it picks up exactly where you left off, you will wonder how you worked without it.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *