By zhangfengcdt
Version Claude Code sessions with git-like persistence and taxonomy structure: recall memory by path for quick context retrieval, branch to isolate projects or workflows, and time-travel through history to audit past interactions. Automatically loads on session start, saves on end, and tracks prompts for idle detection.
npx claudepluginhub zhangfengcdt/memoir --plugin memoirIndexes this folder and saves a persistent overview that future sessions pick up automatically. In a git repo this writes `codebase:onboard` (code-shape map). In a non-git folder this writes `project:onboard` (file-shape index built by deterministic extractors — no LLM at index time).
Recall memories from past sessions via memoir. Delegates to the memory-recall skill. Pass --include-metrics to include machine-generated turn statistics (excluded by default).
Manually capture a memory now (independent of Stop-hook auto-capture). Pass -p <path> to skip classification.
Show memoir store status — current branch, commit count, memory count, namespaces.
Launch (or re-open) the memoir web UI for the current project's store.
Populate or refresh a persistent, high-level project snapshot in memoir. In a git repo this writes `codebase:onboard` (code-shape: modules, goals, rules, lessons) — use when: (1) the user asks for onboarding / a codebase tour ('what does this project do', 'give me a codebase overview', 'onboard me to this repo'); (2) the user explicitly runs `/memoir:onboard` or `/memoir:onboard --force`; (3) the SessionStart context hints `no codebase:onboard snapshot yet` or tags the existing snapshot `stale`; (4) a prior `/memoir-sync-branch` suggested refreshing because the merged diff changed code meaningfully. In a non-git folder this writes `project:onboard` (file-shape: per-file structured blobs) using deterministic stdlib extractors instead of LLM passes — use for writing, video editing, bookkeeping, and other mixed-media projects. Snapshot contents seed future sessions via SessionStart injection. Skip for ordinary recall (use memory-recall) or trivial one-file questions.
Recall facts from past sessions via memoir. STORE PATH: ALWAYS compute first via `STORE=$(bash "$CLAUDE_PLUGIN_ROOT/scripts/derive-store-path.sh")` (or `$MEMOIR_STORE`). Pass `-s "$STORE"` on every call — never rely on memoir's connected default (frequently stale). PROCEDURE (single-shot default): ONE `summarize --depth 3 -n default` → pick at most 5–7 keys → batch `get`. Only escalate to drill (batched `--keys`) if the depth-3 response shows `total_memories > 1000` AND the query is broad. Never call `summarize --depth 1` separately — `--depth 3` already returns count + full key listing. EXCLUDE `metrics.*` unless args contain `--include-metrics`. NEVER shell out to `memoir recall` (legacy LLM-bundled, slow, requires OPENAI_API_KEY). First reply line MUST be a mode marker `[mode=get|fast|drill|flat|blame|diff]`. DEFAULT ON: invoke for any question or task that may depend on past preferences, decisions, conventions, or knowledge — questions touching prior state, meta/overview asks, design/implementation prompts where output may reflect prior style, SessionStart hints, or any moment you'd otherwise silently apply remembered facts. SKIP only for mechanical single-symbol lookups, throwaway scratch work, or explicit user opt-out. Defer to memoir-onboard for repo-structure questions (it owns `codebase:onboard`). Cost of an unused recall is low; cost of missing a remembered preference is high.
Automatic memory recall for Claude Code - remembers context from past sessions
Persistent memory for AI coding agents. Survives across sessions and compactions.
Persistent memory across Claude Code sessions using Cognis
Automatic semantic memory for Claude Code — remembers what you worked on across sessions
By Monday, you're re-explaining choices you made on Thursday. PMM fixes that. Every session, Claude loads what it already knows, then adds to it. Structured flat files, git-backed. No database, no setup. Decisions tracked with rationale, not just what but why. git log is your memory audit trail. Memory that compounds, not rots.
Runs pre-commands
Contains inline bash commands via ! syntax
Share bugs, ideas, or general feedback.
Persistent memory for Claude Code. Capture work across sessions and recall relevant context.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim