Decoupling Code Complexity from Newcomer Participation: A Causal Study of AI Coding Agent Adoption in OSS

📅 2026-07-02
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study investigates whether the adoption of AI-powered coding agents impedes newcomer participation in open-source projects by increasing code complexity or displacing entry-level tasks. Leveraging panel data from 1,888 GitHub repositories and employing propensity score matching combined with a difference-in-differences design, the paper provides the first causal evidence that, despite an average 11% increase in cognitive complexity of Python functions following AI agent adoption, there is no significant decline in newcomer influx, onboarding, or retention across 603 projects with valid pre-adoption periods. These findings disentangle the presumed tension between AI tool integration and community sustainability, demonstrating that the incorporation of AI assistants does not necessarily undermine the inclusivity of open-source ecosystems.
📝 Abstract
Open-source projects depend on a steady inflow of newcomers. A growing concern is that AI coding agents (tools such as Cursor and Claude Code that write code from natural-language instructions) will crowd them out, by absorbing the simple tasks that beginners start with and by making code harder to read. We give this concern a causal answer. Using GitHub code search we identify 1,888 projects that adopted an agent, signaled by their first commit of a configuration file. We apply difference-in-differences against matched non-adopting controls, restricting the main analysis to the 603 adopters with a genuine pre-adoption period. We find no evidence of crowding-out: across estimators newcomer inflow shows no significant decline after adoption (point estimates run from a small increase to, under the most conservative trend specification, a slight and insignificant dip), onboarding and retention are unchanged, and a sparse, correlational beginner-task measure (good-first-issue labels, which we cannot test for parallel trends) shows no decline. The feared mechanism is real but decoupled: adoption raises per-function code complexity (about +11% on a cognitive metric for Python, a quarter of the prior estimate, and +3 to 4% in cyclomatic terms across all languages), yet in fixed-unit subsets where complexity rose (Python on the cognitive metric, and all languages on the cyclomatic metric), newcomer participation does not decline. These results suggest that, in established open-source projects, adopting an AI coding agent makes code modestly more complex but does not crowd out the human newcomers that a project depends on: the feared trade-off between AI assistance and human participation does not materialize.
Problem

Research questions and friction points this paper is trying to address.

AI coding agents
newcomer participation
code complexity
open-source software
crowding-out effect
Innovation

Methods, ideas, or system contributions that make the work stand out.

AI coding agents
causal inference
open-source software
code complexity
newcomer participation
🔎 Similar Papers
Weiwei Xu
Weiwei Xu
Peking University
Software EngineeringMining Software RepositoriesOpen Source EcosystemSE4AI
X
Xuanning Cui
School of Computer Science, Peking University, Beijing, China; Key Laboratory of High Confidence Software Technologies, Ministry of Education, China
H
Hengzhi Ye
School of Computer Science, Peking University, Beijing, China; Key Laboratory of High Confidence Software Technologies, Ministry of Education, China
M
Minghui Zhou
School of Computer Science, Peking University, Beijing, China; Key Laboratory of High Confidence Software Technologies, Ministry of Education, China