arXiv:2607.01810cs.SEcs.AI2026-07

研究发现AI编程工具不会挤走开源项目新人,反而让代码更复杂但参与度不变。

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

论文配图:Decoupling Code Complexity from Newcomer Participation: A Causal Study of AI Coding Agent Adoption in OSS
图 1 · 摘自论文原文
  • 通过对比采用AI工具的项目与未采用者,用因果分析检验新人参与变化
  • 代码复杂度上升约11%(认知指标),但新人流入、留存率均无显著下降
  • 适合关注AI对开源社区影响的研究者和项目管理者

开源项目依赖新人持续加入。一个日益担忧的问题是:AI编程代理(如Cursor、Claude Code等根据自然语言指令生成代码的工具)会挤出新人,因它们接管了新手常做的简单任务,并使代码更难阅读。本文对此进行因果分析。利用GitHub代码搜索,识别出1,888个首次提交配置文件以标志采用代理的项目,采用双重差分法与匹配的非采用项目对比,主分析限定于603个具备真实前期数据的项目。结果表明:无证据显示挤出效应——在不同估计模型下,新人流入在采纳后无显著下降(点估计值从小幅上升到最保守趋势设定下的轻微且不显著下降),入职与留存率保持不变;一种稀疏的相关性新手任务指标(良好首题标签)虽无法验证平行趋势,也未见下降。被担忧的机制虽存在,但已被解耦:采纳使每函数代码复杂度上升约11%(以Python认知指标衡量,为先前估计的四分之一),所有语言的圈复杂度上升3%至4%,但在复杂度上升的固定单元中(如Python的认知指标,以及所有语言的圈复杂度),新人参与并未减少。结果表明,在成熟的开源项目中,采用AI编程代理会使代码适度更复杂,但不会挤出项目赖以生存的人类新人——所担心的AI辅助与人类参与之间的权衡并未出现。

原文摘要 · Abstract (English)

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.

开源生态AI编程因果分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。