Skip to content
For your teamWhat one developer teaches an agent, a teammate’s agent can use.How it worksWhere a lesson starts and how it reaches every agent.Code reviewYour team’s knowledge, checked in every PR.SecurityWhat it sends, what it changes and how to leave.Book a call30 minutes with Roei, if you want a hand. Never required.
On your ownYour corrections follow you across agents and repos.Install itnpx harborloop init, in your repo.Every commandWhat the CLI does, and how to take it off again.
DocsPricingSign in
Start free →
For teamsFor individualsHow it worksCode reviewSecurityDocsPricingSign inStart free →
Home/Blog

Blog

  • Supermemory alternatives
  • PR review against AGENTS.md
  • Claude Code second brain
  • Why Copilot ignores it
  • Cursor Team Rules
  • Rules vs skills
  • Claude Tag vs Claude Code
  • GitHub Copilot Memory
  • Codex memories
  • Cursor memories
  • Claude Code auto memory
  • Claude Code team memory
  • Supermemory Company Brain alternatives
  • 3,905 files checked
  • Why Codex ignores it
  • Mem0 alternatives
  • Codex skills
  • Karpathy's LLM wiki
  • Auto mode
  • Memory or documentation?
  • Best company brain tools
  • Claude Code and AGENTS.md
  • Claude Code skills
  • Claude Code hooks
  • claude-mem
  • Claude Code best practices
  • Karpathy CLAUDE.md
  • AGENTS.md vs CLAUDE.md
  • Cursor rules
  • copilot-instructions.md
  • Why Claude ignores it
  • CLAUDE.md length
  • Committing CLAUDE.md
  • Agent memory compared
  • CLAUDE.md vs skills vs hooks
  • Make Claude Code remember
  • Review comments to rules
  • Slack decisions
  • Company brain
  • Context engineering, Claude 5
  • Context rot, stale rules
  • AGENTS.md research
  • ADRs for agents
  • Memory poisoning
  • Best MCP memory servers
  • Shared memory across agents
  • Growing CLAUDE.md
  • Which rules got used

Blog

What is claude-mem, and is it enough for a team?

Published: October 30, 2026

claude-mem is an open-source plugin that gives Claude Code memory across sessions. Hooks record what happens as you work, a local worker compresses it into observations stored in SQLite and a vector index, and the next session starts with the relevant ones. It is personal memory: one developer, one machine, one agent's history.

Checked against the claude-mem repository on 2026-09-23 and again on 2026-10-06 (version 13.33.0, Apache 2.0, about 97,000 GitHub stars). It is one of the most installed Claude Code plugins, and it is worth understanding both what it does well and what it was not built to do.

What is claude-mem?

Claude Code forgets everything when a session ends. Its built-in fix is CLAUDE.md, which you write by hand, and auto memory, which Claude writes to your machine. claude-mem is a third answer: capture the session automatically, compress it with a model, and hand the useful parts back later. You do not decide what to remember. It watches.

How does claude-mem work?

PartWhat it does
Lifecycle hooksSessionStart, UserPromptSubmit, PostToolUse, Stop and SessionEnd. They see prompts and tool use as they happen.
Worker serviceA local HTTP service, run with Bun, that turns raw tool activity into compressed observations and summaries. It also serves a web viewer.
StorageSQLite for sessions, observations and summaries, plus a Chroma vector database for semantic and keyword search. Settings live in ~/.claude-mem/.
Search over MCPsearch returns a compact index, timeline gives the context around a hit, get_observations fetches full detail for chosen ids.
PrivacyAnything inside <private> tags is not stored.

The search design is the interesting part: a cheap index first, full detail only for what survives filtering. It is the same progressive disclosure Anthropic recommends for skills, applied to memory.

How do you install claude-mem?

From the README, inside Claude Code:

/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem

Or npx claude-mem install, which also detects Cursor, Windsurf, Codex CLI, OpenCode and a few other agents. The installer asks you to sign in and pre-selects CMEM Pro, a paid hosted observer with cloud sync ($30 a month). The README offers it free for up to 14 days, after which memory falls back to your Anthropic plan unless you subscribe. The engine itself is free and stores memory on your machine, though a local install with --provider claude still contacts cmem.ai once, at sign-up, with a numbers-only usage summary.

claude-mem vs Claude Code auto memory vs CLAUDE.md

CLAUDE.mdClaude auto memoryclaude-mem
Who writes itYouClaudeHooks and a compression model
What it holdsRules and commandsNotes Claude chose to keepCompressed observations of every session
WhereThe repoYour machineYour machine; hosted sync on the paid CMEM Pro
Shared with the teamIf committedNoNot yet: TeamBrain is a pilot
Reviewed before useThrough code review, if committedNoNo

