Give your agent a knowledge base
Wire knomit into Claude Code or Claude Cowork — slash commands, hooks, and the bridge.
knomit is a distributed, decentralized knowledge base built from facts — knowledge + commit. This page gets you from zero to a running server with a peer connected.
git.xcode-select --install),
or gcc / build-essential on Linux. The build is CGO-based (SQLite and the
ONNX bindings are compiled in).Clone the repository and enter it.
git clone https://github.com/knomit/knomit.gitcd knomitDownload the native libraries (one-time).
make setupBuild the web frontend and the Go binaries.
make buildStart the server.
make runOpen http://localhost:19278/ for the web UI. The default repo
(trunk) is created automatically on first run.
The simplest setup uses knomit-bridge over stdio — it auto-discovers your
agent branch from the running server, so you never look it up by hand.
{ "mcpServers": { "knomit": { "command": "dist/knomit-bridge", "args": ["--repo", "trunk", "--source", "trunk", "--profile", "code"] } }}--source is the slug used in src:// refs (defaults to --repo if omitted).
Connect directly, substituting the branch logged on startup (/ → : in the
URL path):
{ "mcpServers": { "knomit": { "type": "streamable-http", "url": "http://localhost:19278/api/v1/repos/trunk/branches/agent:hostname-abc123/mcp" } }}With an agent connected, ask it to remember something. Under the hood it calls
knomit_learn, which writes a markdown fact and commits it:
---type: observationconfidence: 0.8domain: [music]entities: [alice]refs: - knomit://github.com/org/repo/src/preferences.ts---Alice prefers rock music over jazz.That write is one atomic, signed git commit on your agent’s branch. Browse it in
the web UI, or query it back with knomit_query.
Give your agent a knowledge base
Wire knomit into Claude Code or Claude Cowork — slash commands, hooks, and the bridge.
Understand the model
Read Concepts for facts, the ontology, branches, provenance, and the temporal graph.
See how it fits together
The Overview & architecture — the three artifacts and how a request flows.
Wire it into tools
The MCP tools reference and the REST API.