depwire
OfficialDepwire is a code intelligence server that gives AI tools full codebase context through dependency analysis, visualization, and code quality assessment. It operates entirely locally (read-only, privacy-safe) and supports TypeScript, JavaScript, Python, Go, Rust, and C.
Connect to repositories — Link to local directories or GitHub repos (auto-cloned) for analysis
Symbol lookup — Get detailed info on any function, class, variable, or type by name
Dependency tracing — Find everything a symbol depends on, or everything that depends on it
Impact analysis — Determine the full "blast radius" of changing, renaming, or removing a symbol (direct + transitive dependents and affected files)
File context — Get all defined symbols, imports, exports, and dependents for any file
Symbol search — Search across the codebase with partial/case-insensitive matching
Architecture summary — High-level overview including file/symbol counts, most-connected files, dependency hotspots, and orphan files
File listing — List all project files with stats, optionally filtered by subdirectory
Graph visualization — Interactive arc diagram of the codebase's cross-reference graph
Documentation — Retrieve or regenerate auto-generated docs (architecture, conventions, onboarding, API surface, dead code report, and more)
Health scoring — 0–100 dependency health score across 6 dimensions (coupling, cohesion, circular deps, god files, orphans, depth) with actionable recommendations
Temporal analysis — Visualize how the dependency graph evolved over git history
Dead code detection — Find unused symbols categorized by confidence level (high/medium/low)
Enables the MCP server to connect to and analyze repositories hosted on GitHub to build a cross-reference graph of symbols and imports.
Depwire
Your AI doesn't know your architecture. Depwire does.
Depwire is the infrastructure layer between your AI coding assistant and your codebase. Before your AI touches a single file, Depwire has already mapped every connection, scored every risk, and simulated every change.

⭐ If Depwire saves you from a broken build, star the repo — it helps this project grow.
The problem
AI coding tools are getting smarter. But they still have a fundamental blind spot: they don't know your architecture before they touch it.
You ask Claude to delete a utility file. It deletes it cleanly. Confident. No warnings.
Then you run the build. 30 files broken.
Claude had no idea. It saw one file. It didn't see the 30 downstream consumers.
This isn't a model problem. It's a context problem. The AI is flying blind.
The infrastructure layer
Depwire is the context and safety layer for AI-generated code.
Depwire sits between your AI and your codebase. It builds a complete dependency graph using tree-sitter — deterministic, not probabilistic — and serves it to your AI through 17 MCP tools.
Four guarantees:
Local — everything runs on your machine. No cloud parsing. No data sent anywhere.
Secure — your code never leaves your machine. The security scanner requires no API key.
Token-efficient — Depwire serves pre-computed graph data. Your AI gets surgical answers, not file dumps. 40% fewer tool calls. 56% fewer file reads.
Deterministic — tree-sitter parses your code the same way every time. 100% accurate. Not a guess.
Start here
npm install -g depwire-cliThree commands to understand any codebase:
depwire whatif # know what breaks before you change anything
depwire security # catch vulnerabilities before AI ships them
depwire viz # see your entire architecture instantlyWhat If simulation
Know the blast radius before you touch anything.
depwire whatif . --simulate delete --target src/utils/encode.tsReal output on honojs/hono — 352 files, 6,245 symbols:
Health Score: 41 → 41 (+0 → unchanged)
Affected Nodes: 29
Broken Imports: 30
• src/utils/jwt/jwt.ts imports decodeBase64Url
• src/adapter/aws-lambda/handler.ts imports encodeBase64
• src/utils/basic-auth.ts imports decodeBase64
[27 more...]
Removed Edges: 32Before touching a single file. Zero file I/O. Pure in-memory simulation.
Five operations:
depwire whatif . --simulate delete --target src/utils/encode.ts
depwire whatif . --simulate move --target src/utils/encode.ts --destination src/core/encode.ts
depwire whatif . --simulate rename --target src/utils/encode.ts --destination src/utils/encoder.ts
depwire whatif . --simulate split --target src/services/auth.ts --symbols "validateToken,refreshToken"
depwire whatif . --simulate merge --target src/utils/helpers.ts --merge-target src/utils/formatters.tsRun without --simulate to open the browser UI — side-by-side arc diagrams showing current vs simulated state.
Security scanner
AI will confidently ship vulnerable code. Depwire stops it before production.
depwire security . # full repo scan
depwire security . --target src/auth.ts # single file
depwire security . --format sarif # GitHub Security tab integration
depwire security . --fail-on high # CI gate — exit 1 if HIGH or above
depwire security . --class injection # specific check onlyReal output on honojs/hono:
6 Critical 19 High 14 Medium 1 Low10 check categories — dependency CVEs, shell injection, hardcoded secrets, path traversal, auth bypass, input validation, information disclosure, cryptography weaknesses, frontend XSS, and architecture-level risks.
Graph-aware severity: a medium shell injection reachable from an MCP tool or HTTP route is automatically elevated to critical. This is what no generic SAST tool can replicate — Depwire knows your architecture, so it knows what's actually reachable.
Available as MCP tool security_scan and via depwire-cli/sdk.
Visualization

depwire vizInteractive arc diagram of your entire codebase. Every file, every connection, every dependency visible at once. Hover to inspect. Click to filter. Export as PNG or SVG.
Temporal graph

