When is Generated Code Difficult to Comprehend? Assessing AI Agent Python Code Proficiency in the Wild

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Temkulkiat, Nanthit, Ragkhitwetsagul, Chaiyong, Choetkiertikul, Morakot, Rojpaisarnkit, Ruksit, Kula, Raula Gaikovina
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915904314408960
author Temkulkiat, Nanthit
Ragkhitwetsagul, Chaiyong
Choetkiertikul, Morakot
Rojpaisarnkit, Ruksit
Kula, Raula Gaikovina
author_facet Temkulkiat, Nanthit
Ragkhitwetsagul, Chaiyong
Choetkiertikul, Morakot
Rojpaisarnkit, Ruksit
Kula, Raula Gaikovina
contents The rapid adoption of AI coding agents is fundamentally shifting software developers' roles from code authors to code reviewers. While developers spend a significant portion of their time reading and comprehending code, the linguistic proficiency and complexity of the Python code generated by these agents remain largely unexplored. This study investigates the code proficiency of AI agents to determine the skill level required for developers to maintain their code. Leveraging the AIDev dataset, we mined 591 pull requests containing 5,027 Python files generated by three distinct AI agents and employed pycefr, a static analysis tool that maps Python constructs to six proficiency levels, ranging from A1 (Basic) to C2 (Mastery), to analyze the code. Our results reveal that: AI agents predominantly generate Basic-level code, with over 90% of constructs falling into the A1 and A2 categories, and less than 1% classified as Mastery (C2); AI agents' and humans' pull requests share a broadly similar proficiency profile; High-proficiency code by AI agents are from feature addition and bug fixing tasks. These findings suggest that while AI-generated code is generally accessible to developers with basic Python skills, specific tasks may require advanced proficiency to review and maintain complex, agent-generated constructs.
format Preprint
id arxiv_https___arxiv_org_abs_2604_00299
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle When is Generated Code Difficult to Comprehend? Assessing AI Agent Python Code Proficiency in the Wild
Temkulkiat, Nanthit
Ragkhitwetsagul, Chaiyong
Choetkiertikul, Morakot
Rojpaisarnkit, Ruksit
Kula, Raula Gaikovina
Software Engineering
The rapid adoption of AI coding agents is fundamentally shifting software developers' roles from code authors to code reviewers. While developers spend a significant portion of their time reading and comprehending code, the linguistic proficiency and complexity of the Python code generated by these agents remain largely unexplored. This study investigates the code proficiency of AI agents to determine the skill level required for developers to maintain their code. Leveraging the AIDev dataset, we mined 591 pull requests containing 5,027 Python files generated by three distinct AI agents and employed pycefr, a static analysis tool that maps Python constructs to six proficiency levels, ranging from A1 (Basic) to C2 (Mastery), to analyze the code. Our results reveal that: AI agents predominantly generate Basic-level code, with over 90% of constructs falling into the A1 and A2 categories, and less than 1% classified as Mastery (C2); AI agents' and humans' pull requests share a broadly similar proficiency profile; High-proficiency code by AI agents are from feature addition and bug fixing tasks. These findings suggest that while AI-generated code is generally accessible to developers with basic Python skills, specific tasks may require advanced proficiency to review and maintain complex, agent-generated constructs.
title When is Generated Code Difficult to Comprehend? Assessing AI Agent Python Code Proficiency in the Wild
topic Software Engineering
url https://arxiv.org/abs/2604.00299