Code dependency graph and AI context engine for your codebase.
Depwire

See how your code connects. Give AI tools full codebase context.
โญ If Depwire helps you, please star the repo โ it helps this open-source project grow into an enterprise tool.
Depwire analyzes codebases to build a cross-reference graph showing how every file, function, and import connects. It provides:
- ๐จ Beautiful arc diagram visualization โ Interactive Harrison Bible-style graphic
- ๐ค MCP server for AI tools โ Cursor, Claude Desktop get full dependency context
- ๐ Dependency health score โ 0-100 score across 6 dimensions (coupling, cohesion, circular deps, god files, orphans & dead code, depth)
- ๐ Auto-generated documentation โ 13 comprehensive documents: architecture, conventions, dependencies, onboarding, file catalog, API surface, error patterns, test coverage, git history, full snapshot, TODO/FIXME inventory, health report, and dead code analysis
- ๐ Impact analysis โ "What breaks if I rename this function?" answered precisely
- ๐งน Dead code detection โ Find symbols that are defined but never referenced, categorized by confidence level
- ๐ Live updates โ Graph stays current as you edit code
- ๐ Multi-language โ TypeScript, JavaScript, Python, Go, Rust, and C
Why Depwire?
AI coding tools are flying blind. Every time Claude, Cursor, or Copilot touches your code, it's guessing about dependencies, imports, and impact. The result: broken refactors, hallucinated imports, and wasted tokens re-scanning files it already saw.
Lost context = lost money + lost time + bad code.
Depwire parsed the entire Hono framework โ 305 files, 5,636 symbols, 1,565 dependency edges โ in 2.3 seconds.
Depwire fixes this by giving AI tools a complete dependency graph of your codebase โ not a fuzzy embedding, not a keyword search, but a deterministic, tree-sitter-parsed map of every symbol and connection.
Stop Losing Context
- No more "start from scratch" chats โ Depwire is the shared knowledge layer that every AI session inherits. New chat? Your AI already knows the architecture.
- Stop burning tokens โ AI tools query the graph instead of scanning hundreds of files blindly
- One command, every AI tool โ Claude Desktop, Cursor, VS Code, any MCP-compatible tool gets the same complete picture
Ship Better Code
- Impact analysis for any change โ renaming a function, moving a file, upgrading a dependency, deleting a module โ know the full blast radius before you touch anything
- Refactor with confidence โ see every downstream consumer, every transitive dependency, 2-3 levels deep
- Catch dead code โ find symbols nobody references anymore with confidence-based classification (high/medium/low)
Stay in Flow
- Live graph, always current โ edit a file and the dependency map updates in real-time. No re-indexing, no waiting.
- Works locally, stays private โ zero cloud accounts, zero data leaving your machine. Just
npm installand go.
15 MCP Tools, Not Just Visualization
Depwire isn't just a pretty graph. It's a full context engine with 15 tools that AI assistants call autonomously โ architecture summaries, dependency tracing, symbol search, file context, health scores, dead code detection, temporal evolution, and more. The AI decides which tool to use based on your question.
Installation

npm install -g depwire-cli
Or use directly with npx:
npx depwire-cli --help
Quick Start
CLI Usage
# Auto-detects project root from current directory
depwire viz
depwire parse
depwire docs
depwire health
depwire dead-code
depwire temporal
# Or specify a directory explicitly
npx depwire-cli viz ./my-project
npx depwire-cli parse ./my-project
npx depwire-cli dead-code ./my-project
npx depwire-cli temporal ./my-project
# Temporal visualization options
npx depwire-cli temporal --commits 20 --strategy monthly --verbose --stats
# Exclude test files and node_modules
npx depwire-cli parse --e
Tools (5)
get_architecture_summaryProvides a high-level summary of the project architecture.trace_dependenciesTraces dependencies for a specific file or symbol.get_health_scoreReturns a 0-100 health score across 6 dimensions including coupling and cohesion.find_dead_codeIdentifies symbols defined but never referenced.analyze_impactAnalyzes the blast radius of a proposed change to a function or file.Configuration
{"mcpServers": {"depwire": {"command": "npx", "args": ["-y", "depwire-cli", "mcp"]}}}