
Knowing
io.github.blackwell-systemsPublished by GitHub account blackwell-systemsv0.16.0Updated Oct 24, 2026
Content-addressed code graph with 22 MCP tools for AI agents.
Overview
A local MCP server that indexes a code repository into a content-addressed graph and gives an assistant ranked code context, blast radius, test scope and verif-
- What you can do
- Build and inspect a code graph: index repositories, query the graph, view repo structure and cross-repo callers, and trace dataflow and paths between symbols. Understand impact: compute blast radius for a change, rank context for a task, files or pull request, and explain why a symbol ranked where it did. Compare and review: diff snapshots and semantic changes, assess PR impact, and list stale edges. Query runtime and ownership: inspect runtime traffic, dead routes and trace stats, and look up code owners, communities and test scope. Prove and maintain: generate Merkle proofs and absence proofs, verify graph integrity, and evict a repository's data.
- When to use it
- Useful when an assistant works inside a codebase and needs graph-ranked context instead of repeated grep-and-read loops, or when you want impact analysis, test selection, PR review support, or offline-verifiable proofs of code relationships for audit.
- Requirements
- Runs as a local process over stdio, installed via npm (or Homebrew, pip or Go per the README). Needs a git repository to index; the server auto-indexes on first launch, which takes roughly 10 to 30 seconds. No API keys or model downloads are required. Runtime trace tools need OpenTelemetry trace ingestion.
Installation
In SourceWeft
- Open Knowing in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
English · 简体中文 · Русский · हिन्दी · العربية
[Blackwell Systems] [DOI] [MCP Tools] [Languages and Formats] [License]
Self-adapting code intelligence engine. Observes its own graph density and adjusts retrieval strategy automatically. 38 edge types, 28 MCP tools, 263 equivalence classes, cryptographic proofs. Gets smarter with scale, not dumber.
[!NOTE] Built on published research: Content-Addressing as a Computation Primitive for Software Relationship Intelligence (DOI: 10.5281/zenodo.20342255)
Your architecture diagram says service A calls service B. Can you prove it?
knowing can. It builds a content-addressed graph of extracted code relationships, snapshots it as a Merkle tree tied to a git commit, and generates cryptographic proofs that verify offline. Agents use it for ranked context. Security teams use it for audit. Platform teams use it to compare code against production traces.
It gets better every time you use it. When code changes, stale knowledge expires automatically.
That's it. The MCP server auto-indexes your repo on first launch. No model downloads, no API keys. Your agent now has ranked context, blast radius, test scope, and implicit noise demotion that improves results during active sessions.
Verify it works: Ask your agent: "Use the context_for_task tool to find symbols related to [something you know exists in your code]." You should see ranked symbols with scores and file paths from your codebase. If results are empty, the repo is still indexing (10-30 seconds on first launch). If results seem unrelated, see Troubleshooting.
Not using an AI agent? Skip to CLI usage below.
Three Things, One Architecture
knowing is three products built on one foundation (content-addressed graph with hierarchical Merkle trees):
1. Context engine for AI agents One call returns the most relevant symbols for a task, ranked by graph centrality, recency, and learned usefulness, packed to fit your token budget. 263 framework equivalence classes bridge vocabulary gaps when keywords fail. 47% fewer tool calls. 84% fewer tokens. Results improve with feedback.
2. Audit primitive for compliance
Every graph state is a Merkle root tied to a git commit. knowing prove generates a cryptographic proof that a relationship existed. knowing verify checks it offline. knowing fsck verifies the entire graph in 98ms. Supply chain detection extracts credential access, process spawning, and network exfiltration edges to flag structurally suspicious code.
3. Noise demotion that learns Symbols returned but never used by the agent get demoted on future queries. When code changes, feedback expires automatically (verified via package Merkle roots). The system gets more precise during active sessions. That is the property knowing is built around.
These aren't separate features. They're structural consequences of content-addressing: the same hash that makes context cacheable also makes it provable, and the same Merkle root that detects staleness also expires stale feedback.
What It Answers
For your agent:
- "I'm changing this function. What breaks?" (blast radius across callers, tests, routes, repos)
- "Give me 50,000 tokens of context for this task." (graph-ranked, not grep-searched)
- "Which tests should run?" (call-graph traversal, 98% precision)
For your platform team:
- "Is this route used in production?" (static analysis + OTel runtime traces)
- "What did the service graph look like at a specific snapshot?" (snapshot chain, each root tied to a git commit)
For your security team:
- "Prove service A calls service B at this commit." (Merkle proof, verifiable offline)
- "Prove this dependency does NOT exist." (absence proof via sorted leaves)
- "Generate a compliance report." (
knowing audit -proofs, one command) - "Does this package read credentials and spawn processes?" (
knowing audit-supply-chain --scan-all)
Numbers
All benchmarks are reproducible. The cross-system benchmark (P@10=0.330) uses 17 repos pinned to exact commits with a corpus manifest and setup script for full from-scratch reproduction. See METHODOLOGY.md for protocol details.
Quick Start
Path A: MCP server (recommended for AI agents)
Path B: CLI usage (explore the graph yourself)
Verify your setup
After indexing, run these commands to confirm everything is working:
If knowing stats shows zero nodes or very few edges, see
Troubleshooting below.
More CLI commands
For the full command reference, see CLI Reference.
MCP Integration
Add the MCP server to your agent. The config is the same everywhere; only the file path differs.
The --watch flag re-indexes on file changes. Your agent always queries fresh data. No manual knowing index or database path needed: the MCP server auto-indexes the git repository on first launch and registers it in the roster for future sessions.
Embeddings are off by default (confirmed neutral on cold-start benchmarks). Use --embeddings to enable if experimenting. The graph structure and equivalence classes carry retrieval quality.
What your agent gets: The key tool is context_for_task. When your agent calls it with a task description, knowing returns ranked, relevant code symbols packed into a token budget. This replaces grep-read loops. Other useful tools: blast_radius (what breaks if I change this?), test_scope (which tests to run?), explain_symbol (why did this rank here?). See MCP Tools Reference for all 28 tools.
Verify it works:
- Start a session with your agent
- Ask: "Use the context_for_task tool to find symbols related to [something specific in your code]"
- You should see ranked symbols with scores and file paths from your codebase
If results are empty: the repo may still be indexing (10-30 seconds on first launch). If results seem unrelated: use specific symbol names in your task description (e.g., "find the AuthMiddleware handler" not "find auth code"). You can also verify from the CLI:
For HTTP transport (multi-agent, daemon mode):
Why This Works
Git versions files. knowing versions the understanding of code.
The entire system is built on one idea: content-addressed identity. Every symbol, relationship, and snapshot is SHA-256 hashed. This single choice gives you:
- Staleness detection for free. Changed file = new hash = stale edges are known without scanning.
- Caching for free. Same package root = same results. 93x speedup on unchanged queries.
- Integrity for free. Verify all stored hashes and snapshot chain continuity. 98ms.
- History for free. Each snapshot is a Merkle root tied to a git commit. Walk the chain.
- Feedback expiration for free. Feedback stores the package Merkle root. Code changes = root changes = old feedback is invisible.
- Proofs for free. Merkle path from leaf to root is a self-contained cryptographic proof.
How It Works
Two planes:
- Execution: indexes repos, extracts symbols and relationships, ingests traces, stores snapshots.
- Intelligence: computes blast radius, context packs, test scope, feedback, communities from the stored graph.
The boundary matters: intelligence features read the graph and produce derived results. They cannot corrupt graph facts. A bad ranking produces a bad recommendation; it cannot invalidate a proof.
Capabilities
Languages And Formats
All extractors fire per file via multi-dispatch; results are merged. Tree-sitter produces edges at confidence 0.7 (ast_inferred); go/packages and SCIP at 0.95-1.0 (ast_resolved, scip_resolved).
MCP Tools
MCP prompts: refactor_safely, review_pr, investigate_dead_code.
MCP Resources
8 read-only resources for agent orientation without a tool call:
Wire Formats
GCF uses |-separated fields and local IDs ($1 -> $3) instead of repeated qualified names. Parseable by LLMs while fitting 5x more graph context into the same token budget. Session-stateful deduplication reduces repeated symbols by 47%.
Current Boundaries
- Static blast radius follows
callsedges; other edge types provide context, not traversal. - Runtime tools require OpenTelemetry trace ingestion; without traces they have no observations.
- LSP enrichment: Go, TypeScript, Python, Rust, Java, C#. Auto-detected from project markers. Others fall back to tree-sitter.
- Embeddings are off by default (confirmed neutral on cold-start benchmarks, session 23). Use
--embeddingsto opt in.
Documentation
License
Apache-2.0 (c) 2026 Dayna Blackwell / Blackwell Systems. See LICENSE and NOTICE.
Source: README.md at commit 988a9e7
Tools
0Version history
2- v0.16.0LatestSep 23, 2026
- v0.15.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts