Connect SuperLocalMemory to Claude Code via MCP and optional lifecycle hooks. Memories persist across sessions in a local SQLite store; hook behavior and recalled scope must be verified in the installed release.
Package installation is separate from configuration. Review and approve hook and MCP changes during setup, then run the integration contract.
Use pipx or uv with Python 3.11–3.14. Mode A does not require a model-provider key for its core path; optional modes and features have separate requirements.
pipx install superlocalmemory slm setup
Run the connect command to review and apply the Claude Code MCP configuration and optional hook setup. Review each proposed change before confirming.
slm connect claude-code
Or configure manually — add the server to your Claude Code MCP settings:
{ "mcpServers": { "superlocalmemory": { "command": "slm", "args": ["mcp"] } } }
Restart Claude Code. Ask it to call get_status — you should see the active mode, profile, provider boundary, and store counts. Then run a remember → recall round trip.
slm status
# Expected: mode: A · provider: none · fact_count: 0After explicit setup via slm connect claude-code, Claude Code can fire optional hooks at session lifecycle events. Inspect hook configuration, latency, and recalled evidence before relying on them.
SessionStart can inject bounded recalled context before the first message. Inspect scope, provenance, truncation, and failure behavior — recalled context is not a complete restore of all prior facts.
PostToolUse can observe supported tool events when configured. Verify event coverage, rate limits, redaction, and whether the captured event becomes durable memory. An observation is not automatically a confirmed fact.
The Stop hook can generate a session summary with available git context. Verify the stored result and the failure path. The next session receives bounded recalled context — critical state should still be re-verified.
Hook failures are designed to be absorbed without blocking the Claude Code session. Verify timeout, error, and parallel-session behavior in the installed release. Run slm hooks remove to opt out and verify the resulting configuration.
Core memory state is SQLite-backed in the configured data root. Claude Code, optional providers, connectors, backups, proxies, and model downloads retain their own network behavior and require separate assessment.
Folder conventions, module boundaries, dependency choices, and the reasoning behind them — stored explicitly and available for selective recall.
Naming patterns, formatting preferences, TypeScript strictness, import ordering, and testing conventions you store explicitly during sessions.
Known issues, workarounds, edge cases investigated, and bugs fixed — available for selective recall across sessions, subject to retrieval quality.
slm hooks remove to opt out and verify the resulting client configuration. You can still use the MCP tools directly in Claude Code without lifecycle hooks.Install, connect, then verify the memory round trip in Claude Code before treating it as active.