Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By zhangfengcdtv0.6.0Apache-2.0In 1 marketplace
Captures facts from Claude Code sessions into a per-project git store, recalled by path. A Stop hook auto-captures durable facts after each response; /memoir:push uploads branches to memoir cloud.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical · 1 caution to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; reads files; reads environment variables (HOME, MEMOIR_STORE); reads your settings.
A command runs shell commands (! syntax) when you invoke it
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Give Claude Code a git-versioned, taxonomy-structured memory. Every captured fact is classified into a semantic path (e.g. preferences.coding.style), stored in a per-project git repo, and recalled by path — not by chunk-matching. Memory becomes branchable, time-travelable, and cryptographically verifiable.
Full reference: zhangfengcdt.github.io/memoir/claude_code/.
Inside a Claude Code session:
/plugin marketplace add zhangfengcdt/memoir
/plugin install memoir@memoir
Hooks register on the next session start. Each project gets its own store at ~/.memoir/<slug>/ (override via MEMOIR_STORE=/your/path). Linked git worktrees of the same repo share one store keyed on the main worktree's path — so memories captured from any worktree are recallable from every other. To opt out, set MEMOIR_STORE per worktree.
The plugin shells out to the memoir CLI. It picks, in order:
memoir on PATH — install with pip install memoir-ai, pipx install memoir-ai, or uv tool install memoir-ai.uvx on PATH — transparent fallback as uvx --from memoir-ai==<pinned> memoir … (~1s first-run warmup, zero install). The pin is set in scripts/resolve-memoir-cli.sh (MEMOIR_AI_PIN) so a silent PyPI publish can't change behavior under you.LLM calls inherit Claude Code's auth automatically (MEMOIR_LLM_BACKEND=claude-cli, MEMOIR_LLM_MODEL=claude-haiku-4-5). Override MEMOIR_LLM_MODEL in your shell for sonnet / opus.
| Component | Role |
|---|---|
| Slash commands | /memoir:onboard, /memoir:remember, /memoir:recall, /memoir:status, /memoir:sync, /memoir:ui, /memoir:pane, /memoir:push. (Admin operations like taxonomy and forget are available via the memoir CLI.) |
| Skills | memory-recall (user facts, auto-triggered, runs in a forked context) and memoir-onboard (maintains the codebase:onboard snapshot). |
| Lifecycle hooks | SessionStart (inject status + taxonomy + unmerged-branch suggestions, with a guided /memoir:sync offer when there's meaningful unmerged work), UserPromptSubmit (surface matching hints), Stop (async auto-capture of durable facts), SessionEnd (cleanup). |
| Status line | [memoir] <branch> · N memories, with warnings for concurrent sessions or sticky-branch mode. On Claude Code 2.1.287+ the mod also appends memoir: <branch> · N memories · +N this turn to the hint line under the prompt, with no settings edit. |
| Mod (Claude Code 2.1.287+) | An in-process hooks module (hooks/mod/) that watches the store and drives /memoir:pane — a live memories, commits and metrics view — plus the hint-line status above. Read-only; the shell hooks keep doing capture and recall. |
Memory branches auto-track code branches — switching to feature/x forks a memoir branch from main so you inherit all prior captures but keep new ones isolated until you promote them with /memoir:sync (or memoir sync-branch from a terminal). For deeper git operations (branch, checkout, merge, time-travel, blame, proof, verify, diff, get, keys), use the memoir CLI directly.
/memoir:sync walks you through promoting unmerged memoir branches into main with a select UI: merge all, choose branches, ignore branches permanently, snooze reminders, or delete branches. State lives next to the store:
<store>/.git/plugin-ignored-branches — one branch name per line; delete a line to unignore.<store>/.git/plugin-merge-prompt-cooldown — "snoozed until" epoch + consecutive-decline count.When the total unmerged work reaches 5 commits (and no snooze is active), SessionStart additionally asks the agent to offer the sync once that session. Declining backs off automatically — 1 day, then 7, then 30 on repeated declines — while an explicit snooze resets the escalation. The status-line count and the informational branch list always render regardless of snooze state.
Auto-promotion. When your code branch is merged into main via a merge commit, the next SessionStart on main promotes its memoir branch automatically (the promote is additive-only and conflict-free) and reports it in the status line. Squash- or rebase-merged branches aren't detected — promote those with /memoir:sync. Disable with MEMOIR_AUTO_PROMOTE_MERGED=0.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub zhangfengcdt/memoir --plugin memoirPlugins from other owners that cover similar ground