The missing context layer for AI-assisted refactoring
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- !No standard license detected
git clone https://github.com/depwire/depwire{
"mcpServers": {
"depwire": {
"command": "node",
"args": ["/path/to/depwire/dist/index.js"]
}
}
}Resumen de MCP Servers
# Depwire
<div align="center">
[](https://www.npmjs.com/package/depwire-cli)
[](https://www.npmjs.com/package/depwire-cli)
[](https://github.com/depwire/depwire/stargazers)
[](https://github.com/depwire/depwire/blob/main/LICENSE)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://github.com/depwire/depwire)
[](https://www.youtube.com/watch?v=ujBg0H3eqpE)
[](https://www.youtube.com/watch?v=wdTJfSRTQu8)
[](https://app.depwire.dev)
[](https://marketplace.visualstudio.com/items?itemName=depwire.depwire-vscode)
</div>
**Your AI doesn't know your architecture. Depwire does.**
## What makes Depwire different
<p align="center">
<img src="./assets/deterministic_vs_rag_diagram.svg" alt="Depwire deterministic graph vs RAG probabilistic approach" width="680" />
</p>
Depwire builds a **DETERMINISTIC, NOT PROBABILISTIC** dependency graph of your codebase. This is not RAG. There are no embeddings, no similarity scores, no vector databases, no guesses. Depwire uses tree-sitter — the same parser powering GitHub's code intelligence — to extract exact symbol-level facts from every file: every function, every class, every interface, every import and export relationship, across 17 programming languages. When you ask "what breaks if I delete `encodeToken` in `auth/token.ts`?", Depwire does not search for similar-looking code and estimate an answer. It traverses the exact dependency graph and returns the precise list of 14 files that import that symbol, which import chains break, and what your health score drops by. This is compiler-level precision applied to AI-assisted development — not a language model's best guess about your code.
**Not a build graph either.** Tools like Nx, Turborepo, and Grapher track package-level dependencies for build caching. Depwire tracks symbol-level dependencies — every function, class, and import relationship — which is what makes What If simulation, graph-aware security scanning, and exact blast radius analysis possible.
## Contents
- [What makes Depwire different](#what-makes-depwire-different)
- [Start here](#start-here)
- [The infrastructure layer](#the-infrastructure-layer)
- [What If simulation](#what-if-simulation)
- [Security scanner](#security-scanner)
- [Pre-action verification](#pre-action-verification)
- [Structural diff between commits](#structural-diff-between-commits)
- [MCP server — AI integration](#mcp-server--ai-integration)
- [Cross-language edge detection](#cross-language-edge-detection)
- [Architecture health score](#architecture-health-score)
- [Language support](#language-support)
- [SDK](#sdk)
- [Cloud dashboard](#cloud-dashboard)
- [GitHub Action — PR Impact Analysis](#github-action--pr-impact-analysis)
- [Depwire Action Token (DAT)](#depwire-action-token-dat)
- [Roadmap](#roadmap)
---
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](https://github.com/depwire/depwire) — it helps this project grow.
---
## Benchmark Results
Tested on [payloadcms/payload](https://github.com/payloadcms/payload) using **Claude Code (claude-opus-4-8)** — 645 files, 9,292 symbols, 80-file cascading refactor (adding a required parameter to a core error class used across the entire codebase). 3 modes tested: without Depwire, Depwire with no guidance, and Depwire with guided workflow prompt.
| Mode | Duration | API Calls | Tokens | Cost | Correctness |
|------|----------|-----------|--------|------|-------------|
| Without Depwire | 16m 46s | 40 | 2,959,169 | $9.03 | 100% |
| Depwire (no guidance) | 11m 20s | 46 | 3,399,822 | $9.80 | 100% |
| Depwire + workflow | **10m 43s** | **26** | **2,165,356** | **$7.35** | 100% |
**Depwire + guided workflow vs no Depwire:**
- 36% faster
- 35% fewer API calls
- 27% fewer tokens
- 19% lower cost
> **Key finding:** Depwire without workflow guidance performed worse than no Depwire — agents had the tools but didn't use them unprompted, paying MCP overhead without getting any benefit. The `affected_files` command returned the complete 84-file blast radius in one call, but only when the agent was explicitly told to run it first. This is why we built `depwire prompt` — not as boilerplate, but because the benchmark showed agents need an explicit decision tree to use graph tools effectively.
[Full benchmark methodology and scripts →](https://github.com/depwire/depwire-benchmark)
> Agent: Claude Code (claude-opus-4-8) | Repo: payloadcms/payload @ commit 1545e87 | Benchmark scripts: [github.com/depwire/depwire-benchmark](https://github.com/depwire/depwire-benchmark)
---
## 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 23 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
```bash
npm install -g depwire-cli
```
Three commands to understand any codebase:
```bash
depwire whatif # know what breaks before you change anything
depwire security # catch vulnerabilities before AI ships them
depwire viz # see your entire architecture instantly
```
---
## Tested on real-world projects
| Project | Language | Files | Symbols | Edges | Health |
|---------|----------|-------|---------|-------|--------|
| [google/guice](https://github.com/google/guice) | Java (multi-module, 13 modules) | 647 | 30,592 | 10,081 | 31/100 |
| [honojs/hono](https://github.com/honojs/hono) | TypeScript | 352 | 6,462 | 2,194 | 41/100 |
| [apache/commons-lang](https://github.com/apache/commons-lang) | Java (single-module) | 624 | 29,723 | 9,037 | — |
| [pallets/flask](https://github.com/pallets/flask) | Python | 79 | 2,005 | 851 | — |
| [dart-lang/shelf](https://github.com/dart-lang/shelf) | Dart | 108 | 1,639 | 219 | — |
| [rstudio/plumber](https://github.com/rstudio/plumber) | R | 197 | 1,194 | 219 | — |
| [payloadcms/payload](https://github.com/payloadcms/payload) | TypeScript | 645 | 9,292 | 3,511 | — |
> Numbers from real `depwire parse` runs on public repositories. Last validated: v1.8.2 (June 2026).
---
## What If simulation
Know the blast radius before you touch anything.
```bash
depwire whatif . --simulate delete --target src/utils/encode.ts
```
Real output on [honojs/hono](https://github.com/honojs/hono) — 352 files, 6,245 symbols:
Health Score: 41 → 41 (+0 → unchanged)
Affected Nodes: 29
Broken Imports: 30
• src/Lo que la gente pregunta sobre depwire
¿Qué es depwire/depwire?
+
depwire/depwire es mcp servers para el ecosistema de Claude AI. The missing context layer for AI-assisted refactoring Tiene 58 estrellas en GitHub y se actualizó por última vez yesterday.
¿Cómo se instala depwire?
+
Puedes instalar depwire clonando el repositorio (https://github.com/depwire/depwire) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar depwire/depwire?
+
Nuestro agente de seguridad ha analizado depwire/depwire y le ha asignado un Trust Score de 62/100 (tier: OK). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene depwire/depwire?
+
depwire/depwire es mantenido por depwire. La última actividad registrada en GitHub es de yesterday, con 0 issues abiertos.
¿Hay alternativas a depwire?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega depwire en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/depwire-depwire)<a href="https://claudewave.com/repo/depwire-depwire"><img src="https://claudewave.com/api/badge/depwire-depwire" alt="Featured on ClaudeWave: depwire/depwire" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface