Knowledge Forge
Turn "explain X" moments into a verified, linked Obsidian vault — zero model calls required.
Manifesto ·
Install ·
Usage ·
Architecture ·
Privacy ·
Documentation ·
License
Turns "explain X" moments into permanent, linked, verified markdown notes in an
Obsidian vault — so the second time the question comes up, it's a vault read instead of
a research run.
The defensible core is a Go static-analysis engine (dedup recall, schema validation,
drift detection, report generation) that runs with zero model calls. An optional
four-tier LLM layer (none / host / api / advisor-critique) sits on top,
configurable per pipeline stage — the static core works standalone with no API key and
no network call.
Why it's built this way
Most of the design here is a set of refusals, and they're deliberate rather than
incidental: no model call where a deterministic answer exists, no embeddings, markdown as
the only source of truth, a model that critiques but never returns a rewrite, no silent
publish, drift anchored to git rather than to your editor, no question text in any log,
and no upload path anywhere in the tree.
All ten, with the reasoning behind each, are in the manifesto. It's
the short read if you want to know what this project won't do before you read what it
does.
Install
As a Claude Code plugin, two steps — add the marketplace, then install the plugin from
it:
claude plugin marketplace add mimir45/Knowledge-Forge
claude plugin install forge@knowledge-forge
(Inside an already-running Claude Code session, /plugin install forge@knowledge-forge
does the same thing.) This pulls in the forge skills, agents, and hook bindings
(hooks/hooks.json) — Claude Code discovers all of them from this repo's default
component paths, no manual settings.json edits needed.
Requirements: git on PATH (pkg/gitsig shells out to the git CLI for churn,
ownership, and co-change coupling analysis). Nothing else for the portable build; see
"Build lanes" below for what the optional code-index feature adds.
Then run the setup wizard once, before Knowledge Forge is usable — it writes your
config and developer profile and nothing else:
forge init --vault ~/Documents/Base --language java \
--frameworks spring-boot,hibernate --seniority senior
Swap the flags for your own stack (--vault is the only required one). It writes two
files and prints what it wrote, nothing more:
wrote /Users/you/.forge/forge.config.md
wrote /Users/you/Documents/Base/profiles/me.md
vault /Users/you/Documents/Base
engine claude-only
stack java, spring-boot, hibernate
trigger ask
profile senior, depth 4
next: forge index --vault "/Users/you/Documents/Base", then ask a question.
Both files are yours to edit by hand afterwards — forge init won't touch them again
without --force. Inside a Claude Code session you can also just ask ("set up
knowledge forge here"); the forge-init skill asks the same handful of questions
conversationally (stack, seniority, auto-create or ask-first, a stack preset, a model
budget) and runs this same command for you. See the
usage guide for the full flag
reference.
How to use it
Once the plugin is installed, Knowledge Forge mostly works in the background: as you
work with Claude Code, it recalls existing notes before letting a question turn into a
fresh research run, and captures new explanations into your vault as they happen. The
forge CLI is there for everything else, manual or scheduled: