Show HN: Codeint – Measure duplication and complexity drift in AI-written code A developer released codeint, an open-source Rust tool that measures "software entropy" in AI-written code by reporting four separate metrics — Erosion, Duplication, Verbosity and Import cycles — rather than a single combined score. codeint ships built-in language plugins for TypeScript/JavaScript, Rust, PHP, Dart and Python plus sandboxed WebAssembly plugins, and scans laravel/framework (132k production lines) in 0.47s and flutter/packages (434k production lines) in 3.68s on Apple Silicon. Each built-in language is calibrated against 20 public repositories pinned before 2023-01-01, and the tool offers `codeint check` budgets and `codeint diff ` ratcheting against a pull request's Git merge-base. Why codeint why-codeint · How it works how-it-works · Quick start quick-start · Guide https://github.com/avidianity/codeint/blob/main/docs/guide/README.md · Reference https://github.com/avidianity/codeint/blob/main/docs/reference.md · Programmatic API https://github.com/avidianity/codeint/blob/main/docs/programmatic.md · Plugins https://github.com/avidianity/codeint/blob/main/docs/plugins.md · llms.txt https://github.com/avidianity/codeint/blob/main/llms.txt Coding agents write locally valid code very quickly. Each pull request can pass tests and linters while quietly adding copied blocks, redundant branches, deeper functions, and tangled imports. Over dozens of changes, that structural drag compounds until both humans and agents slow down. codeint measures Software entropy directly from the shape of source code so you see it grow before it compounds. It ships with built-in Language plugins for TypeScript/JavaScript, Rust, PHP, Dart, and Python, plus sandboxed WebAssembly Plugins for other languages and custom Metrics. codeint reports four Metrics side by side and never collapses them into one grade or index ADR 0003 https://github.com/avidianity/codeint/blob/main/docs/adr/0003-no-combined-score.md . A single score hides regressions when one Metric improves while another worsens. - Erosion : share of Function mass cyclomatic complexity sqrt source lines in functions with cyclomatic complexity over 10. - Duplication : share of source lines in Clone groups at least 75 normalized tokens and 14 distinct normalized tokens, catching renamed copy-paste while ignoring import lists and data tables . - Verbosity : share of source lines in zero-false-positive Flagged lines or Clone groups. - Import cycles : share of modules in at least one runtime Import cycle. - Pre-2023 Reference ranges : every built-in language is calibrated against 20 public repositories pinned before 2023-01-01 10th to 90th percentile , so raw numbers have grounded context. - Strict Source-set separation : every file belongs to production , test , generated , or vendored , so fixtures and generated code never distort Production ratios. - Budgets and Regressions : Budgets cap absolute entropy in codeint check , while codeint diff