Repo-Native Alignment

Coding agents are blind to the shape of your codebase. RNA fixes that: it runs as an MCP server alongside your agent and gives it one call to answer "what depends on this?", "what relates to payment processing?", or "how is the reliability outcome progressing?" — questions LSP alone cannot answer.
Single binary. No Docker. No external database. No API key.
Quick Start | Why RNA | MCP Tools | Docs
Why RNA
LSP gives agents single-symbol, single-hop, single-language queries. There's no multi-hop primitive, no semantic search, no connection to business artifacts.
Finding blast radius with LSP alone:
textDocument/references("ConnectionPool") → [PoolManager, HttpServer, Worker]
callHierarchy/incomingCalls(PoolManager) → [AppConfig, TestHarness]
callHierarchy/incomingCalls(HttpServer) → [main, Router]
callHierarchy/incomingCalls(Worker) → [Scheduler]
// agent must: filter test files, deduplicate, reason about the shape
With RNA:
search(query="ConnectionPool", mode="impact", max_hops=3)
→ PoolManager → AppConfig
→ HttpServer → main, Router
→ Worker → Scheduler
// production code ranked first, test files demoted, cross-language
| Job | LSP alone | RNA |
|---|
| What breaks if I change this? | N round-trips of incomingCalls, agent assembles graph | search(mode="impact") — one call, transitive |
| Find code related to a concept | No semantic search — agent must guess names and grep | search("payment processing") — ranked by meaning across code, docs, and artifacts |
| How is our reliability outcome progressing? | Not possible — LSP has no business context | outcome_progress("reliability") — commits → files → symbols |
| Orient a new agent to the repo | Multiple searches, no subsystem picture | repo_map() — subsystems, hotspots, entry points in one call |
RNA runs LSP servers internally. It fuses their data with tree-sitter, embedded function bodies, git history, and business artifacts into a cross-language graph — so the agent gets the LSP depth without doing the LSP orchestration.
For Rust, exact search and graph traversal also expose struct-literal construction sites. A struct query returns both its declaration and local initializers, while impact traces the explicit Constructs relationships without requiring LSP or embeddings.
What Changes After Installing
Six jobs agents can do after RNA is running that they could not do reliably before:
Find code by meaning, not just by name
search("payment processing") returns ranked results across symbols, docs, commits, and artifacts in one call. Path scoping works too: search("auth/handlers/validate") returns only symbols named validate in files matching auth/handlers.
When a compiler or test runner already provides a location, search(file="src/service.rs", line=120, end_line=130) returns that exact, numbered span from the current filesystem. Compiler-style locations such as search(file="src/service.rs:120:7") work too. Source spans are root-scoped, reject ambiguous or escaping paths, and are capped at 200 lines and 64 KiB of source text per request.
Trace call paths and blast radius
search(node="AuthHandler", mode="impact") returns transitive dependents grouped by subsystem. search(node="X", mode="path", query="Y") returns the directed call chain between two nodes.
convergence(nodes=["Request.prepare", "Session.prepare_request"], before="PreparedRequest.prepare_method", direction="outgoing", edge_types=["calls"], depth=6) intersects bounded routes, ranks their common nodes deterministically, and returns one witness from every source plus an onward witness to the optional boundary. Discover and bind readable symbols with search first, and use before only when the boundary is reachable under the same direction and edge filter. Its dedicated MCP schema requires the executable traversal fields and omits repository routing; search(mode="convergence", ...) remains available to the CLI and existing MCP clients. Unresolved selectors, unknown Calls coverage, unreachable boundaries, and empty proofs fail closed without lexical fallback or injected context.
Know which capabilities are ready
scan, enrich, and list_roots surface OperationReport summaries: ready capabilities, degraded query classes, recent enrichment jobs, and the exact follow-up command when embeddings or call/reference enrichment is missing.