NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...1 min read

Does code cleanliness affect coding agents? A controlled minimal-pair study

Share
NOW LET US Article – Does code cleanliness affect coding agents? A controlled minimal-pair study

A new controlled study reveals how code cleanliness affects autonomous coding agents like Claude Code. While it does not alter task completion rates, clean code significantly reduces token usage and file revisitations, proving traditional maintainability principles remain vital.

Computer Science > Software Engineering

Title:Does Code Cleanliness Affect Coding Agents? A Controlled Minimal-Pair Study

View PDF HTML (experimental)Abstract: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 the underlying code affect an agent's ability to navigate and modify it? 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. The pairs are constructed in both directions, by agent pipelines that either degrade a clean repository or clean a messy one. We author 33 tasks across six such pairs, evaluated through hidden tests at the application's public surface. Across 660 trials with Claude Code, 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.

Bibliographic and Citation Tools

Code, Data and Media Associated with this Article

Demos

Recommenders and Search Tools

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – The 'has_not_been_viewed_much' Field in the Art Institute of Chicago's API

dev-tools

The 'has_not_been_viewed_much' Field in the Art Institute of Chicago's API

The Art Institute of Chicago's API features a unique boolean field called 'has_not_been_viewed_much' to flag artworks with fewer than 200 views since 2010.

NOW LET US Related – Show HN: Homegames. An open-source game platform I've been making for 8 years

dev-tools

Show HN: Homegames. An open-source game platform I've been making for 8 years

Homegames is a free, open-source game platform developed over 8 years, allowing users to play, build, and share games directly in their browser without an account.

NOW LET US Related – OpenPrinter

dev-tools

OpenPrinter

OpenPrinter is a sustainable, open-source printer designed for longevity, featuring a fully repairable modular design and refillable ink system. It offers an eco-friendly and cost-effective alternative to traditional printers with cross-platform compatibility.

NOW LET US Related – It's not about physical vs. digital games, it's about ownership

dev-tools

It's not about physical vs. digital games, it's about ownership

PlayStation's move towards a fully digital future by 2028 highlights a deeper crisis in the gaming industry: the death of game ownership. While PC gaming successfully transitioned to digital, consoles face a monopoly where players lose the right to trade, preserve, and choose.

NOW LET US Related – Organic Maps

dev-tools

Organic Maps

Organic Maps is a privacy-focused, 100% offline maps and navigation app that recently hit 6 million installs. Developed by the creators of Maps.Me, it offers a tracker-free, battery-efficient alternative to mainstream map services.

NOW LET US Related – Introduction to Compilers and Language Design

dev-tools

Introduction to Compilers and Language Design

A comprehensive, free online textbook by Prof. Douglas Thain that guides computer science students through the process of building a compiler from scratch.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.