Skip to content

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. 1 setup Connect the editor you already use.
  2. 2 index index --repo . parses the repo into the local graph.
  3. 3 context Ask for one symbol and its neighbors.
  4. 4 ui Open that neighborhood in the browser.
Each step reads or writes ./nestweaver.lbug. The UI shows the same neighborhood the context command returns.

NestWeaver integrates with 16 AI tools out of the box. Run setup to auto-configure them:

Terminal window
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.

Point NestWeaver at a repository to build the knowledge graph:

Terminal window
nestweaver index --repo .
# [Discovering] Scanning /path/to/repo
# [Writing] Indexed N files, N symbols
# [Done] Done — N files, N symbols, N edges

NestWeaver 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):

Terminal window
nestweaver index --repo . --with-git-activity

Ask structural questions about your code:

Terminal window
nestweaver context processPayment

This 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:

Terminal window
nestweaver search "main"
# Found N symbol(s) matching 'main':

Keep the index up to date as you code:

Terminal window
nestweaver watch

This watches the filesystem and re-indexes on changes with debouncing, so your AI tools always have a current graph.

  • 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