Claude Code¶
Connect Claude Code to HydraMem so Claude can search and grow a local, verified memory of your project.
Prerequisites¶
- HydraMem installed and on
$PATH(hydramem --versionto verify): - Claude Code installed (
claude --version).
Connect (MCP)¶
The fastest path — register HydraMem's stdio MCP server with one command:
Restart Claude Code, then run /mcp and confirm hydramem is connected.
Manual config (alternative)
Add to your Claude Code MCP config instead:
How it works¶
With HydraMem connected, Claude Code can:
- Search before answering —
hydra_search_tool/priming_context_toolretrieve verified context from your local graph + vectors. - Remember mid-conversation — the
remembertool persists a verified fact ("we decided to use JWT for auth") into the knowledge graph. - Ingest docs —
ingest_directory_tooladds Markdown notes on demand. - Self-report savings —
hydramem_stats_toolshows token savings.
Just ask: "What did we decide about auth last month?" — Claude searches the palace first.
Keep memory growing¶
Two complementary options:
- Agent-driven (default, zero setup): tell Claude to "remember" key
decisions; it calls the
remembertool. Everything is verified before storage. - Hooks (auto-save): wire a
Stophook that re-ingests your notes after each turn — see Claude Code retention.
Verify¶
# In Claude Code:
/mcp # hydramem → connected
# From a terminal:
hydramem search "auth decision" --project myproject
hydramem stats --last-7d
Troubleshooting¶
hydramemnot found → it isn't on$PATH. Reinstall withuv tool install/pipx, or use the absolute path to the console script in the MCPcommand.- No results → ingest first:
hydramem ingest ./kms --project myproject. - VoG says
n/a→ no local LLM reachable. Pull one:ollama pull gemma4:e4b(verification degrades honestly; retrieval still works).
See also¶
- Claude Code retention — auto-save hooks + backfill.
- MCP tools reference · Configuration