Claude Code · Local SQLite Memory

Go beyond static CLAUDE.md with searchable cross-project Claude Code memory.

CLAUDE.md captures evergreen repo rules, but real debugging breakthroughs live buried inside dozens of Claude Code JSONL sessions. Brainmi indexes every session locally and serves distilled Memory Cards via offline MCP.

Claude CodeCursorClaude CodeOpenAI Codex
Brainmi · macOS Local Vault
OpenAI Codex (Local)Brainmi SQLite Vault
Read-only openat(O_NOFOLLOW)
$ codex "diagnose webhook signature drift"
Found mismatch in Creem HMAC verification middleware.
CREEM_API_KEY=creem_live_98f2a1c0b74e882a
Authorization: Bearer eyJhbGciOiJFZERTQSJ9.demo_token
Owner contact: ops-lead@acme-studio.io
Indexed locally at ~/Library/Application Support/Brainmi/brainmi.dbステップ 1/4
01

Valuable root-cause analyses vanish inside ~/.claude/projects JSONL logs once a terminal closes.

02

Static CLAUDE.md files bloat quickly if you stuff transient debugging history into them.

03

Insights discovered in Claude Code cannot be reused when you jump into Codex or Cursor.

Step-by-step setup on macOS

1

Auto-index Claude Code JSONL transcripts

Brainmi scans local Claude Code project logs read-only into one fast SQLite full-text index — keeping ~/.claude untouched.

2

Distill high-signal Memory Cards with local CLI

Select any dense troubleshooting session and click Distill to generate Goal, Decisions, Constraints, and Open Questions locally.

3

Expose dynamic memory via offline brainmi-mcp

Keep CLAUDE.md lean for stable conventions while Claude Code, Codex, and Cursor query Brainmi MCP on demand for specific historical threads.

Interactive Browser MCP Config Generator (Phase W2)

Brainmi macOS Desktop already writes and backs up your MCP config automatically in one confirmed click. A browser-only preview generator is slated for the next website release.

よくある質問

Does Brainmi replace CLAUDE.md?

No — it complements CLAUDE.md. Keep repo-wide permanent rules in CLAUDE.md, and let Brainmi index dynamic session history and cross-agent handoffs.

Does Brainmi modify ~/.claude JSONL session logs?

Never. Brainmi reads transcripts strictly read-only with symlink protection and writes only to its own SQLite database.

How does on-demand Memory Card distillation work without an API key?

Brainmi invokes your already-authenticated local Claude Code or Codex CLI on demand — zero extra LLM billing or cloud relay.

Can I search across all my Claude Code repositories at once?

Yes. Brainmi indexes project labels alongside full-text messages so you can filter by repo, tag, pin, or task thread instantly.

Related cross-agent guides