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 fmflurryv0.11.0MITIn 1 marketplace
Lets Claude answer from your repo's call graph and index, re-indexing files after each edit. Hooks inject a nudge on every prompt and need the code-memory CLI plus running FalkorDB, Qdrant and Ollama.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
3 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
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.
Claude Code plugin that makes the code-memory backend ambient
inside Claude Code — same spirit as the
OpenCode plugin, adapted to Claude Code's hook
model.
It auto-learns by re-indexing files the agent writes / edits, nudges
the agent toward the index before it grep/reads the filesystem, and
records the session as an episode on stop. The plugin sits next to the
existing code-memory MCP server, which stays available for the agent
to call manually (codememory_retrieve, codememory_record,
codememory_reingest, codememory_callers, …).
| Hook | Behavior |
|---|---|
SessionStart | Background code-memory ingest <cwd> (git delta) so the index reflects out-of-band edits (vim, IDE, git pull, git checkout) since the last session. |
UserPromptSubmit | Detects durable user assertions (preference / decision / rejection / ownership / location patterns) and injects a nudge reminding the agent to call codememory_assert_claim. Resets the per-turn gate flag (see PreToolUse). |
PreToolUse (Read/Bash/Grep/Glob) | First-tool gate: if no explicit codememory_* MCP tool has fired this turn, emits a one-shot soft nudge as additionalContext reminding the agent to query the index before scanning the filesystem. Never blocks; the queued tool still runs. Goes silent once any explicit codememory_* MCP tool fires, and once per turn either way. |
PostToolUse (Write/Edit/MultiEdit) | (a) Fires code-memory reingest <path>. (b) Schedules a debounced code-memory resolve to re-point cross-file CALLS edges. |
PostToolUse (mcp__code-memory__codememory_*) | Marks the gate flag as satisfied so the rest of the turn stays silent. |
Stop | Records the session as an episode via code-memory record with the first user message + git diff as the patch (best-effort). |
All backend calls are best-effort. If code-memory is not on PATH,
every hook degrades to a benign no-op — your Claude Code session is
never blocked.
The code-memory CLI on PATH:
pipx install git+https://github.com/fmflurry/code-memory
# or
uv tool install git+https://github.com/fmflurry/code-memory
If you only have uvx, shim it (see "Custom binary" below).
Running infra: FalkorDB + Qdrant + Ollama with bge-m3. See the main
README.
The repo must have been ingested at least once:
code-memory ingest /path/to/repo
Node.js 18+ on PATH (Claude Code already requires it).
# user scope (default) — pick this for everyday use
./plugins/claude-code/install.sh
# project scope (committed to .mcp.json + scoped to this dir)
./plugins/claude-code/install.sh --scope project
# skip MCP server registration
./plugins/claude-code/install.sh --no-mcp
The installer registers this repo as a local Claude Code marketplace
(via claude plugin marketplace add <repo>) using the manifest at
.claude-plugin/marketplace.json, then installs the plugin via
claude plugin install code-memory@code-memory. The hooks defined in
hooks/hooks.json only fire once Claude Code has the plugin registered
in ~/.claude/plugins/installed_plugins.json — a bare symlink into
~/.claude/plugins/ is not enough.
Restart Claude Code after installing so the new hooks take effect.
The plugin handles the automatic path; the MCP server still exposes
the manual tools so the agent can call them when it judges retrieval /
recording useful on its own. Add to ~/.claude.json:
{
"mcpServers": {
"code-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"git+https://github.com/fmflurry/code-memory",
"code-memory-mcp"
],
"env": { "CODE_MEMORY_PROJECT": "auto" }
}
}
}
Restart Claude Code.
Updating the plugin or MCP server? Claude Code caches the MCP server's tool list per session — after pulling new code, fully restart Claude Code (not just
/clear) so new tools likecodememory_assert_claimbecome visible to the agent. Confirm by running/mcpand verifying the expected tool count.
The plugin reads two environment variables:
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 fmflurry/code-memory --plugin code-memoryPlugins from other owners that cover similar ground