IDE Integration

Persistent Memory for Claude Code

RustGraph registers one MCP server (rustgraph) and two lightweight Python 3 hooks inside ~/.claude/settings.json so every project folder gets automatic context injection.

How the Two Hooks Work

scripts/memory_context.py

Session Start Brief

Matches the active directory to a project group and injects open bugs, todos, decisions, every module/feature status, and the last 3 sessions.

scripts/memory_reminder.py

Stop Hook (FACTS: Only)

If files changed after the last memory update, asks once to save structured FACTS: lines—never raw transcripts and never a second LLM call.

Structured Stop Hook Format

FACTS: capture format
FACTS:
decision | token-auth | Store only blake3 token digest in auth.token_blake3_hex
bug      | fix-14     | Resolved SQLite migration LF line-ending check

After running python scripts/install_user.py, start a brand-new Claude Code chat so it loads the full 25+ MCP tool list.