depwire temporalWatch your architecture evolve over git history. Timeline slider scrubs through commits — the arc diagram morphs as your codebase grew, coupled, and refactored. Nobody else does this.
All commands
Command | Description |
| Interactive arc diagram in browser |
| Simulate changes before touching code |
| Scan for vulnerabilities — graph-aware severity |
| 0-100 architecture health score across 6 dimensions |
| Find unused symbols with confidence scoring |
| Generate 13 architecture documents |
| Visualize architecture evolution over git history |
| Parse and export dependency graph as JSON |
| Start MCP server for AI coding assistants |
All commands auto-detect your project root. No path configuration needed.
MCP server — AI integration
Connect Depwire to any MCP-compatible AI tool. Your AI gets 17 tools it can call autonomously.
Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"depwire": {
"command": "npx",
"args": ["-y", "depwire-cli", "mcp"]
}
}
}Cursor — Settings → Features → Experimental → Enable MCP → Add Server:
Command:
npxArgs:
-y depwire-cli mcp

17 MCP tools
Tool | Description |
| Connect to any local project or GitHub repo |
| High-level project overview |
| Full context — imports, exports, dependents. Includes cross-language connections. |
| What does a symbol depend on? |
| What depends on this symbol? |
| Look up any symbol's details |
| Find symbols by name across the codebase |
| List all files with stats |
| What breaks if you change a symbol? Cross-language edges included. |
| Generate interactive arc diagram |
| 0-100 health score with recommendations |
| Symbols defined but never referenced |
| Retrieve auto-generated codebase documentation |
| Regenerate documentation on demand |
| Architecture evolution over git history |
| Simulate move/delete/rename/split/merge before touching code. Returns health delta, broken imports, affected nodes. Cross-language edges included. |
| Scan for vulnerabilities with graph-aware severity elevation. No API key required. |
Cross-language edge detection
Depwire detects connections between files written in different languages.
A TypeScript fetch('/api/users') call matched to a Python @app.get('/api/users') route definition — that's a cross-language edge. Delete the Python route and Depwire shows the TypeScript callers as broken.
Supported patterns:
REST API edges — fetch/axios calls matched to Express, FastAPI, Flask, Gin route definitions
Subprocess edges — execSync/subprocess.run calls matched to target files in the graph
These edges flow through every existing feature: What If simulation, impact analysis, security scanner, and arc diagram visualization.
Architecture health score
depwire health .Overall: 68/100 (Grade: D)
Coupling 70 C
Cohesion 80 B
Circular Dependencies 100 A
God Files 40 F
Orphans & Dead Code 20 F
Dependency Depth 60 D6 dimensions. Letter grades. Actionable recommendations. Trend tracking across runs.
SDK
Depwire exposes a stable public API for programmatic use and CI pipelines:
npm install depwire-cliimport {
parseProject,
buildGraph,
calculateHealthScore,
analyzeDeadCode,
generateDocs,
scanSecurity,
SimulationEngine,
detectCrossLanguageEdges,
searchSymbols,
getImpact,
getArchitectureSummary,
DepwireSDKVersion
} from 'depwire-cli/sdk';The SDK is the stable public API surface. All integrations should import from depwire-cli/sdk — never from internal paths.
Why Depwire
Depwire | RAG-based tools | LLM scanning | |
Approach | Deterministic graph | Probabilistic match | Brute force |
Accuracy | 100% — tree-sitter AST | ~70% — embedding match | Varies |
Refactor safety | Full call chain tracing | Misses indirect refs | Blind edits |
Token cost | Ultra-low — surgical reads | High — context stuffing | Extreme |
Cross-language | REST + subprocess edges | None | None |
Security scanner | Graph-aware severity | None | None |
What If simulation | Before touching code | None | None |
Runs locally | Always | Varies | Never |
Language support
TypeScript, JavaScript, Python, Go, Rust, C — with cross-language edge detection between all supported languages.
C# / .NET support coming in v1.1.
GitHub Action — PR Impact Analysis
Depwire integrates into your CI/CD pipeline via the depwire-action GitHub Action.
On every pull request it automatically posts a dependency impact report — which symbols changed, what breaks, health score before and after. Code reviewers see the architectural blast radius before merging.
Add to .github/workflows/depwire.yml:
name: Depwire PR Impact
on:
pull_request:
branches: [main]
permissions:
contents: read
pull-requests: write
jobs:
depwire:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: depwire/depwire-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}Block PRs that hurt your architecture:
- uses: depwire/depwire-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fail-on-score-drop: 5GitHub Marketplace — depwire-action repo
Cloud dashboard
app.depwire.dev — full dependency graph, health score, dead code report, and AI codebase chat in the browser. No local setup required.
Free for public repos
Pro ($19/month) — unlimited repos, private repo support, AI codebase chat
Roadmap
Shipped
Arc diagram visualization
17 MCP tools
Multi-language support (TypeScript, JavaScript, Python, Go, Rust, C)
Architecture health score
Dead code detection
Temporal graph
What If simulation — CLI + browser UI
Security scanner — graph-aware severity elevation
Cross-language edge detection — REST API + subprocess
Public SDK —
depwire-cli/sdkCloud dashboard — app.depwire.dev
PR Impact GitHub Action
Coming next
C# / .NET language support
AI-suggested refactors
VSCode extension
Natural language architecture queries
Security posture
Depwire is read-only. It never writes to, modifies, or executes your code.
Parses with tree-sitter — the same parser used by VS Code and Zed
Visualization server binds to localhost only
No data leaves your machine
Blocks access to sensitive system directories
npm packages published with provenance verification
See SECURITY.md for full details.
Contributing
Fork the repository
Create a feature branch
Add tests for new functionality
Submit a pull request
Sign the CLA (handled automatically on your first PR)
Author
Atef Ataya — AI architect, author, and creator of Depwire.
YouTube — 600K+ subscribers covering AI agents, MCP, and LLMs
License
Business Source License 1.1 — free for personal and internal company use. Converts to Apache 2.0 on February 25, 2029.
Commercial licensing: atef@depwire.dev
Built with tree-sitter, graphology, D3.js, and the Model Context Protocol.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/depwire/depwire'
If you have feedback or need assistance with the MCP directory API, please join our Discord server