Graphoxide for VS CodeGraphoxide turns a repository into a navigable code knowledge graph. This extension brings extraction, architecture discovery, impact analysis, and source navigation into VS Code.
RequirementsThe extension requires VS Code 1.101 or newer for native MCP server discovery. Marketplace and packaged VSIX builds include the native Graphoxide executable for
their target platform, so no separate CLI installation is required. When running
the extension from source, build
Alternatively, set Graphoxide: Binary Path to an absolute executable path. The extension has no Node runtime dependencies and its graph visualization loads no remote scripts or assets. Binary discovery checks an explicit setting first, followed by the packaged
binary, Tagged releases build and publish six VSIX packages for macOS, Linux, and
Windows on x64 and arm64. Each package stages the matching native executable,
records its version and target, includes the third-party license report, and is
verified before Marketplace publication. Extension-specific notes live in
Get started
Enabling is workspace-specific and requires a trusted workspace. Not now asks again on a future opening; Don’t ask for this workspace suppresses the prompt. Run Graphoxide: Reset Workspace Welcome to restore it, or turn off Graphoxide: Prompt On First Open globally. Existing graphs and external MCP registrations are not deleted when managed mode is disabled. By default, the extension reads Run the extension from sourceThe repository includes a one-click Extension Development Host configuration and an architecture-rich sample application.
The sequential pre-launch task builds the release The sample README suggests queries and node pairs that exercise the explorer, visualization, CodeLens, source reveal, path finding, affected-node analysis, watcher, report, and export workflows. Its generated End-to-end testingThe E2E suite launches a clean VS Code Extension Development Host with a disposable copy of the sample project:
It verifies executable discovery without a Explore the graphThe Graph Explorer groups indexed code by community, architectural importance, and source file. Selecting a node opens the exact source line. Expanding communities reveals their member symbols, and the node context menu provides explanation and impact commands. The interactive graph supports:
The graph opens in the active editor group by default, using the available editor space. Run Graphoxide: Open Interactive Graph Beside only when you explicitly want the source and graph side by side. Only the highest-degree nodes are initially drawn when a graph exceeds Graphoxide: Visualization Max Nodes. The full graph remains available to sidebar and CLI commands. Understand code in contextWhen Graphoxide: Code Lens Enabled is on, indexed symbols show their graph connection count directly above the source. Select that CodeLens—or right-click and choose Graphoxide: Explain Symbol at Cursor—to inspect the symbol and its neighbors. Useful commands include:
Query results appear in a dedicated sidebar view. Node results link back to source. Text output also streams to View → Output → Graphoxide. Keyboard shortcuts:
Keep the graph currentManaged workspaces remember one freshness policy. Continuous watch incrementally rebuilds while the workspace is open, update-on-save performs a debounced update, and manual mode changes nothing in the background. Use Graphoxide: Configure Automatic Updates… to change the policy. The status bar shows an eye while watch mode is active. Managed automatic refreshes accept intentional graph reductions, so deleting or consolidating code cannot leave the graph permanently stale behind the CLI shrink guard. For smaller projects, Graphoxide: Update On Save can run a debounced update whenever a source document is saved. It is disabled by default. Watch mode is more efficient for sustained editing sessions. All spawned commands are argument-safe, run without a shell, support cancellation where applicable, and stream diagnostics to the Graphoxide output channel. Connect an AI coding clientGraphoxide includes an MCP server in the same binary:
For an enabled workspace, the extension publishes Graphoxide directly to VS Code through its native MCP provider. Run Graphoxide: Manage MCP Integrations… to detect and configure other installed clients:
The manager reports installed, missing, and stale registrations and offers an explicit Install, Update, or Remove action. It preserves unrelated servers and settings. Project configuration can be shared with collaborators; user configuration applies across projects. The extension does not keep an MCP process running. VS Code, Claude Code, Codex,
or OpenCode starts The MCP server tells Codex to use Graphoxide before broad filesystem searches for
architecture, navigation, call-flow, and impact questions. Its compact
Core extraction, clustering, querying, visualization, and reports are offline and require no API key. Optional community labeling is a separate CLI feature. SettingsOpen Graphoxide: Open Settings to configure:
Settings that identify files are scoped per workspace, so multi-root workspaces can use a different graph for each folder. Commands prefer the active editor's workspace and prompt when necessary. TroubleshootingThe binary cannot be found: Set Graphoxide: Binary Path to the absolute path returned by The graph is empty or missing: Run Extract Workspace. If the repository already has a graph, verify Graphoxide: Graph Path. A graph fails to load: Open View → Output → Graphoxide for the validation error. The parser accepts both built graphs using A source node does not open: Graph paths must be repository-relative. For safety, absolute paths and paths containing Privacy and securityThe extension does not send source code or graph data over the network. Its visualizer uses a restrictive Content Security Policy, has no external runtime dependencies, and escapes graph content before rendering. Network access occurs only if you independently configure and invoke optional CLI labeling. LicenseApache License 2.0. See LICENSE, LICENSE-MIT, and NOTICE. |