Depwire is positioned as the missing context layer for AI-assisted refactoring. AI coding tools often do not understand the project architecture before modifying code; for example, when deleting a utility file, they may overlook downstream consumers that still reference it, causing the build to fail. Depwire builds a deterministic dependency graph by parsing source code, providing architectural context to AI assistants so impact can be assessed before changes are made.
Main capabilities
- Dependency graph construction: uses tree-sitter to parse symbols and establish dependency relationships, covering 16 programming languages (TypeScript, JavaScript, Python, Go, Rust, C, C#, Java, C++, Kotlin, PHP, Swift, Mojo, Ruby, Dart, R) as well as Angular templates. Relationships that cannot be parsed are recorded rather than inventing edges.
- What If simulation: simulates proposed changes on the loaded graph, showing known dependents, import chains, and health changes without modifying source files. Supports five operations, and the current and simulated states can be viewed side by side as arc diagrams through a browser UI.
- Impact scope analysis: reports broken imports, cycle group changes, health shifts, and security findings.
- Security scanning: includes 10 categories of checks (dependency CVEs, process security, credential management, path security, authentication security, input validation, information disclosure, cryptographic weaknesses, output encoding security, architectural-level risks), runs dependency vulnerability and supply chain checks by default, and can skip network requests with --no-dependency-audit.
- Architectural health scoring: scores across six dimensions: coupling, cohesion, cyclic dependency groups, god files, orphans and dead code, and dependency depth, providing letter grades, recommendations, and trends.
- Dead code detection: only export symbols with zero dependents are considered dead code candidates (corrected as of v1.6.1).
- Cross-language edge detection: supports REST API edges (such as TypeScript fetch calls matching Python FastAPI routes) and subprocess edges.
- Sequence diagrams: view architectural changes through a git history timeline slider.
- Structural diff: compare dependency graphs between any two git refs.
Usage
- CLI: three commands are enough to parse supported codebases. depwire parse [directory] reads the specified directory or the current directory and outputs depwire-output.json. depwire verify-change validates before applying changesCertificate.
- MCP server: integrates with AI assistants through 24 MCP tools, supporting Claude Desktop, Cursor, and others. Configuration examples: for Claude Desktop, add it in claude_desktop_config.json; for Cursor, go to Settings → Features → Experimental → Enable MCP → Add Server, with the parameter -y depwire-cli mcp.
- Automatically generated context: after running depwire parse ., it generates .depwire/AGENTS.md, containing the module structure, key files, health summary, and MCP quick-start commands.
- SDK: import the stable public API via depwire-cli/sdk for CI pipelines and programmatic use.
- Other integrations: VSCode extension, GitHub Action (PR impact analysis), pre-commit/prek hooks.
Use cases
- Assess the scope of change impact before AI-assisted refactoring.
- Cross-module dependency analysis for multi-module Maven/Gradle projects.
- Use as a safety gate and change validation in CI.
- Codebase architecture health monitoring and dead code cleanup.
Limitations and caveats
- The local CLI does not collect usage telemetry and does not upload source code, file names, graph data, or analysis results; however, dependency auditing may contact package registries and public advisory databases, and the What If browser page loads D3 from a CDN.
- Parsing results depend on the language constructs and files the parser can analyze, and it is not guaranteed to capture all relationships in any repository.
- The previously published agent benchmark has been withdrawn due to issues found in an audit, and its conclusions should not be cited.
- The health scoring method changed in versions such as v1.6.1 and v1.9.0, so scores are not directly comparable across versions.
- Some performance data are measurements from before v1.9.0 and have not been re-measured.
- The cloud dashboard is a separate service.