/superbrain:injectfrom superbrain
Injects freeform text into the SuperBrain vault, splitting multi-topic input into scoped notes (project, decision, capture, etc.), linking related notes, and updating today's daily note. Supports verbatim and distill modes.
Ships in superbrain. Installing the plugin adds it to Claude Code.
Manual ingestion path. Auto-capture remains the default — this is for content SuperBrain can't observe.
--verbatim / --distill override.capture/<date>-<slug>.md (or projects/<slug>.md append if --project is passed). No LLM call.route() the session distiller uses.~/.superbrain/inject.log.capture/. (Project notes are created only by /superbrain:discover.)--project <slug> always wins over anything the model emits.Step 1 — gather the user's text. The slash command argument string is in $ARGUMENTS. If $ARGUMENTS is empty, ask the user what they'd like to inject before running the command.
Step 2 — invoke the CLI. Pass the argument string straight through; the CLI parses flags itself.
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/sb-inject.js" $ARGUMENTS
If the user wants to inject the contents of a file (e.g. a meeting summary they pasted into ~/Downloads/meeting.md), use --from-file:
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/sb-inject.js" --from-file "<path>"
Step 3 — when the call returns, surface the output verbatim (it lists the rel paths of every note written) so the user knows where each piece landed.
If exit code is non-zero, surface the stderr message. Common reasons:
empty input / no alphanumeric content / input exceeds 32 KB — user fixable.checkpoint in progress — tell the user to retry in a moment.vault write failed / other — check ~/.superbrain/last-failure.txt./superbrain:discover — discovery synthesizes a project note from a code repo; inject ingests freeform user content.inject --from-file or pastes it as the argument.What the command file sets; muted values are Claude Code's defaults
note-injection, knowledge-management, vault, daily-note, capture, distill
7-day visitors to each command page
npx claudepluginhub m3talux/superbrain --plugin superbrain4 commands in this plugin
/adoptAdopt an existing directory as the SuperBrain vault (marks it, indexes existing notes)./discoverGenerate 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./migrateHard invariants — must never be violatedImport 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.Other plugins' commands for the same job