The comparison across tools, including Codex and Copilot memory, is in Claude Code memory vs Codex, Cursor and Copilot.

Is claude-mem good for a team?

It was not built for one, and the README does not claim otherwise. That matters in three concrete ways.

It remembers what one person saw. Your teammate's session last week, where the reviewer explained why webhook retries stop at five, is in their memory, not yours. Two engineers on the same repo build two different memories of it.

Nobody reviews what it stored. A compressed observation of a session is the model's summary of what happened, including the wrong turns. For one person that is a fair trade. For a team, an unreviewed memory that feeds every future session is the everyday version of memory poisoning: not an attack, just a mistake that keeps getting served.

It captures sessions, not decisions. Most of what a team has decided was never said to an agent. It was said in a pull request review or a thread in #eng-payments. A memory built from agent sessions cannot know it until someone repeats it to the agent.

When should you use claude-mem?

When you work alone, or when your own continuity is the problem: long projects, many sessions, context you are tired of re-explaining. It is a good tool for that, and its engine runs locally. Pair it with a short CLAUDE.md for the rules that must hold every session, and a hook for anything that must never happen. See the hooks guide.

Where Harbor fits

Harbor is the team half. It reads where decisions are made (Slack threads, pull request reviews, docs), a person approves what becomes a fact or a policy you set approves the routine ones, and every agent on the team, in Claude Code, Codex or Cursor, is served the approved facts that apply to its task. What a session learns goes back through the same gate before anyone else's agent sees it, and a clash Harbor cannot settle is held for a person.

The two can sit side by side: personal memory for your own sessions, approved team facts for what everyone's agents must know. Harbor also counts, per fact, how often it was served against how often an answer cited it, so the team can see which facts earn their place. A cite is evidence, not proof. See served vs cited.

How the team memory is built. Knowledge covers the five kinds of fact and the review modes, and the quickstart has the steps: sign up, name your workspace, then run npx harborloop init.

Questions

What is claude-mem?

claude-mem is an open-source Claude Code plugin that records your sessions through hooks, compresses them into observations stored locally in SQLite and a vector index, and gives the relevant ones back to later sessions.

How do I install claude-mem?

In Claude Code, run /plugin marketplace add thedotmack/claude-mem and then /plugin install claude-mem. It can also be installed with npx claude-mem install.

Is claude-mem the same as Claude Code auto memory?

No. Auto memory is built into Claude Code and holds notes Claude chooses to keep. claude-mem is a separate plugin that captures every session automatically and adds search over MCP.

Can a team share claude-mem memory?

Not yet. cmem.ai lists TeamBrain as in development: a pilot with a small cohort of teams and no public price. Today each developer builds their own memory from their own sessions, and nothing is reviewed before it is reused.

Does claude-mem work with Codex, Cursor or OpenCode?

OpenCode, yes: npx claude-mem install --ide opencode, for OpenCode 1.3.4 or later. The README covers Codex through T3 Code (npx claude-mem install --ide t3code) and documents no install for Cursor, as of version 15.7.0 on 30 October 2026. Codex also has memories of its own, and Cursor removed its Memories feature in version 2.1.

Your team’s rules, in every agent, checked on every PR.

Harbor is shared memory for your team’s Claude Code, Cursor, Codex and Copilot. Free for you and one teammate. No card. No end date.

Start free →

Product

  • How it works
  • Every agent
  • Code review
  • The result
  • Security
  • For coding agents
  • Pricing

Developers

  • Docs
  • Quickstart
  • CLI
  • MCP server
  • Served and cited
  • Rule-file checker
  • Blog

Guides

  • Why Claude ignores CLAUDE.md
  • AGENTS.md vs CLAUDE.md
  • Does Claude Code read AGENTS.md?
  • Why Codex ignores AGENTS.md
  • Why Cursor ignores rules
  • Copilot instructions vs AGENTS.md
  • Shared memory across agents
  • Make Claude Code remember

Compare

  • vs Mem0
  • vs Zep
  • vs Unblocked
  • vs ByteRover
  • vs Cognee
  • vs Hindsight
  • vs OpenViking
  • vs Supermemory
  • vs Glen

Company

  • Questions
  • Contact
  • X
  • LinkedIn
  • Privacy Policy
  • Terms of Service
  • Data Processing Agreement
  • Refund Policy
© 2026 HarborStart free