Graph-native code intelligence
The code graph that
lives next to git.
Not grep. Not vector RAG. Travsr builds a live, deterministic graph of your codebase on every commit and exposes it via MCP so AI agents traverse real structure instead of guessing from text.
npm install -g @travsr.com/travsr What makes Travsr different
Deterministic graph
Tree-sitter and LSIF produce an exact call graph, type graph, and import graph. No embeddings, no regex guesswork, no approximations.
Always fresh
A git post-commit hook reindexes changed files on every commit, so the graph aims to stay in step with your code.
MCP native
Seventeen query tools over stdio or SSE, twenty-six in single-repo mode. Works with Claude, Copilot, any agent that speaks Model Context Protocol.
Zero-config wiring
travsr init detects the AI coding tools you have installed, Claude Code, Cursor, Copilot, Windsurf, Zed, and more, then wires each one to the MCP server with an always-on rules file. No manual config.
From install to first answer
Install the binary, index your repo, add the languages you need, then ask. The graph stays fresh on every commit.
Same graph powers your editor. Run Travsr: Show Graph in VS Code to
explore callers and dependencies visually. See the extension.
See it in action
The same fresh graph drives your editor and any AI agent that speaks MCP.
Inside your editor
Open Travsr: Show Graph to explore callers and dependencies, rendered from the live graph.
- → StripeGateway calls
- → Ledger calls
- → FraudCheck calls
- ← CheckoutController calls
- ← WebhookHandler calls
- ← BillingCron calls
How agents use it
Agents call MCP tools and traverse real structure instead of guessing from text chunks. A local cross-encoder reranks natural-language queries against the graph's own candidates, so vague questions get an honest confidence score, or an abstain, instead of a fabricated one.
RateLimiter.check()
(src/middleware/rateLimit.ts:31). It is called by
apiGateway() before routing and by
WebhookHandler.receive(). No other call sites exist in the graph.
Manage everything from the editor
The Travsr extension surfaces the live graph as native VS Code panels. Watch graph stats and manage every indexed repo without leaving the editor. These are the real panels.
Live metrics for the indexed graph.
3 repos in ~/.travsr/registry.json · 1 stale.
| Name | DB Path | Status | Remove |
|---|---|---|---|
| travsr | ~/learning/travsr/.travsr/graph.db | active | ✕ |
| travsr-web | ~/learning/travsr-web/.travsr/graph.db | active | ✕ |
| old-api | ~/archive/old-api/.travsr/graph.db | stale | ✕ |
Language support
| Language | Tree-sitter | Semantic edges |
|---|---|---|
| TypeScript / JavaScript | Built-in | |
| Rust | Built-in | |
| Python | Built-in | |
| Go | lang install | |
| Java | lang install | |
| Kotlin | lang install | |
| Scala | lang install | |
| C# | lang install | |
| C / C++ | lang install | |
| Ruby | lang install | |
| PHP | lang install | |
| Swift | lang install | |
| Objective-C | lang install macOS | |
| Dart | lang install |
Every language is parsed structurally by Tree-sitter out of the box. Semantic call edges for TypeScript/JavaScript, Rust, and Python are built in and run automatically; the rest add semantic edges once you install their analyzer with travsr lang install <lang>. Objective-C semantic indexing is macOS-only.