Skip to main content

DebtMap — Technical Debt Intelligence

Connect code quality to business impact. Only 7% of engineers use ANY tool for technical debt measurement. DebtMap is the tool for the other 93%.

What It Does

DebtMap scans your codebase and produces actionable intelligence:

  • 7 analyzers: Complexity, coupling, duplication, dead code, test gaps, dependency age, documentation gaps
  • Business impact scoring: Connects code issues to incidents, velocity, and dollar cost
  • ROI prioritization: "Fix this module first — saves $X/month in engineering time"
  • Trend tracking: Is your debt improving or degrading over time?
  • Executive reports: Share with leadership in a format they understand

Install

pip install autoai-debtmap

For MCP server support:

pip install 'autoai-debtmap[mcp]'

CLI Usage

# Full scan
debtmap scan /path/to/repo

# Get prioritized fix list
debtmap prioritize /path/to/repo

# Generate executive report
debtmap report /path/to/repo

# Find worst hotspots
debtmap hotspots /path/to/repo

# Estimate $ cost of debt
debtmap cost /path/to/repo --hourly-rate 100 --team-size 8

# Track trends over time
debtmap trend /path/to/repo

Quick Start -- MCP Server

Add to your Claude Code or Cursor MCP config:

{
  "mcpServers": {
    "debtmap": {
      "command": "uvx",
      "args": ["autoai-debtmap-mcp"],
      "description": "DebtMap — Scan your codebase for technical debt with ROI-ranked fix lists"
    }
  }
}

That's it. No signup. No API key. No data leaves your machine.

MCP Tools

Tool Description
debt_scan Scan a codebase for technical debt
debt_hotspots Find worst code hotspots
debt_prioritize ROI-ranked fix list
debt_cost Estimate $ cost of debt
debt_trend Debt trend over time
debt_report Executive-ready report
debt_compare Compare branches/releases

Analyzers

Cyclomatic Complexity

Parses Python AST to calculate real cyclomatic complexity. Counts if, elif, for, while, except, with, and, or, assert, ternary expressions, and comprehensions.

Module Coupling

Builds an import dependency graph and calculates afferent/efferent coupling and instability metrics. Detects circular dependencies.

Code Duplication

Uses content-hash fingerprinting with normalization (whitespace, string/number literals) to detect near-duplicate code blocks.

Dead Code Detection

Identifies unused functions, unused imports, and unreachable code after return/raise/break/continue statements.

Test Coverage Gaps

Cross-references source module public APIs with test files to find untested functions, classes, and methods.

Dependency Age

Parses requirements.txt and pyproject.toml, queries PyPI for latest versions, and classifies outdatedness severity.

Documentation Gaps

Finds public functions, classes, methods, and modules missing docstrings.

License

Apache 2.0

Metadata

Release files for autoai-debtmap 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoai-debtmap 0.1.0
File Size Uploaded
autoai_debtmap-0.1.0.tar.gz 64.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autoai-debtmap 0.1.0
File Interpreter ABI Platform
autoai_debtmap-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 115.7 kB

Release files / autoai_debtmap-0.1.0.tar.gz

Download URL autoai_debtmap-0.1.0.tar.gz
Size 64.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d33573f00d33098f8df854397a63afc1611e4a330ce99ec8557f9c3bd66460c6
BLAKE2b-256 checksum
How to use checksums
7aaf132d28f87d1b857a720460a8e8e761ea40bfcc2dde1ed3ee714d7d6221f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Release files / autoai_debtmap-0.1.0-py3-none-any.whl

Download URL autoai_debtmap-0.1.0-py3-none-any.whl
Size 51.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79205a94897112304a164bb2feaa3b0ef8bfd733bd0a2cdf7b444f16ed223a0c
BLAKE2b-256 checksum
How to use checksums
9f2a7de55a5a527275c023766e32aec6481a4de35418f5c750649ead39f84a56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page