Claude Code hook

Memtomem

Long-term memory for AI coding agents, kept as Markdown you own. Hybrid BM25 + vector search over your notes and code via MCP — one local store shared across Claude Code, Codex, Cursor, OpenCode, and more. Hook-free by default.

26 stars 50 forksHooks Plugin marketplace Source

Install

Add the plugin marketplace
/plugin marketplace add memtomem/memtomem

Run inside Claude Code, then /plugin to pick what to install from it.

Install
uv tool install memtomem             # no extras — no local ONNX model, Web UI or Korean tokenizer until you add them; Ollama/OpenAI embeddings still work

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/memtomem/memtomem.git

From the README

memtomem
Long-term memory for AI coding agents, kept as Markdown you own. Core usage is hook-free by default: memory changes happen only when you or your agent call memtomem.
🧪 Beta — the nine core MCP tools, the mm CLI, and the format of your memory and config files change only with an Upgrading note in the CHANGELOG. Features marked experimental can change without one; see Stability. Feedback is welcome: Issues · Discussions.

The session loop

Three plugin workflows carry a project's memory from one session to the next, and from one coding agent to another.

Illustrative output — agent wording and results vary.

handoff save writes one Markdown record into the project's own .memtomem/memories.local; brief only reads; update saves decisions, bug fixes, and preferences as separate items. All three run only when you invoke them, and nothing runs in the background. The Project workflows guide has each one's modes, checks, and host-specific names.

Why memtomem?

- Your files stay yours. Memories are plain .md files you can read, edit, and version. The search index is rebuilt from them, day-file namespaces included; tag edits and working state live only in the database (what a rebuild restores).
- Explicit by default. Memory operations run on your CLI or MCP calls (mm add, mem_add, mem_index). Optional client hooks are separate, removable integrations, not a hidden runtime default.
- One store, many tools. Claude Code, Codex CLI, OpenCode, Kimi Code, and Antigravity share one local store, and any MCP client can search it. Hermes Agent joins the same store through its plugin and memory provider, and LangGraph apps get the same search pipeline over a store of their own with langchain-memtomem. memtomem-stm is a separate, optional proxy that surfaces memories…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
Python
License
Apache-2.0
Last updated
17 November 2026
Topics
agent-memoryai-agentsantigravitybm25claude-codeclaude-code-plugincodex-plugincursor-pluginhermes-agenthybrid-searchlangchainlanggraph

FAQ

What is Memtomem?

Long-term memory for AI coding agents, kept as Markdown you own. Hybrid BM25 + vector search over your notes and code via MCP — one local store shared across Claude Code, Codex, Cursor, OpenCode, and more. Hook-free by default. It is a hook for Claude Code, from memtomem/memtomem on GitHub.

How do I install Memtomem?

Run uv tool install memtomem # no extras — no local ONNX model, Web UI or Korean tokenizer until you add them; Ollama/OpenAI embeddings still work, then follow the setup in the README.

Is Memtomem popular?

memtomem/memtomem has 26 GitHub stars and 50 forks. It was last updated on 17 November 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.