✦ v2.0 — Now with Claude, DeepSeek & Gemini

Understand any codebase
instantly.

AI explanations, live architecture diagrams, dependency graphs, cycle detection, and smart documentation — all powered by your choice of AI, directly inside VS Code.

↓ Install for VS Code ⬡ View on GitHub
9
Dashboard tabs
3
AI providers
17
Commands
6
Languages indexed
Code Analyzer — AI Chat
1export async function buildIndex(rootDir: string, ctx: ExtensionContext) {
2  // walk workspace, extract symbols, build module graph
3  const files = await walkDirFromRoot(rootDir);
4  return persist(ctx, index);
5}
✦ Code Analyzer · claude-sonnet-4-6
buildIndex is the core indexer in src/indexer.ts. It walks the workspace using walkDirFromRoot, extracts symbols (functions, classes, exports) from TypeScript, Python, Java and Go files, builds a module dependency graph, then persists everything to context.workspaceState for instant recall. It's called on startup with a 2-second delay and incrementally on every file save.
What it does

Every tool you need to
own any codebase.

Open a folder, index in 2 seconds, then ask — the AI has full cross-file context including your module graph.

💬

Persistent AI Chat

Multi-turn conversation with full codebase context. Type @filename to inject any file. History persists across sessions.

📊

9-Tab Dashboard

Overview · File Tree · Dependency Graph · Call Graph · Git Hotspots · Git History · Module Coupling · Symbol Search · AI Insights.

🔍

Cycle Detection

Tarjan's SCC algorithm highlights circular imports in red directly on your dependency graph.

🗺

Architecture Diagrams

AI generates Mermaid architecture diagrams with automatic syntax fixing and a retry loop. Diagrams that actually render.

📝

Auto Documentation

Generate README.md, inline JSDoc/TSDoc, and ARCHITECTURE.md. All show a diff preview before writing.

GitHub Remote Analysis

Paste any public GitHub URL. Analyzes the repo via REST API — no git clone. 24-hour cache.

🔗

Symbol Search

Searchable table of every symbol across your codebase — name, kind, file, line, exported flag, doc coverage.

🧠

Choose Your AI

Claude (Anthropic), DeepSeek, or Gemini — switch anytime. API keys stored in VS Code's secure secrets vault.

How it compares

Free, local, and open.

No SaaS subscription. Your code never leaves your machine except for the AI API call.

Code Analyzer

Free
Works offline (diagrams, search)
Full codebase cross-file context
AI chat with streaming
Architecture diagrams
Cycle detection
Doc generation
GitHub remote analysis
Inside VS Code

CodeSee

Works offline
Cross-file context
~AI chat
Architecture diagrams
Cycle detection
Doc generation
GitHub remote analysis
~VS Code native

Sourcegraph

Works offline
Cross-file context
AI chat
~Architecture diagrams
Cycle detection
Doc generation
GitHub remote analysis
VS Code native
Get started

Up and running in 3 steps.

No account required. Just install, paste an API key, and start asking questions.

1
VS Code Marketplace

Install the extension

Click the button below or search "Code Analyzer" in the VS Code Extensions panel (⌘⇧X). Or install from the command line:

code --install-extension nmaaalhawary.code-analyzer
2
Free API key required

Get an AI API key

The extension is free — you only pay for the AI calls (usually pennies). Pick any provider:

Anthropic Claude — console.anthropic.com (best quality)
🚀 DeepSeek — platform.deepseek.com (fast & cheap)
🌐 Google Gemini — aistudio.google.com (free tier)
3
VS Code Command Palette

Configure and go

Open the Command Palette and run:

Code Analyzer: Configure AI Provider

Pick your provider, paste your key. Then open any project and press ⌘⇧C to start chatting with your codebase.

Keyboard shortcuts

Everything at your fingertips.

All commands also available via ⌘⇧P → "Code Analyzer".

C
Open AI Chat
D
Open Dashboard
E
Explain Selection
G
Generate Workspace Diagram
A
Workspace Tools
Right-click
Explain / Diagram / Inline Docs

Ready to understand your codebase?

Free to install. Works with any AI provider. No account required.

↓ Install for VS Code ⬡ View on GitHub