RepoDNA for Visual Studio Code
Local-first repository architecture, deep code quality, live change monitoring, and AI agent context intelligence directly inside Visual Studio Code.
RepoDNA analyzes your codebase statically—without executing target repository code—and surfaces architecture contracts, dependency graphs, code quality hotspots, live structural alerts, and token-budgeted AI agent context right in your editor.
Visual Overview
Architecture Studio & Dependency Graph

Architecture & Code Quality Health Report

Command Palette & Fast Navigation

Requirements & Quick Start
Install the local RepoDNA engine (Python 3.12+ required):
pip install repodna-engine
Verify your local installation:
repodna --version
repodna doctor
Open any trusted workspace in VS Code, click the RepoDNA icon in the Activity Bar, and run RepoDNA: Analyze Workspace (or press Ctrl+Shift+P / Cmd+Shift+P and search RepoDNA).
Key Features
- Native Activity Bar & 6 Tree Views: Repository Overview, Architecture, Quality Findings, Live Changes, Agent Context, and Analysis Status.
- Unicode-Accurate Inline Diagnostics: Maps architecture contract violations, complexity hotspots, code duplicates, conservative unused candidates (
Hint), and AST security signals (Warning) directly to UTF-16 editor positions.
- Secure Architecture Webview: Interactive architecture summary rendered with strict per-render cryptographic nonce CSP, HTML escaping, and native Light/Dark/High-Contrast VS Code theme tokens.
- Live Architecture Monitoring: Start, pause, and stop real-time structural watch sessions on your workspace without leaving VS Code.
- AI Agent Context Packing: Generate evidence-backed, token-budgeted task context packs, inspect symbol/module change impact, and verify changes before committing.
- Full Workstation Integration: Launch the bundled local RepoDNA Workstation UI directly from the Command Palette (
RepoDNA: Open Workstation).
Commands
| Command |
Description |
RepoDNA: Analyze Workspace |
Run full static architecture and quality analysis on the active workspace |
RepoDNA: Refresh Analysis |
Re-run analysis and refresh all TreeViews and diagnostics |
RepoDNA: Open Architecture |
Open the interactive Architecture Webview inside VS Code |
RepoDNA: Show Quality Findings |
Focus the Quality Findings view and diagnostics |
RepoDNA: Start / Pause / Stop Live Monitoring |
Control real-time file watching and structural alerts |
RepoDNA: Generate Task Context |
Build a token-budgeted AI agent context pack for a task |
RepoDNA: Inspect Change Impact |
Trace downstream architectural blast radius |
RepoDNA: Verify Changes |
Run post-change architectural contract and evidence checks |
RepoDNA: Open Workstation |
Open the local RepoDNA Workstation in your browser |
RepoDNA: Doctor |
Run environment and backend diagnostics |
Configuration
| Setting |
Default |
Description |
repodna.pythonPath |
"" |
Explicit Python executable with repodna-engine installed (empty = auto-discover .venv, venv, or system Python) |
repodna.backendUrl |
"" |
Optional user-managed loopback RepoDNA backend URL (e.g. http://127.0.0.1:8000) |
repodna.autoStartBackend |
true |
Allow RepoDNA to spawn and supervise a local loopback backend in trusted workspaces |
repodna.defaultTokenBudget |
2048 |
Default token budget (256–16384) for AI Agent Context packs |
Security & Privacy
- 100% Local-First: Connects strictly to loopback (
127.0.0.1 / localhost / ::1) and rejects redirects or non-loopback URLs.
- Authenticated Local Backend: Verifies
/api/ecosystem/handshake with HMAC-SHA256 instance proof to prevent port impersonation, and passes per-session bearer authentication for local API calls.
- Workspace Trust First (
limited): In VS Code Restricted Mode, RepoDNA automatically disables backend process spawning, live monitoring, and workspace configuration overrides.
- Strict Process Ownership: Terminates only child processes spawned by the extension itself.
- Zero Telemetry & Zero Target Execution: Never executes code from analyzed repositories and sends no telemetry or source code to external servers.
Support & Source
| |