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 eleboucherv0.7.39AGPL-3.0-onlyIn 1 marketplace
Gives Claude Code persistent memory across sessions, recalling prior context at session start and on each prompt. Hooks capture tool usage and inject memories automatically; the Stop hook can block once to prompt saving decisions.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
persistent-memory, agent-memory, context-injection, session-handoff, memory-recall, auto-save, memory, agent ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
A Claude Code / Codex / Cursor / opencode plugin that wires the memini memory service into the agent's lifecycle. It captures what the agent does, surfaces prior context at session start, and ships skills that teach the agent when to use the memory tools.
| Hook event | What memini does |
|---|---|
SessionStart | Searches prior context, writes a short block to the agent's input |
UserPromptSubmit | Recalls memories relevant to what the user just asked (the prompt is the query) and injects the top hits |
PreToolUse | Before Edit/MultiEdit/Write/Read/Glob/Grep, surfaces related memories |
PostToolUse | Buffers state-changing tool calls locally (no network, no per-call memory) |
Stop | Distills the buffer into a working-tier checkpoint, captures the last turn as episodic memory, scrapes legacy inline <memory> blocks (back-compat), and periodically nudges an auto-save (below) |
PreCompact | Before context compaction, distills the buffer into an episodic emergency checkpoint (Claude Code only) |
SessionEnd | Distills the buffer into one durable episodic session digest |
The table describes the full Claude lifecycle. Codex uses the same shared scripts for its documented events but omits SessionEnd and all transcript-dependent behavior; see Codex CLI for the stable differences. Cursor wires all seven events in its native hook format and shares Codex's transcript-related limitations; see Cursor.
Agents forget to save. So the Stop hook counts the conversation's user messages (from the transcript) and, at most once every MEMINI_AUTO_SAVE_INTERVAL (default 10), blocks the stop once with a short instruction: review the conversation for durable decisions/facts/preferences and persist each via the memory_remember MCP tool. The agent saves, then stops normally (the next Stop carries stop_hook_active and passes through — no loop).
The nudge is event-aware — it interrupts only when there is likely something to save:
memory_remember / memory_update call since the counter last reset — including a subagent's — the nudge is suppressed and the counter re-baselines. A session keeping its memory current is never interrupted.MEMINI_AUTO_SAVE_MIN_EVENTS (default 3) state-changing tool calls were buffered since that reset, the nudge is deferred — the counter keeps growing, not resetting — until the interval doubles (2×), at which point it fires a discussion-variant nudge (there may be decisions or preferences worth saving even with no tool activity).It still nudges at most once per interval even if the agent saves nothing, and never blocks when the transcript is unreadable. On by default; set MEMINI_AUTO_SAVE=0 to disable, or MEMINI_AUTO_SAVE_MIN_EVENTS=0 to drop the activity gate and nudge on the message interval alone. Codex sends no transcript path, and Cursor's stop follow-up would auto-submit the nudge as a user message, so the nudge stays Claude-only.
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.
Plugins from other owners that cover similar ground
npx claudepluginhub eleboucher/memini --plugin memini