VS Code Extension
The Travsr VS Code extension brings the code graph directly into your editor, status bar, code lenses, hover cards, and a full sidebar of panels.
Install
ext install travsr.travsr-vscode
Or search "Travsr" in the Extensions panel.
Also available on Open VSX for VSCodium and compatible editors.
Binary auto-install
If the travsr binary is not found on PATH, the extension shows a notification with a Download Binary button. Clicking it downloads the correct platform binary from GitHub Releases and places it on your PATH. No npm required.
To use a binary you already have at a custom path, set travsr.binaryPath in settings.
Status bar
The status bar item shows the current graph state. Click it to open the Graph Stats panel.
| Indicator | Meaning |
|---|---|
Travsr · connecting (spinning) | Extension is connecting to the daemon |
Travsr · fresh · 18.4k nodes (green) | Graph is up to date |
Travsr · indexing… (spinning) | Reindex in progress |
Travsr · stale · 5m ago (amber) | Graph has not been updated since the last commit |
Travsr · disconnected (red) | Daemon is unreachable |
Sidebar panels
The Travsr activity bar icon opens the sidebar, which has two tree views, Travsr Graph and Repo Files. Every panel below is also reachable from the command palette.
| Panel | Command | Description |
|---|---|---|
| Graph | Travsr: Show Graph | Visual Cytoscape.js graph for a symbol |
| Repo Files | (Repo Files view) | Hierarchical tree of every indexed file; see Repo Files Panel |
| Context Explorer | Travsr: Open Context Explorer | get_context results as a panel; see Context Explorer |
| Ask Symbol | Travsr: Ask Symbol | FTS search across all indexed symbols |
| Synonyms | Travsr: Manage Synonyms | Add and edit query-time synonym pairs |
| Languages | Travsr: Languages | Indexed languages and available language tools |
| Repos | Travsr: Registered Repos | All repos in the Travsr registry |
| Graph Stats | Travsr: Graph Stats | Node count, edge count, DB size, last indexed |
Code lens
Every function, method, and class definition shows a blast radius code lens, the number of files that would be affected if that symbol changed. Click the lens to open the Blast Radius panel.
🩻 blast: 12 files
async charge(amount: number): Promise<Receipt> {
See Code Lens for full details.
Hover cards
Hover over any symbol to see its callers inline, with a one-click link to the full Callers panel and Blast Radius panel.
See Hover for full details.
Context Explorer
Travsr: Open Context Explorer (Cmd+Shift+K / Ctrl+Shift+K) opens a panel that runs the full get_context pipeline (PPR, knapsack, KNN, and trust signals) for the symbol under your cursor. It shows one of three states (strong, abstain, or degraded), per-node expandable snippets, a provenance legend, a token-saved bar, and a copy button. See Context Explorer.
Repo Files panel
The Repo Files view in the sidebar is a hierarchical tree of every indexed file, grouped package by package. Click a file to open its file graph. Travsr: Search Files opens a fuzzy QuickPick over all indexed files. See Repo Files Panel.
Editor code actions
Right-click a symbol in the editor, or use the lightbulb, for two context actions:
- Copy Graph Context for Chat (
travsr.copyContextForChat): runsget_contextfor the symbol under the cursor and copies the result to the clipboard so you can paste it into any chat. Respectstravsr.contextTokenBudget. - Check Blast Radius Before Edit (
travsr.blastBeforeEdit): runsget_blast_radiusfor the current file and lists the files that would be affected before you make a change.
Register the MCP server in an agent
Travsr: Register MCP Server in Agent writes the travsr mcp --stdio server entry into an external agent's config file. It supports Claude Desktop, Cursor (workspace .cursor/mcp.json), and Continue, and always shows a diff and asks for confirmation before writing.
Command palette
All Travsr commands are available via Ctrl+Shift+P / Cmd+Shift+P:
| Command | Description |
|---|---|
Travsr: Show Graph | Open the visual code graph panel (Cmd+Shift+G) |
Travsr: Open Context Explorer | Open the Context Explorer panel (Cmd+Shift+K) |
Travsr: Ask Symbol | Search for a symbol in the graph (Cmd+Shift+A) |
Travsr: Open File Graph | Open the dependency graph for a file |
Travsr: Search Files | Fuzzy-search all indexed files |
Travsr: Manage Synonyms | Open the Synonyms panel |
Travsr: Languages | Open the Languages panel |
Travsr: Registered Repos | Open the Repos panel |
Travsr: Graph Stats | Open the Graph Stats panel |
Travsr: Show Callers | Show callers of the current symbol |
Travsr: Show Blast Radius | Show blast radius of the current symbol |
Travsr: Check Blast Radius Before Edit | List files affected before you edit the current file |
Travsr: Copy Graph Context for Chat | Copy get_context for the current symbol to the clipboard |
Travsr: Show Dependencies | Show dependencies of the current file |
Travsr: Show Execution Path | Trace execution path between two symbols |
Travsr: Register MCP Server in Agent | Add the Travsr MCP server to Claude Desktop, Cursor, or Continue |
Travsr: Re-index Now | Force a full reindex of the current repo |
Travsr: Download Binary | Download the travsr binary |
Travsr: Show Welcome | Re-open the first-run welcome panel |
First-run welcome panel
On first install, a welcome panel walks through three steps:
- Install the
travsrbinary (or confirm it's already present) - Run
travsr initon your current workspace - Add Travsr to your MCP client config