mlsanityData to 7 Oct 2026

Code for Machines, Not Just Humans: Quantifying AI-Friendliness with Code Health Metrics

arXiv 2601.02200 ↗First posted 5 Jan 2026cs.SE cs.AIcited by 2

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

We are entering a hybrid era in which human developers and AI coding agents work in the same codebases. While industry practice has long optimized code for human comprehension, it is increasingly important to ensure that LLMs with different capabilities can edit code reliably. In this study, we investigate the concept of ``AI-friendly code'' via LLM-based refactoring on a dataset of 5,000 Python files from competitive programming. We find a meaningful association between CodeHealth, a quality metric calibrated for human comprehension, and semantic preservation after AI refactoring. Our findings confirm that human-friendly code is also more compatible with AI tooling. These results suggest that organizations can use CodeHealth to guide where AI interventions are lower risk and where additional human oversight is warranted. Investing in maintainability not only helps humans; it also prepares for large-scale AI adoption.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 19 of its 59 references that are in the map. First posted on arXiv 5 Jan 2026.

Builds on

19 of 59 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub18 Sep
  2. 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration18 Mar
  3. 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep
  4. 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead7 Apr

Other references · 15

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  3. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  4. 2015On the "Naturalness" of Buggy Codecited by 35
  5. 2024Test-Driven Development for Code Generationcited by 32
  6. 2020Code Smells and Refactoring: A Tertiary Systematic Review of Challenges and Observationscited by 18
  7. 2025Assessing Correctness in LLM-Based Code Generation via Uncertainty Estimationcited by 14
  8. 2022Code Red: The Business Impact of Code Quality -- A Quantitative Study of 39 Proprietary Production Codebasescited by 8
  9. 2020An Empirical Validation of Cognitive Complexity as a Measure of Source Code Understandabilitycited by 7
  10. 2023Lessons from Building StackSpot AI: A Contextualized AI Coding Assistantcited by 7
  11. 2025The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completioncited by 3
  12. 2025ACE: Automated Technical Debt Remediation with Validated Large Language Model Refactoringscited by 2
3 more
  1. 2024Increasing, not Diminishing: Investigating the Returns of Highly Maintainable Codecited by 1
  2. 2024Ghost Echoes Revealed: Benchmarking Maintainability Metrics and Machine Learning Predictions Against Human Assessmentscited by 1
  3. 2025How do Humans and LLMs Process Confusing Code?cited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026More Code, Less Reuse: Investigating Code Quality and Reviewer Sentiment towards AI-generated Pull Requests
  2. 2026Human-AI Synergy in Agentic Code Review
  3. 2026To What Extent Does Agent-generated Code Require Maintenance? An Empirical Study
  4. 2026Code Health in LLM-Based Test Generation: Effectiveness and Token Efficiency
  5. 2026Safer Builders, Risky Maintainers: A Comparative Study of Breaking Changes in Human vs Agentic PRs
  6. 2026Do AI Agents Really Improve Code Readability?
  7. 2026Quality and Security Signals in AI-Generated Python Refactoring Pull Requests
  8. 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?