Claude-Mem: Give Your AI Coding Agent a Memory That Lasts

Claude-Mem: Give Your AI Coding Agent a Memory That Lasts

Every new session, your coding agent starts from zero. It re-reads the same files, re-asks the same questions, and repeats mistakes you already fixed together. Claude-Mem fixes that by remembering for it. The project is written in TypeScript, released under the Apache 2.0 license, and has about 119,000 stars and 10,000 forks on GitHub.

What it is

Claude-Mem runs a second agent beside your coding agent that takes notes while it works. Hooks hand each tool call (what the agent reads, edits, and runs) to a small local worker. An observer model turns that activity into short observations and writes a summary when the session ends. Your next session in that project opens with a compact index of what matters, and the agent pulls in full details only when it needs them. Despite the name, it works with Claude Code, Codex, Cursor, OpenCode, and 11 more agents.

Key features

  • Picks up where you left off. Memory kicks in from your second session in a project, or run /learn-codebase to front-load a whole repo.
  • Token-efficient search. The mem-search skill uses three MCP tools (search, timeline, get_observations), so the agent only pays for the details it opens.
  • Local storage. Memory lives in ~/.claude-mem on your machine, in SQLite with Chroma for semantic search. Cloud sync is opt-in.
  • Keep secrets out. Wrap anything in <private> tags and it never gets stored.
  • Web viewer. A local "My Work" page shows live requests, progress, and saved sessions.
Logitech G PRO X Wireless Lightspeed Gaming Headset on Amazon

As an Amazon Associate I earn from qualifying purchases.

Why it matters

Context is the biggest limit on today's AI coding agents. Claude-Mem treats memory as infrastructure: it runs on its own once installed, and every observation has an ID you can cite or open later. It's a good fit for developers who spend long stretches in one codebase with Claude Code or a similar agent. One thing to know: anonymous usage analytics are on by default, and npx claude-mem telemetry disable turns them off.

Getting started

Run npx claude-mem install. The installer finds the agents on your machine and asks which to set up. You then choose a memory provider: your own OpenRouter or Gemini key, your Anthropic plan, or the hosted claude-mem observer (a 30-day free trial that asks for a payment method). Claude Code users can also install it from the plugin marketplace with /plugin marketplace add thedotmack/claude-mem. The documentation covers configuration, architecture, and troubleshooting.

View the repo on GitHub: github.com/thedotmack/claude-mem

Website | Docs | npm


You’re invited to Grok Bot
Scott invited you to try Grok Bot, free for 2 weeks. Hand off real work and everyday tasks, and come back to them done.