CodeClone
JSON →Structural code quality analysis for Python with baseline-aware CI governance, canonical reports, and a triage-first MCP control surface for agents and IDEs.
Install
uvx codeclone@latest Tools · 6
- codeclone_analyze Run structural analysis on a Python project, detecting clones, complexity, coupling, cohesion, dependency cycles, dead code, health score, and more. Supports baseline-aware CI gating, coverage join, and multiple output formats.
- codeclone_baseline Generate or update a baseline file for regression detection. The baseline becomes the reference point for CI gating on new findings.
- codeclone_ci Run analysis in CI mode with fail-on-new, no-color, and quiet settings. When a baseline is loaded, also enables fail-on-new-metrics.
- codeclone_report Generate reports in HTML, JSON, Markdown, SARIF, or text format from a canonical analysis run.
- codeclone_coverage Join external Cobertura XML coverage data into the analysis to surface coverage hotspots and scope gaps.
- codeclone_diff Run analysis scoped to changed files based on git diff against a reference branch or commit.
Links
★ 9 GitHub stars