Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By m3talux
Automatically capture Claude Code sessions into a structured Obsidian second brain with hybrid search, daily notes, and autonomous recall of past decisions and project context.
npx claudepluginhub m3talux/superbrain --plugin superbrainAdopt an existing directory as the SuperBrain vault (marks it, indexes existing notes).
Generate a substantive project note for the current (or specified) repo. Forces a fresh discovery — if a project note already exists, appends a new `## SuperBrain discovery (date)` section without clobbering existing content. Use when SuperBrain didn't auto-discover (e.g., the project's slug collided with a note migrated from a legacy vault), or to refresh an out-of-date project note.
Inject freeform text into the SuperBrain vault. SuperBrain splits multi-topic input, places each item in the right scope (project / decision / capture / etc.), links related notes, and updates today's daily note. Short single-blob input is preserved verbatim; longer or multi-paragraph input is split via the inject distiller. Provenance (`source: inject`) is recorded on every written note. Use whenever you want to record something the auto-capture hooks didn't observe — side thoughts, meeting summaries (e.g. piped from a mem.ai MCP), ad-hoc notes from any session.
Import an existing Obsidian vault into SuperBrain's structure — non-destructive (source is read-only; SuperBrain's vault gets copies). Optional path argument; otherwise Claude finds the vault.
Internal SuperBrain skill — run by the detached capture child to distill a session-event delta into routed Obsidian notes. Not for direct user invocation.
Search the user's SuperBrain second-brain vault. Use whenever the user references past work, prior decisions, "how did we", "did we already", earlier sessions, a project's history, or anything that may already be recorded — before answering from scratch.
Matches all tools
Hooks run on every tool call, not just specific ones
Admin access level
Server config contains admin-level keywords
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Extended Second Brain that learns as you work in Claude Code
Give your AI coding agent a permanent second brain. Connect Claude Code to an Obsidian vault to auto-record decisions, instantly recall project context, and orchestrate automated refactoring for your team's knowledge base.
Self-improving learning loop across Claude sessions — retrieval, capture, consolidation, and cross-project transfer
A self-developing knowledge management system for Claude Code. Bridges AI memory to an Obsidian vault with feature-organized spine notes, auto-capture skills, and color-coded graph visualization.
Create and edit Obsidian vault files including Markdown, Bases, and Canvas. Use when working with .md, .base, or .canvas files in an Obsidian vault.
Bidirectional knowledge flow between Claude Code and Obsidian — 20 MCP tools, skills, and hooks for PKM
Session memory for Claude Code — a second brain that builds itself.
Every Claude Code session — across every project, on every machine — is captured into a plain Obsidian markdown vault you fully own. Zero config, no LLM of its own, no cloud. SuperBrain observes the sessions you're already running and writes the journal you never have time to.
Status: in active development. Interfaces and behavior may change before a tagged release.
Every Claude Code session ends and the reasoning vanishes. Decisions, trade-offs, the "we tried X and it didn't work" history — gone with the terminal scrollback. CLAUDE.md fixes the rules; SuperBrain fixes the journal. The Claude Code memory ecosystem has split in two, and neither half is what you actually want:
No mature tool does all of: globally installed → automatic capture → into a plain Obsidian vault → with incremental daily notes → that you fully own and can git-sync. SuperBrain is that missing bridge.
This isn't vibes: ~23 prior-art projects and the current Claude Code platform were surveyed, and every architectural decision was challenged before a line was written.
# In Claude Code:
/plugin marketplace add m3talux/superbrain
/plugin install superbrain
That's it. On the first session the plugin runs a one-time setup (installs its
search dependencies in the background) and tells you it's doing so; capture is
fully active from the next session. SuperBrain writes to its own vault at
~/.superbrain/vault — a fixed, predictable location with no environment
variables to set. Point Obsidian at that folder and you're done.
If you already have an Obsidian vault you want to bring along, see
Vault setup below — /superbrain:migrate is the preferred path.
Installed at user scope, the plugin's hooks register for every project automatically — there is nothing else to do, ever.
If SuperBrain saves you context, please star ⭐ — it's the only signal we have.
Tested on Node 20 LTS and Node 22.
flowchart LR
A[Tool use / prompt] -->|PostToolUse, UserPromptSubmit<br/>async, no LLM| B[NDJSON log<br/>+ salient markers]
B --> C{Checkpoint?<br/>PreCompact / SessionEnd /<br/>Stop if pending}
C -->|detached, lock-serialized| D[sb-distill<br/>claude -p]
D --> E[Router]
E --> F[(Obsidian vault<br/>notes only)]
D -.->|incremental rebuild| I[Daily note for today]
I --> F
C -.->|byte cursor| B
PostToolUse / UserPromptSubmit hooks append a compact event line to a per-session NDJSON log. No LLM on this path, so it can never rate-limit, stall, or disrupt your turn.PreCompact, SessionEnd, or a pending-gated Stop, one detached, lock-serialized claude -p reads the delta since a byte-offset cursor, classifies it, and writes routed notes via an in-process vault writer.daily/<date>.md from the per-session state (digest line + routed-note links + threads). Deterministic concat, no extra LLM call.Capture