Multi-Repo & Projects
Projects group repositories, vault folders, and feature bundles into named units that scope queries to just the code that matters. NestWeaver detects cross-repo dependencies at three confidence layers — declared links in config, inferred links from shared symbols, and implicit links from vault structure — giving you a unified view across repository boundaries.
Command reference
Section titled “Command reference”| Command | Description | Key Flags |
|---|---|---|
list-projects | List all projects (declared and materialized) | --json, --db, --config |
project-context | Get PPR-ranked context scoped to a project | --token-budget, --include-components, --since, --recency-weight, --json, --config |
materialize-projects | Materialize projects, wiki sources, and cross-repo links from config | --config, --db |
detect-implicit-projects | Detect implicit projects from vault structure | --vault, --db |
suggest-links | Discover potential cross-repo links | --db, --json, --config |
list-links | List all declared cross-repo links | --config, --json |
list-features | List feature bundles from instance config | --config, --json |
cross-repo-refs | Find references crossing repo boundaries | --repo, --json |
Defining projects
Section titled “Defining projects”Projects are declared in nestweaver-instance.toml. Each project lists its repos and optional components (sub-projects). Once declared, use materialize-projects to create graph nodes for them.
[[projects]]name = "payments"repos = ["payments-api", "payments-worker"]components = ["checkout", "refunds"]Setting up a multi-repo project
Section titled “Setting up a multi-repo project”Index multiple repositories into the same database, then materialize the project definitions from your config:
# Index multiple repos into the same databasenestweaver index --repo ./payments-api --name payments-api --db ./all.lbugnestweaver index --repo ./payments-worker --name payments-worker --db ./all.lbug
# Materialize projects from confignestweaver materialize-projects --config ./nestweaver-instance.toml --db ./all.lbug
# List projectsnestweaver list-projects --db ./all.lbug --jsonProject-scoped context
Section titled “Project-scoped context”project-context returns all notes and symbols belonging to the project, ranked by PPR. The --token-budget flag (default 3000) controls output size. Use --since to hard-filter old notes, or --recency-weight for a soft age-decay boost.
# Get context for a projectnestweaver project-context payments --token-budget 5000
# Include component sub-projectsnestweaver project-context payments --include-components --json
# Filter to recently modified notesnestweaver project-context payments --since 2026-01-01T00:00:00Z
# Apply recency bias to rankingnestweaver project-context payments --recency-weight 0.5 --recency-half-life-days 14Cross-repo link detection
Section titled “Cross-repo link detection”NestWeaver discovers cross-repo relationships at three confidence layers.
Declared links (highest confidence)
Section titled “Declared links (highest confidence)”Explicitly defined in the instance config. Use list-links to view them.
Inferred links (medium confidence)
Section titled “Inferred links (medium confidence)”Discovered by analyzing shared symbols, imports, and naming patterns across repos. Use suggest-links to find them.
Implicit links (lowest confidence)
Section titled “Implicit links (lowest confidence)”Detected from vault structure, note references to code, and workspace organization. Use detect-implicit-projects to find them.
# Discover potential cross-repo linksnestweaver suggest-links --db ./all.lbug
# List declared links from confignestweaver list-links --config ./nestweaver-instance.toml
# Find references crossing repo boundariesnestweaver cross-repo-refs processPayment --json
# Detect implicit projects from vault structurenestweaver detect-implicit-projects --vault ~/brain --db ./all.lbugFeature bundles
Section titled “Feature bundles”Features are cross-cutting concerns that span multiple repos and components. Declare them in the instance config and query them with context --feature.
# List declared featuresnestweaver list-features --config ./nestweaver-instance.toml
# Get context scoped to a featurenestweaver context --feature device-pairing --config ./nestweaver-instance.toml