memarium plugin distills your past Claude Code, VS Code Copilot Chat,
and Codex Desktop / interactive CLI sessions into a typed memory your
agent can recall — the episodes, decisions, dead ends, and durable facts
behind each project. Run /memarium to digest; run
/memarium-recall before any non-trivial task to surface
what's relevant.
Every coding session your AI agent runs is a one-shot. The next session, the next agent, the next morning — none of them remember what you debugged yesterday. They re-derive every architecture decision, re-discover every Mac quirk, re-read code you've already explained twice.
Your Claude Code and Codex session histories are already local. memarium reads and distills them into typed memory, and lets future sessions stand on that work.
/memariumWalks Claude Code, Copilot Chat, and Codex Desktop / interactive CLI history, then distills each session into typed memory:
files_touched, commits,
entities, sourceSessions).semantic /
procedural / core memory, an
entity wiki, and a Q&A layer,
scored for recall.Auto-detects project from cwd; in non-project dirs it asks before doing a full sweep.
/memarium-recallTwo-stage recall before new work. Designed for AI agents to consume cheaply:
whyRecalled reason (cheap, no full bodies).Cheap to invoke; you can fire stage 1 on every "how did we…" question without thinking about token cost.
Recall isn't something you remember to invoke. It's something Claude reaches for itself when it notices the task probably overlaps with past work. Imagine you say to Claude:
> this integration test has been flaky for a week, fix it
You didn't ask "have we seen this before". You asked for a fix.
But Claude reads "flaky test" as a recall trigger and runs
/memarium-recall stage 1 first — a ranked query over
your memory, cheap. Stage 1 surfaces an episode
flaky-test-investigation at the top. Claude reads
its body and pulls back a structured summary:
a1b2c3d.mutex around the shared fixture (no effect; not
a race); bumped the network timeout to 30 s (no effect; no
network involved); bisected dependencies (waste — the failure
predates the suspect upgrade).new Date(); they will hit
the same trap eventually.Now Claude tells you up front:
Per episode flaky-test-investigation: this same suite was flaky in
March, root cause was a timezone assumption. The mutex / timeout /
bisect paths were already tried and ruled out. Want me to apply the
same fixed-zone fix here, plus prophylactically patch the other
three suspect call sites flagged in the episode?
That last paragraph is what makes recall worth invoking
unprompted. Without it, Claude would have walked the same dead
ends — git log would have shown a "fix flaky test"
commit, but commit messages don't record what you ruled out
along the way. Episodes preserve both halves; recall surfaces
them before Claude burns context exploring them again.
Two commands inside Claude Code:
/plugin marketplace add june9593/memarium-plugin /plugin install memarium
That's it. Open any Claude Code session and run /memarium
to digest your local sessions, or /memarium-recall to
surface past notes. No npm install, no external service, your data
stays in ~/.memarium/.
Everything stays under ~/.memarium/session-repo/:
raw_sessions/<tool>/<project>/<date>/*.md — rendered copies of your sessionsmemory/{core,semantic,episodic,procedural}/*.md — typed memory (+ entities/ wiki, qa/).memarium/index.json — per-session entry index.memarium/index.memory.json — typed-memory index (+ index.entity.json / index.qa.json)
The plugin does not create or modify .git/
or any of the optional npm CLI's config files — those are owned by
the cross-device sync tool when present.
To carry your sessions and memory across multiple machines, install the optional memarium npm CLI:
npm i -g memarium memarium init
It syncs ~/.memarium/session-repo/ to a private GitHub
repo across your devices. The plugin and the npm CLI cooperate on
the same spool path with sessionId-keyed entries — install one,
both, or neither based on what you need.
MIT licensed · comprehensive Vitest suite covering autonomy, scan,
orchestrator, digest and memory · self-contained esbuild bundle, no
runtime npm install required.