mnemo
mnemo keeps what your Claude Code sessions learned, puts the relevant piece
in front of the next prompt, and fans out sessions that start out knowing it.
What that adds over Claude Code's own memory is measured below.

Monday, in your app repo, you tell Claude: "never use npm in this repo, always
yarn." You run mnemo learn — or you just end the session and let it happen.
Thursday, a new session, you ask Claude to add a dependency: that rule is
injected before Claude answers, only when it clearly applies.
What gets injected is the rule's whole body, under a reflex context:
header and a • [[use-yarn-not-npm]]: line: a median of about 300 tokens a
rule, and never more than 9,000 bytes for the whole block, the most Claude
Code reads inline from a hook. A body too long to fit is cut at a line break
and ends with its page's path; Claude can call read_mnemo_rule over MCP for
the rest, and /mnemo:doctor tells you if that server is not connected. A
rule that recurs in two different repos is promoted to universal and follows
you everywhere.
Install
Inside Claude Code, type:
/plugin marketplace add xyrlan/mnemo
/plugin install mnemo@mnemo-marketplace
That's the whole thing. No terminal, no Python, no Node — mnemo ships as a
self-contained binary that the plugin fetches for your platform on first use.
Restart Claude Code, and it's running.
Claude Code deletes transcripts after 30 days unless cleanupPeriodDays says
otherwise, and they are what mnemo learns from: add "cleanupPeriodDays": 365
to ~/.claude/settings.json (mnemo init merges it in for you, and mnemo doctor warns while it is missing).
Other ways to install
Via npm — if you'd rather have mnemo on your $PATH:
npx @xyrlan/mnemo install # prompts for global or project scope
npx @xyrlan/mnemo install --yes # global, no prompts
npx @xyrlan/mnemo install --project --yes
Via pipx / uv — for dotfile-managed setups and CI:
pipx install mnemo-claude # or: uv tool install mnemo-claude
mnemo init # global, or `mnemo init --project`
Both need Python 3.8+ (uv brings its own). Details, including what mnemo init writes, how to undo it, and what to do if the plugin lands on top of an
older install, in docs/getting-started.md.
Check it worked
Correct Claude in your own words, run mnemo learn, read the output, type
your next prompt on that subject (the five minutes).
Step 3 is the whole feature:
read: ~/.claude/projects/-Users-you-github-app/3f2a….jsonl
briefing: bots/app/briefings/sessions/3f2a….md (1 correction(s))
learned: use-yarn-not-npm — Use yarn, never npm (evidence: "never use npm in this repo, always yarn")
next prompt about this will surface it — check with `mnemo why`
The evidence: quote is your own sentence, carried back to you. A rule with a
quote is a rule mnemo can prove you asked for.
Per-prompt recall is silent by design — it injects a rule only when one
clearly beats the rest — and /mnemo:why shows each decision with its
arithmetic. Silence with a reason is the difference between "my vault has
nothing useful" and "my thresholds are a little too tight".
Does an injected rule change the answer?
Yes, when it is on point. On the maintainer's own prompts: 64 (prompt, rule)
pairs where a blind rater said the rule applied, each answered twice by the
same model, once as typed and once with the rule injected exactly the way the
hook injects it, two samples per arm, then scored by a judge that cannot see
which arm it is reading:
followed the rule without it 41.0% with it 72.1% (61 pairs judged)
lift +31.1 pp 95% CI [+19.7, +42.6]
claude-sonnet-5, no tools, tools/measure_rule_lift.py
(#434). That measures the rule once it arrives. Whether the right rule arrives
is the other half, and it is yours to check: /mnemo:why shows every
decision with its arithmetic, and mnemo replay runs your own history through
it.
Does it prevent a repeated correction? No, measured. mnemo's promise is
that the agent does not repeat a mistake you already corrected. On the
maintainer's own history (120 of 265 human sessions, 2026-08-26 → 09-27), two
blind raters on different models judged, for every prompt, which rule you had
already taught by correcting the agent applied to it. The transcript then
showed whether mnemo had put that rule in context, and whether Claude Code's own
CLAUDE.md or auto-memory already carried it. Multiplied by the lift above: