Healthy code costs agents 22 to 35 percent less to review
The point
Marcus Borg recounts an experiment on whether healthy code was cheaper for agents to review. The study used CodeScene measures, three LLMs, 465 pull requests on 246 open source repositories, and a review and fix pipeline with five agents.
Why it matters
For builders, code health lowers agent review cost, not just human maintenance cost.
Key details
- Typical unhealthy pull request scored CodeHealth 2.8, typical healthy one scored 9.7
- Cost gap between them added up to 22 to 35 percent
- Complex Method and Complex Conditional were highlighted smells that raised costs
Original ~6 min → 25 sec here Source: Martin Fowler, Nov 20, 2026