Skip to main content
VS Code Extension

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.

IndicatorMeaning
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

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.

PanelCommandDescription
GraphTravsr: Show GraphVisual Cytoscape.js graph for a symbol
Repo Files(Repo Files view)Hierarchical tree of every indexed file; see Repo Files Panel
Context ExplorerTravsr: Open Context Explorerget_context results as a panel; see Context Explorer
Ask SymbolTravsr: Ask SymbolFTS search across all indexed symbols
SynonymsTravsr: Manage SynonymsAdd and edit query-time synonym pairs
LanguagesTravsr: LanguagesIndexed languages and available language tools
ReposTravsr: Registered ReposAll repos in the Travsr registry
Graph StatsTravsr: Graph StatsNode 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): runs get_context for the symbol under the cursor and copies the result to the clipboard so you can paste it into any chat. Respects travsr.contextTokenBudget.
  • Check Blast Radius Before Edit (travsr.blastBeforeEdit): runs get_blast_radius for 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:

CommandDescription
Travsr: Show GraphOpen the visual code graph panel (Cmd+Shift+G)
Travsr: Open Context ExplorerOpen the Context Explorer panel (Cmd+Shift+K)
Travsr: Ask SymbolSearch for a symbol in the graph (Cmd+Shift+A)
Travsr: Open File GraphOpen the dependency graph for a file
Travsr: Search FilesFuzzy-search all indexed files
Travsr: Manage SynonymsOpen the Synonyms panel
Travsr: LanguagesOpen the Languages panel
Travsr: Registered ReposOpen the Repos panel
Travsr: Graph StatsOpen the Graph Stats panel
Travsr: Show CallersShow callers of the current symbol
Travsr: Show Blast RadiusShow blast radius of the current symbol
Travsr: Check Blast Radius Before EditList files affected before you edit the current file
Travsr: Copy Graph Context for ChatCopy get_context for the current symbol to the clipboard
Travsr: Show DependenciesShow dependencies of the current file
Travsr: Show Execution PathTrace execution path between two symbols
Travsr: Register MCP Server in AgentAdd the Travsr MCP server to Claude Desktop, Cursor, or Continue
Travsr: Re-index NowForce a full reindex of the current repo
Travsr: Download BinaryDownload the travsr binary
Travsr: Show WelcomeRe-open the first-run welcome panel

First-run welcome panel

On first install, a welcome panel walks through three steps:

  1. Install the travsr binary (or confirm it's already present)
  2. Run travsr init on your current workspace
  3. Add Travsr to your MCP client config