Skip to content

SDTK-BRAIN — Standalone Second-Brain Vault Shipped

SDTK-BRAIN is a standalone, local-first second-brain vault CLI. It is deliberately not one of the six SDTK toolkits, not a pipeline stage, and not installed by sdtk-kit — you install it on its own.

  • CLI: sdtk-brain (package sdtk-brain-kit) — standalone, not in the umbrella
  • Full command list: sdtk-brain reference
bash
npm install -g sdtk-brain-kit   # separate from `npm install -g sdtk-kit`

SDTK-WIKI or SDTK-BRAIN?

Both build a local knowledge graph, and they share a graph builder and viewer (byte-identity is CI-guarded). Everything else is different — they answer different questions:

SDTK-WIKISDTK-BRAIN
ScopeOne product — the repo you are working inYou — personal, across every project
LivesInside the repo (.sdtk/wiki); your docs are indexed in placeIts own vault folder, deliberately outside any repo
JobThe memory layer every SDLC phase reads fromA second-brain vault your agent reads and maintains
ContentThe repo's own docs, as they already existraw/ sources you collect → compiled wiki/ knowledge pages
InstallOne of the six, ships in sdtk-kitSeparate: npm i -g sdtk-brain-kit
Q&Asdtk-wiki ask — cited passages free; synthesized answer ProNo ask command — your agent does the thinking

Rule of thumb: SDTK-WIKI is the knowledge of one product. SDTK-BRAIN is the knowledge of one person.

The second-brain pipeline verbs (ingest, compile, discover, enrich) used to live in sdtk-wiki; they were removed in wiki 0.10.0 and now belong to SDTK-BRAIN. See the sdtk-wiki reference.

What a vault is

A vault is a standalone folder — one per person, spanning every project, never inside a product repo:

FolderOwnerHolds
raw/youImmutable sources — never rewritten
wiki/agent + CLIThe compiled markdown knowledge layer
workspace/youScratch space
.brain/CLIMachine state, reports, graph

The vault ships its own CLAUDE.md operating contract: your agent is the knowledge engine; the CLI provides only deterministic rails. Everything is local — no LLM in the CLI, no network, no telemetry, no entitlement.

Quick start

bash
mkdir my-vault && cd my-vault
sdtk-brain init                          # scaffold raw/ + wiki/ + workspace/ + CLAUDE.md
cp ~/some-article.md raw/inbox/
sdtk-brain ingest raw/inbox              # semantic extraction (report-first)
sdtk-brain compile --mode safe --apply   # compile into wiki/ knowledge pages
sdtk-brain search "topic"                # deterministic search over the vault
sdtk-brain open                          # docs view + graph view (local viewer)

init refuses a non-empty folder that isn't already a vault — it will never scaffold into a product repo. Re-runs are idempotent and never overwrite your files.

Maintenance is report-first

bash
sdtk-brain lint                          # orphans, broken links, stale claims, contradictions
sdtk-brain maintain --mode safe          # lint + discover + compile preview in one pass
sdtk-brain discover --plan               # gap-analysis plan from wiki evidence
sdtk-brain status                        # vault status

Reports land under .brain/reports; nothing is auto-modified. compile --apply fails closed rather than overwrite a page you or your agent hand-curated — pass --skip-conflicts to land the additive operations and get an explicit list of what it skipped.

Not goals

  • Not a pipeline stage — SDTK-BRAIN is not part of idea-to-ship and no SDTK phase depends on it.
  • Not in the sdtk-kit umbrella — it installs no SDTK skills and requires no other kit.
  • No ask command in the CLI, no cloud, no network, no entitlement.

Where to go next

SDTK — governed, auditable, resumable AI-assisted engineering.