AI Agent Bloat & Deletion Report Card
Autonomous software agents (Claude Code, Devin, Copilot SWE) solve prompts by adding code rather than deleting or refactoring. Pick any studied repo or enter any public GitHub repository to grade its AI deletion deficit.
Type score = geometric mean of three agent-vs-human ratios (net lines, deletions with human over agent, net lines per file). Each ratio is clamped to 0.5-2 (▲ marks a clamped one). Above 1 is worse for the agent.
Each PR is tagged feature, fix, test, docs, refactor, chore or other from its title prefix, labels or wording. The grade compares agents with humans within each type that has at least 3 agent and 3 human PRs (marked ✓): median net lines, median deletions and net lines per file, weighted by agent PRs. Each of the three ratios is clamped to between 0.5 and 2 first. A is a score of 0.8 or lower, B up to 1.1x, C up to 1.5x, D above. It does not count how often a PR grows code, because feature PRs normally do.
Enforce code size caps directly in CI so AI agents are forced to refactor & delete dead code.
pip install ratchet-size && ratchet init
Sample Analyzed PRs
| Cohort | PR | Title | Author / Agent | Changes |
|---|