Codeclone

•
12
•

Performs structural code quality analysis for Python, detecting architectural duplication, computing metrics, and enforcing CI gates with baseline-aware governance.

Codeclone offers deterministic structural code quality analysis for Python projects. It meticulously identifies architectural duplication, calculates essential quality metrics, and enforces robust CI gates, distinguishing between existing technical debt and new regressions through its innovative baseline-aware governance. Beyond traditional static analysis, Codeclone features an optional MCP (Managed Control Plane) interface, providing a canonical analysis pipeline that can be seamlessly integrated with AI agents and IDEs for a triage-first control surface. This enables developers and automated systems to efficiently review and manage code quality, ensuring standards are maintained and regressions are promptly addressed.

主な機能

01Comprehensive Clone Detection: Identifies function (CFG fingerprint), block (statement windows), and segment clones.
02Advanced Quality Metrics: Computes cyclomatic complexity, coupling (CBO), cohesion (LCOM4), dependency cycles, dead code, and an overall health score.
03Baseline-Aware Governance: Separates accepted legacy technical debt from new regressions, allowing CI to fail only on what changed.
04Multi-Format Reporting: Generates interactive HTML, JSON, Markdown, SARIF, and plain text reports from one canonical analysis.
05MCP Server for Agents & IDEs: Provides an optional read-only Managed Control Plane server for AI agents and IDE clients (e.g., VS Code, Claude Desktop, Codex).
065 GitHub stars

ユースケース

01Automating code quality checks and enforcing quality gates within CI/CD pipelines.
02Performing structural code reviews and identifying architectural duplication and technical debt in Python projects.
03Integrating with AI agents and IDEs for real-time, triage-first code quality feedback during development.