data → information → knowledge → wisdom
Substrate Net reads your code and AI-agent conversations and builds a grounded, queryable picture of what you know across every project — organized as a DIKW pyramid that ends in Wisdom: the competencies you've mastered, the insights your work reveals, and the gaps worth closing next. All local, all grounded.
Each tier is built from the one below. The top is a synthesized professional profile: competency areas graded novice → expert, insights, and the gaps to close.
Every claim carries its source — structural, stated, corroborated, external, or model — so project truth and inference never blur. Synthesis stays clearly tagged as inference.
Tree-sitter resolves exact structure; LLMs read it to produce meaning — fewer tokens, fewer hallucinations. Everything runs on local SQLite, no keys required.
Install, run the interactive menu or setup wizard, refresh with update, and open dashboards.
systemL0–L6, scope × grounding, the agent runtime, storage boundaries, sources, and trade-offs.
commandsInteractive menu plus six essentials: setup, update, doctor, global, watch, and serve.
agent apiWire Substrate Net into Cursor, Claude Code, or any stdio MCP client. Tool catalog included.
visualizeThe DIKW Profile (Wisdom) + Map global view and per-project knowledge graphs — offline, self-contained, shareable.
runtimeBackends, per-agent model routing, ingest/analyze knobs, OpenRouter, concurrency, and cache behavior.
operateWatch daemon, Cursor hooks, and launchd/cron templates to keep the graph fresh.
# 1. Install (Node 20+)
git clone https://github.com/tienan92it/SubstrateNet && cd SubstrateNet
npm install && npm run build:all && npm link
# 2. Backend (optional). Flash-first when OPENROUTER_API_KEY is set; otherwise
# fully local via Ollama — every agent falls back automatically.
ollama pull qwen2.5:14b
ollama pull nomic-embed-text
# 3. First run: discover → estimate → full pipeline → dashboard
subnet setup --plan-only # optional per-phase cost table
subnet setup
# 4. Day to day (or just run `subnet` for the menu)
subnet update # standard: tier-1 analyze + fused enrich
subnet update --fast # lean: transcripts only
# 5. See what you know
subnet global wisdom # leveled competencies, insights, gaps
subnet global dashboard --open # the DIKW profile + knowledge map
Full walkthrough: getting started → · Pipeline cost model: workflow-refactor.md