Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>GraphPilot – Codebase Knowledge GraphNew to Visual Studio Code? Get it now.
GraphPilot – Codebase Knowledge Graph

GraphPilot – Codebase Knowledge Graph

Srujan Rana

|
2 installs
| (0) | Free
Transform your workspace into an interactive knowledge graph with an AI agent that understands it structurally.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GraphPilot for VS Code

Explore your codebase as an interactive graph.

GraphPilot maps source files, symbols, imports, and calls so you can follow how a project fits together. Explore the graph visually, inspect code in context, and ask questions with a local or API based language model.

VS Code 1.85+ TypeScript, JavaScript, Python Local and API models Local graph indexing

GraphPilot Explorer showing a source graph, symbol details, and an agent response

The graph shows files and symbols as nodes. Click a node to inspect its source and ask about it.

What you can do

  • See the structure: browse files, functions, classes, interfaces, imports, and calls in one graph.
  • Follow cross-file relationships: inspect imports and resolved calls between project files.
  • Explore interactively: filter node types, search, rearrange the layout, focus the active file, and open a symbol in the editor.
  • Ask about your code: use graph context with LM Studio or Ollama locally, or OpenAI and Anthropic APIs.
  • Tune indexing to your computer: review RAM and CPU information and adjust file limits before building a large graph.

GraphPilot builds a static graph from supported source code. It does not execute your project. The graph does not require an LLM; configure one when you want natural-language answers.

See your first graph

  1. Open the project folder you want to explore in VS Code. GraphPilot indexes the open workspace folder. For a small practice project, open examples/demo-workspace from this repository.
  2. Open the Command Palette with Ctrl+Shift+P.
  3. Run GraphPilot: Build Graph. You can also open GraphPilot Explorer and click Build.
  4. Wait for the indexing notification to finish. The graph appears with file and symbol nodes and relationship edges.
  5. Click a node to see its file, line, and source snippet. Use Search nodes…, the type filters, Layout, and Focus to explore.

If the graph says No graph yet, run Build once. The graph counts in the panel describe the indexed workspace; the VS Code status bar also shows the current node and edge totals. Building again refreshes the index. Supported-file changes are watched after a build.

After installing the VSIX into an already-open VS Code window, run Developer: Reload Window or invoke a GraphPilot command once. Startup activation runs after VS Code starts, so it will not fire retroactively in a window that was already open during installation.

What the connections mean

Edge Meaning
IMPORTS A source file imports another workspace file or an external dependency.
CALLS A function calls a function GraphPilot can resolve in the same file or through an import.
DEPENDS_ON A file-level dependency inferred from a resolved cross-file call.
CONTAINS / DEFINED_IN A symbol belongs to a source file.
EXTENDS / IMPLEMENTS A class extends or implements a symbol when the parser can identify it.

Connections come from source syntax and static resolution, not runtime traces. Dynamic imports, reflection, generated code, complex re-exports, and unresolved aliases may not be linked. See how indexing and graph relationships work.

Connect a language model

  1. Open GraphPilot Explorer and click LLM, or run GraphPilot: LLM Settings from the Command Palette.
  2. Choose a provider tab: LM Studio, Ollama, OpenAI, or Anthropic.
  3. Enter the server URL/model, or API key/model, as appropriate.
  4. Click Test connection and wait for the success or error message.
  5. Click Save settings, then use the Ask Agent box in GraphPilot Explorer.

The graph builder and graph navigation work without a language model. Structural requests such as callers and impact can be answered directly from the graph.

LM Studio (local model)

  1. In LM Studio, load a model and start Local Server.
  2. In GraphPilot LLM Settings, choose LM Studio.
  3. Set the API URL to http://localhost:1234/v1 (the default LM Studio server address).
  4. Leave Model ID as local-model to use the first loaded model, or enter an ID returned by LM Studio's /v1/models endpoint.
  5. Click Test connection. When it succeeds, save the settings.

GraphPilot LM Studio settings with server URL, model ID, connection test, and save controls

Optional VS Code settings.json configuration:

{
  "codegraph.llm.provider": "lmstudio",
  "codegraph.llm.lmStudioUrl": "http://localhost:1234/v1",
  "codegraph.llm.lmStudioModel": "local-model"
}

Ollama (local model)

  1. Make sure Ollama is running and the model is installed (ollama list).
  2. Choose Ollama in GraphPilot LLM Settings.
  3. Use http://localhost:11434 for the server URL and enter the model name, such as llama3.
  4. Test the connection, then save.

OpenAI or Anthropic (API)

  1. Choose OpenAI or Anthropic in GraphPilot LLM Settings.
  2. Enter the provider's API key and model.
  3. Test the connection and save the settings.

Keys entered in the settings panel are stored with VS Code SecretStorage. Avoid placing API keys in source control or a shared workspace settings.json file. Cloud providers receive your question and the retrieved code context; see privacy and provider details.

For provider endpoints, model behavior, and connection troubleshooting, see Language model providers.

Check system settings

  1. Click System in GraphPilot Explorer, or run GraphPilot: System Settings from the Command Palette.
  2. Review detected RAM, free memory, CPU cores, platform, and the memory tier/warnings.
  3. Compare Recommended Settings with the current maximum file count and maximum file size.
  4. Choose Apply Recommended, or enter limits under Custom Override and choose Save Custom.
  5. Rebuild the graph for the new indexing limits to take effect.

GraphPilot system configuration showing memory warnings and indexing limits

GraphPilot does not silently change these limits on startup. The settings panel lets you review and apply them deliberately. More details are in the configuration reference.

Commands

Command What it does
GraphPilot: Build Graph Scan and index the current workspace, then show the graph.
GraphPilot: Ask Agent Ask a question about the indexed code.
GraphPilot: Focus Current File Focus the active editor's file node in the graph.
GraphPilot: Reset Index Clear the stored graph after confirmation and rebuild it.
GraphPilot: LLM Settings Select, configure, and test a model provider.
GraphPilot: System Settings Review system resources and adjust scan limits.
GraphPilot: Impact Analysis (cursor) Show graph relationships affected by the symbol under the cursor.
GraphPilot: Show Callers (cursor) Show callers of the symbol under the cursor.

Supported source files

GraphPilot currently scans .ts, .tsx, .js, .jsx, .mjs, .cjs, and .py files. It skips common dependency, generated, and cache folders and applies configurable file-count and file-size limits. It does not currently provide full compiler-level symbol resolution, model-based embeddings, or parsers for Go, Rust, Java, and other languages.

The local retrieval index uses TF-IDF vectors; it does not download or run a separate embedding model.

Privacy

Scanning, graph construction, and the retrieval index run locally in the VS Code extension host. For a general question, GraphPilot sends the selected code snippets and graph context to the configured language model. LM Studio and Ollama receive those requests through localhost. OpenAI and Anthropic receive them through their APIs. Do not ask about files or code you are not allowed to send to the selected provider.

Documentation

  • Graph Explorer guide
  • Indexing and graph relationships
  • LLM provider setup and troubleshooting
  • Settings reference
  • Architecture and diagrams
  • Development and troubleshooting
  • Documentation index

Run the extension from source

Requirements: Node.js/npm and VS Code 1.85 or newer.

npm install
npm run compile
code .

In VS Code, press F5 and select Run Extension. In the separate Extension Development Host, open the project folder you want to analyze, then build the graph. When you change extension code, run npm run compile and restart the Extension Development Host so it loads the new output.

To run the project checks:

npm test
npm run lint
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft