AI-guided code tours — diffs, AI-generated changes, or any function you want to understand.
BitVanes parses your pending changes (or any selected function) into syntax trees, asks a language model to trace the execution and data flow, and plays the result back as synchronized steps in your editor: the active statement spotlighted, everything else dimmed, and variable transitions explained as you step.
Two audiences, one tool: seasoned engineers use it to burn through review diffs quickly; vibe coders use it to finally understand the code their AI just wrote. Pick your depth with BitVanes: Set Walkthrough Style — Expert (terse, risk-focused), Standard, or Learner (plain language, syntax explained, jargon defined).
Built for reviewing exactly the kind of code where being wrong is expensive — smart-contract engines, consensus paths, auth flows, migrations — but useful for any change you want to understand, not just read.
- Ingest —
bitvanes.walkthroughDiffreads your unstaged changes (tracked and untracked — brand-new AI-generated files included) viagit diff --unified=0plusgit ls-files --others;bitvanes.walkthroughCommitreads what a recent commit introduced;bitvanes.walkthroughSelectiontakes the function under your cursor. - Parse — tree-sitter grammars (Rust, Go, Solidity, TypeScript/TSX, Python) extract declarations, assignments, and calls around every hunk. Unknown languages fall back to line-based heuristics — nothing crashes.
- Generate — an LLM produces a strict
WalkthroughPlanJSON: ordered steps, exact 1-based ranges, variable transitions (init → validate → mutate → commit → return), and security notes where they matter. - Repair — ranges are snapped back onto real AST nodes, so slightly-off model output still lands on the exact statement.
- Play — the editor spotlights the active token (amber border, subtle fill), dims everything outside the enclosing scope, and draws a dotted border around the parent function. Hover the highlight for the narrative. Step with
]/[, the status bar controls, or the sidebar step list.
- Open VSX (primary registry): bitvanes.bitvanes
- VS Code Marketplace — not listed yet (Microsoft review pending). Until it is listed, use Open VSX or a release VSIX; every feature works — see Choosing a model for provider setup
- From source:
npm ci && npm run compile, then open this folder in VS Code and press F5 - Prebuilt vsix: grab the latest from Releases and run
code --install-extension bitvanes-v<version>.vsix
| Provider | Setup |
|---|---|
| VS Code Copilot (default on Marketplace installs only) | Sign in to GitHub Copilot. BitVanes uses the built-in Language Model API — no keys, no extra network config. This works only for installs from the VS Code Marketplace. Open VSX and VSIX installs cannot use Copilot as the default; configure an endpoint below. The Marketplace listing is not published yet. |
| Local — Ollama / LM Studio / vLLM | ollama serve, then set bitvanes.llm.baseUrl to http://localhost:11434/v1 and bitvanes.llm.modelId to e.g. qwen2.5-coder:14b. Code never leaves your machine. |
| OpenAI / Anthropic / OpenRouter | Run BitVanes: Set API Key for External LLM Provider, pick a preset, paste the key. Keys live in VS Code SecretStorage — never in settings files or dotfiles. |
bitvanes.llm.provider: "auto" uses Copilot when this install can reach it (a Marketplace install with Copilot signed in) and falls back to the configured endpoint otherwise. Open VSX and VSIX installs always use the configured endpoint.
| Command | What it does |
|---|---|
BitVanes: Instant Walkthrough of Changes (No AI) |
Sub-second local walkthrough from AST analysis — no model, works offline |
BitVanes: Walkthrough Working Tree Changes |
AI walkthrough of the unstaged diff |
BitVanes: Walkthrough Last Commit… |
Pick one of the last 20 commits and tour what it introduced (diffed against its first parent) |
BitVanes: Walkthrough Staged Changes |
AI walkthrough of the staged diff (also in the Source Control title menu) |
BitVanes: Walkthrough Code Path at Cursor |
Trace the function under the cursor — no git needed |
BitVanes: Next / Previous Step |
Transport — alt+] / alt+[ anywhere; bare ] / [ when not typing in the editor |
BitVanes: Browse Steps & Explanations |
QuickPick browser with full narratives, state transitions, and security notes |
BitVanes: Toggle Autoplay |
Auto-advance through the plan (manual navigation pauses it) |
BitVanes: Set Walkthrough Style |
Audience tuning: Expert / Standard / Learner |
BitVanes: Export Walkthrough Plan as JSON |
Save the current plan (steps, ranges, variable transitions, security notes) for scripts and agents |
Anything that can run a shell command can start a tour — so your coding agent can hand you a walkthrough of its own diff the moment it finishes:
code --open-url "vscode://bitvanes.bitvanes/walkthrough?scope=working-tree"scope is working-tree, staged, instant (local, no model), or
commit (the changes HEAD introduced); an optional
style=expert|standard|learner tunes that run only. Drop the one-liner into
your AGENTS.md, Cursor rules, or a Claude Code PostToolUse hook —
snippets here. A post-commit hook works
the same way:
git config --local core.hooksPath .githooks # with .githooks/post-commit:
code --open-url "vscode://bitvanes.bitvanes/walkthrough?scope=commit"- API keys are stored via
vscode.SecretStorage(OS keychain-backed). There is no setting that accepts a key, and keys are never logged. - The extension makes exactly these network calls: the language-model endpoint you configure, one-time localhost model-server detection (ports 11434/1234/8000) when provider is
auto, and localgitinvocations. Nothing else phones home — no telemetry. - Deep links (
vscode://bitvanes.bitvanes/walkthrough?…) are strictly validated — unknown scopes, styles, paths or authorities are rejected, and opening a link never writes files or changes settings. The handler adds no network surface; it only routes into the same pipeline as the palette commands. - Model output is treated as untrusted: it is escaped before rendering in hovers and the sidebar, and steps may only reference the files the walkthrough was generated from.
git diffruns with--no-textconvand--no-ext-diff, so repository-configured diff drivers are never executed.- Grammar binaries are vendored into the repo with pinned SHA-256 checksums (
scripts/fetch-grammars.mjs --checkverifies them in CI and at package time).
npm ci
node scripts/fetch-grammars.mjs # vendor grammars (checksum-pinned)
npm run typecheck && npm run lint
npm test # ~100 tests, incl. real tree-sitter WASM parses
npm run test:coverage # same suite with V8 coverage
npm run compile # esbuild production bundle
npm run package # vsce packagePress F5 in VS Code to launch the Extension Development Host. Contributions welcome — see CONTRIBUTING.md.
Docs and demo: https://bitvanes.com · Changes: CHANGELOG.md
Apache License 2.0. Copyright 2026 kodr-pro. See NOTICE.
Contributions intentionally submitted to this repository for inclusion are licensed under Apache-2.0, under the terms of section 5 of the license, without additional terms or conditions.
