All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Study: Code Cleanliness Doesn't Affect Coding Agent Success Rates but Reduces Token Usage by 8% and File Revisits by 34%

By

[Submitted on 19 May 2026]

4h ago· 2 min readenInsight

Summary

This research paper investigates whether code cleanliness (structural and stylistic quality) affects the performance of autonomous coding agents. Using a controlled minimal-pair evaluation protocol with 33 tasks across six repository pairs and 660 trials with Claude Code, the study finds that code cleanliness does not change agent pass rates but significantly alters operational efficiency: agents on cleaner code use 7-8% fewer tokens and reduce file revisitations by 34%. The findings suggest maintainability principles remain relevant in AI-driven development, affecting computational cost and navigational efficiency.

Source

Hacker NewsStudy: Code Cleanliness Doesn't Affect Coding Agent Success Rates but Reduces Token Usage by 8% and File Revisits by 34%arxiv.org

Key quotes

· 4 pulled
Code cleanliness does not change the agent's pass rate. However, it substantially alters the agent's operational footprint: agents working on cleaner code use 7 to 8% fewer tokens and reduce file revisitations by 34%.
Our findings suggest that traditional maintainability principles remain highly relevant in the era of AI-driven development, shaping the computational cost and navigational efficiency of coding agents.
Code cleanliness joins model choice, harness, and prompting as a factor that materially affects agent behaviours.
To isolate the effect of code cleanliness from agent capability, we introduce an evaluation protocol built around minimal pairs: repositories that match on architecture, dependencies, and external behaviour, but differ on static-analysis rule violations and cognitive complexity.
Snippet from the RSS feed
As autonomous coding agents see rapid adoption, their evaluation has primarily focused on task completion rates holding the target codebase fixed. This leaves a critical question unanswered: does the structural and stylistic quality, or ``cleanliness'' of

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.