Repository quality and agent cost
A controlled Claude Code study gives the day’s clearest quantitative signal. The authors built minimal-pair repositories with the same architecture, dependencies, and external behavior, then varied static-analysis violations and cognitive complexity. Across 33 tasks, 6 repository pairs, and 660 trials, cleaner code left pass rate unchanged. It cut token use by 7% to 8% and reduced file revisits by 34%.
The result makes code quality an operating-cost variable for agents. Clean structure helps the agent move through the repository with less repeated inspection, even when hidden tests judge the final outputs the same way.