NestWeaver
Code intelligence knowledge graph for AI agents — 17-34x faster queries than Graphify and GitNexus.
Why NestWeaver exists
AI agents waste their context window. Ask an agent to fix a bug and it reads entire files — thousands of tokens of boilerplate and unrelated code — just to find the three functions that matter. The context window fills up before the agent even starts thinking.
NestWeaver solves this at the source. It builds a persistent code knowledge graph from your codebase — parsing every symbol, resolving every cross-file reference — then uses Personalized PageRank to rank which nodes are actually relevant to the task at hand. When an agent needs context, NestWeaver returns a precomputed subgraph sized to fit the token budget, not raw file contents. Agents get precise, ranked answers instead of entire files.
How it works
-
Index
Tree-sitter parses 32 languages into a unified symbol graph. Every function, class, import, and type is a node; every reference is an edge.
-
Query
Cross-file symbol resolution with confidence scoring — NestWeaver knows not just where a symbol is defined, but how certain that link is.
-
Context
Personalized PageRank walks the graph from a task-relevant seed set and extracts the highest-value subgraph that fits your token budget.
-
Connect
40 MCP tools expose the graph to any MCP-aware agent. Agents query by symbol, file, or natural language — no file reads needed.
Features
Graph Intelligence
- Personalized PageRank for task-relevant context extraction
- Cross-file symbol resolution with confidence scoring
- Token-budget-aware subgraph extraction
- Incremental graph updates — only reparse changed files
- 40 MCP tools for agent integration
Multi-Language
- 32 languages via Tree-sitter: Rust, TypeScript, Python, Go, Java, C/C++, Lua, Scala, Elixir, Zig, Vue, Svelte, and more
- Unified symbol graph across all languages in a polyglot repo
- Import and type resolution across language boundaries
- Language-agnostic MCP API — one interface for everything
- Extensible parser layer for adding new languages
Brain
- Index Markdown and Obsidian vaults alongside code
- Link documentation, ADRs, and RFCs to the code symbols they describe
- Natural language queries over code + docs combined
- Unified knowledge graph spanning code and prose
- Supports Obsidian-style wikilinks and frontmatter
Platform
- Native macOS app with menubar, Metal GPU acceleration, and managed daemon
- Single static Rust binary — no runtime, no dependencies
- Web UI with interactive 3D graph visualization
- Daemon architecture with in-memory graph for sub-100ms queries
- MIT licensed, open source — install via npm, cargo, or pre-built binary
Get started
Run this in your terminal:
npm install -g @kehl-io/nestweaver && nestweaver setup
Also available via cargo install nestweaver or pre-built binaries.
The setup command auto-configures Claude Code, Cursor, Copilot,
and 13 more AI tools.
Status
NestWeaver is production-ready with a native macOS app, 40-tool MCP server, and daemon architecture. Contributions are welcome — see CONTRIBUTING.md for details on adding language parsers, MCP tools, and graph algorithms.