Quick Start
NestWeaver parses 32 languages via Tree-sitter — JS, TS, Go, Python, Rust, Java, C/C++, Lua, Scala, Elixir, Zig, Vue, Svelte, and more — and exposes 43 MCP tools for AI agents. Here’s how to go from install to your first query.
- 1 setup Connect the editor you already use.
- 2 index index --repo . parses the repo into the local graph.
- 3 context Ask for one symbol and its neighbors.
- 4 ui Open that neighborhood in the browser.
Set up your AI tools
Section titled “Set up your AI tools”NestWeaver integrates with 16 AI tools out of the box. Run setup to auto-configure them:
nestweaver setup# NestWeaver Setup# ────────────────────────────────────────# Database: /path/to/repo/nestweaver.lbug (will be created on first index)## ✓ Claude Code# • .mcp.json — MCP server configured# • .claude/skills/nestweaver/SKILL.md — skill written# • .claude/settings.json — hooks installed# ✓ Cursor# • .cursor/mcp.json — MCP server (lite: 6 tools)# • .cursor/rules/nestweaver.mdc — agent rules written# ...This writes the correct MCP server configuration for each detected tool (Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, Kiro, and more), with the database as an absolute path. Setup reports every tool it tried and exits non-zero if any failed. Run nestweaver setup --force to regenerate files even if you’ve customized them, or to rebind an entry that points at a different database. See AI Tool Integrations for where each tool’s config goes.
Index your codebase
Section titled “Index your codebase”Point NestWeaver at a repository to build the knowledge graph:
nestweaver index --repo .# [Discovering] Scanning /path/to/repo# [Writing] Indexed N files, N symbols# [Done] Done — N files, N symbols, N edgesNestWeaver auto-detects the repo root from .git, parses every supported file, resolves cross-file references with confidence scoring, and writes everything to a local database.
To include git history analysis (co-change mining and recency scoring):
nestweaver index --repo . --with-git-activityStart querying
Section titled “Start querying”Ask structural questions about your code:
nestweaver context processPaymentThis uses Personalized PageRank to surface the symbols most relevant to your query — call sites, dependencies, type definitions, and more — without reading raw source files.
Search across symbols and notes:
nestweaver search "main"# Found N symbol(s) matching 'main':Watch for changes
Section titled “Watch for changes”Keep the index up to date as you code:
nestweaver watchThis watches the filesystem and re-indexes on changes with debouncing, so your AI tools always have a current graph.
Next steps
Section titled “Next steps”- Your First Query — a deeper walkthrough of querying the graph
- MCP Tools — the full list of 43 tools available to AI agents
- Configuration — customize indexing, token budgets, and more