The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests About 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

AI coding assistants didn’t raise architectural defects but they did bloat code: in 151 open-source Java projects, adopters saw no change in total architectural smells while code size grew ~12.8%, causing a 6.7% drop in smell density driven by larger codebases rather than cleaner architecture.

Mining Architectural Quality Under Agentic AI Adoption: A Causal Study of Java Repositories
Oliver Aleksander Larsen, Mahyar T. Moghaddam · June 11, 2026
arxiv quasi_experimental medium evidence 7/10 relevance Full text usable extracted full text Source PDF
Adoption of agentic AI coding tools in a matched sample of open-source Java repositories did not increase total architectural smell counts but did increase lines of code, producing a decline in smell density that reflects a denominator (size) effect rather than improved architecture.

AI coding tools are now used by a majority of developers, and agentic use of these tools has popularized the practice colloquially called "vibe coding". Yet causal evidence on their effect on software architecture is scarce. Prior causal work has measured code-level outcomes (complexity, static analysis warnings); whether such degradation propagates to architecture-level outcomes remains unknown. We mine 151 open-source Java repositories, 74 with detectable agentic AI adoption (identified via configuration files and Co-Authored-By commit trailers) and 77 propensity-matched controls, across a 13-month per-repository window yielding 1,811 monthly Arcan snapshots. We estimate the causal effect of adoption on architectural smell density (ASD) with a staggered difference-in-differences design and the Borusyak imputation estimator, applying a causal design recently used for code-level metrics to the architecture level. Total smell counts are essentially unchanged (+1.1%, p = 0.82) while lines of code grow +12.8% (p = 0.003); the resulting 6.7% ASD decline (p = 0.004) is therefore a denominator effect rather than an architectural improvement. Per-type estimates and robustness checks (wild cluster bootstrap, Lee bounds, stale-observation sensitivity) corroborate the pattern; pre-trends are flat (Wald p = 0.90), consistent with parallel trends. Density-normalized outcomes can mislead when treatment affects system size: raw counts and explicit decomposition are required for causal mining studies of AI tool adoption. The complete replication package, including the curated 151-repository monthly panel, is publicly available.

Summary

Main Finding

Agentic AI adoption (detectable via project config files or Co-Authored-By commit trailers) is causally associated with a statistically significant 6.7% decline in architectural smell density (ASD) in open-source Java repositories. That decline is not driven by fewer architectural smells but by faster code growth: total smell counts are essentially unchanged (+1.1%, p = 0.82) while lines of code (KLOC) increase +12.8% (p = 0.003). In short, the ASD drop is a denominator (code-volume) effect rather than an architectural-quality improvement.

Key Points

  • Sample and scope: 151 Java repositories (74 treated, 77 matched controls), monthly panel over 13 months per repo → 1,811 Arcan snapshots used for analysis.
  • Treatment detection: agentic usage inferred from tool-specific configuration files and Co-Authored-By commit trailers (Cursor, Copilot, Claude Code, Aider, Codex). This detects agentic usage only (not inline autocomplete).
  • Causal design: staggered difference-in-differences with Borusyak imputation estimator (primary), supplemented by Sun & Abraham TWFE correction and event-study dynamics. Repository and time fixed effects; SEs clustered by repo.
  • Main estimates:
    • ASD: −6.7% (ˆβ = −0.070, p = 0.004).
    • Total smell counts: +1.1% (p = 0.82, not significant).
    • KLOC: +12.8% (p = 0.003).
    • Pre-trend falsification: Wald joint test not significant (p ≈ 0.90), consistent with parallel trends.
  • Per-smell results: hub-like dependency density falls (~−5.0%, significant after Holm correction); cyclic dependency shows a similar point estimate but significance weakens after multiple-test correction. God components and unstable dependencies show no density change; raw UD counts show a marginal suggestive increase (not robust after correction).
  • Robustness: wild cluster bootstrap, Lee bounds for attrition, stale-observation sensitivity, tool-stratified checks, Bacon decomposition and other sensitivity analyses reported. Attrition: some snapshots/repositories dropped due to Arcan failures (final panel 151 repos, 80.8% snapshot success).
  • Measurement caveat: density-normalized outcomes (smells/KLOC) can be misleading if treatment alters system size; explicit numerator/denominator decomposition is required.

Data & Methods

  • Data: public GitHub Java repositories meeting inclusion criteria (≥2,000 KB, ≥2 commits/month, ≥6 months pre and ≥3 months post adoption). Initial candidates filtered & propensity-matched; final analytical panel: 1,811 repo-month observations across 151 repos.
  • Architectural metrics: Arcan CLI for smell detection (four smell types: cyclic dependency, unstable dependency, hub-like dependency, god component). Primary outcome ASD = total smells / KLOC; other outcomes: per-type densities, total counts, KLOC, coupling/instability measures.
  • Identification strategy:
    • Staggered DiD to handle differing adoption months.
    • Primary estimator: Borusyak imputation (fits on untreated observations, imputes counterfactuals for treated post-periods).
    • Secondary estimator: Sun & Abraham interaction-weighted TWFE correction.
    • Event study used to inspect dynamics and pre-trends.
  • Treatment definition: earliest observable agentic marker (config file addition or Co-Authored-By commit trailer). Recognized limitation: agentic-only detection — undeclared autocomplete use in controls creates attenuation bias; authors estimate empirical contamination ~8.9% with a corrected effect magnitude that strengthens (−7.4%) rather than reversing conclusions.
  • Replication: full replication package (repo panel and code) is publicly available.

Implications for AI Economics

  • Measurement matters for productivity/quality economics: density-based quality metrics (e.g., defects per LOC, smells per KLOC) can be confounded if AI adoption changes output scale. Empirical studies of AI effects on developer productivity or code quality must decompose ratio outcomes into numerator and denominator to avoid misleading inferences.
  • Short-run output increases vs. structural risk: observable agentic AI use appears to increase code volume substantially in the short run without an immediate increase in architectural smell counts. From an economic standpoint, this resembles higher measured output per unit time (more LOC produced). But increased codebase size may have delayed maintenance costs and potential erosion effects not captured in the short window studied.
  • Quality-adjusted productivity ambiguous: simple measures that treat LOC as output can overstate welfare/productivity gains if additional LOC imposes future technical debt or increases maintenance effort even while per-LOC smell density falls. Cost–benefit analyses and ROI models for AI developer tools should include long-run maintenance risk and not rely solely on density reductions.
  • Heterogeneous effects and monitoring: architectural-level harms reported at code-level (e.g., higher static-analysis warnings) do not automatically translate to architecture-level deterioration in the studied horizon. Policymakers, firms, and tool vendors should deploy longer-term monitoring (architectural and code-level), instrument heterogeneity (tool types, agentic vs. autocomplete), and triangulate multiple metrics before drawing conclusions on systemic risk.
  • Policy and managerial guidance: given the denominator effect, managers should complement productivity metrics with absolute counts of defects/smells and with architectural audits—especially after AI-driven bursts of development—to detect latent erosion. Incentives tied solely to output volume risk obscuring quality erosion that manifests only later.
  • Research directions for AI economics: integrate these causal findings into models of developer labor productivity that allow for dynamic quality externalities (maintenance costs, defect arrival over time). Future work should evaluate longer horizons, other languages/ecosystems, private-codebases, and link architectural metrics to downstream economic outcomes (bug-fixing costs, time-to-change, developer churn).

Suggested next steps (brief): - Replicate with longer post-adoption windows to observe whether smell counts eventually rise with LOC. - Extend to other ecosystems and commercial repositories to assess external validity. - Combine architectural metrics with economic outcomes (maintenance cost, issue-fix time) to quantify welfare impacts.

If you want, I can produce a one-page slide-ready version of this summary or extract the key numeric tables/figures for a presentation.

Assessment

Paper Typequasi_experimental Evidence Strengthmedium — The paper uses a credible quasi-experimental design (propensity matching + staggered DiD with modern imputation estimator) and multiple robustness checks, with publicly shared data, lending plausibility to causal claims; however, treatment measurement (detecting adoption from repo artifacts) may misclassify use, outcome measurement (Arcan architectural smells) can be noisy or context-dependent, and results are limited to open-source Java projects over a relatively short window, reducing external validity. Methods Rigorhigh — Careful application of state-of-the-art causal methods (Borusyak imputation for staggered adoption), matching, tests for parallel trends, and multiple robustness/sensitivity analyses indicate strong methodological rigor and transparency (replication package provided). Sample151 open-source Java repositories (74 with detectable agentic AI adoption, 77 propensity-matched controls), each observed over a 13-month per-repository panel resulting in 1,811 monthly Arcan snapshots; adoption detected via repo configuration files and Co-Authored-By commit trailers; architectural smells measured by Arcan; outcomes include total smell counts, smell density (per LOC), and lines of code. Themeshuman_ai_collab productivity IdentificationStaggered difference-in-differences with propensity-matched controls and the Borusyak imputation estimator; treatment (agentic AI adoption) detected from configuration files and Co-Authored-By commit trailers; pre-trend tests, wild-cluster bootstrap, Lee bounds, and stale-observation sensitivity checks used to probe robustness. GeneralizabilityRestricted to open-source Java repositories — may not generalize to closed-source, enterprise, or non-Java codebases, Agentic AI adoption detection via repo artifacts may miss private or informal tool use and may misclassify treatment timing, Arcan smell metrics capture a subset of architectural quality and may not reflect maintainability or runtime reliability broadly, 13-month window may not capture long-run architectural effects or delayed maintenance costs, Small-to-moderate sample size (151 repos) limits inference for very large or very small projects and diverse team structures

Claims (10)

ClaimDirectionOutcomeConfidence & EvidenceDetails
AI coding tools are now used by a majority of developers, and agentic use of these tools has popularized the practice colloquially called "vibe coding". Adoption Rate positive adoption prevalence of AI coding tools / popularization of "vibe coding"
Reading fidelity high
Study strength low
not reported
0.24
Causal evidence on the effect of AI coding tool adoption on software architecture is scarce; prior causal work has focused on code-level outcomes (complexity, static analysis warnings) and whether such degradation propagates to architecture-level outcomes remains unknown. Other null_result state of the literature regarding causal evidence on architecture-level effects
Reading fidelity high
Study strength low
not reported
0.24
We mined 151 open-source Java repositories, 74 with detectable agentic AI adoption (identified via configuration files and Co-Authored-By commit trailers) and 77 propensity-matched controls, across a 13-month per-repository window yielding 1,811 monthly Arcan snapshots. Adoption Rate null_result dataset composition (number of repositories, treated vs control, snapshots)
Reading fidelity high
Study strength high
n=151
0.8
The causal effect of adoption on architectural smell density (ASD) was estimated using a staggered difference-in-differences design and the Borusyak imputation estimator. Error Rate null_result architectural smell density (ASD)
Reading fidelity high
Study strength medium
n=151
0.48
Total architectural smell counts are essentially unchanged after adoption (+1.1%, p = 0.82). Error Rate null_result total architectural smell counts
Reading fidelity high
Study strength medium
n=151
+1.1%, p = 0.82
0.48
Lines of code grow by +12.8% after adoption (p = 0.003). Developer Productivity positive lines of code (LOC)
Reading fidelity high
Study strength medium
n=151
+12.8% (p = 0.003)
0.48
Architectural smell density (ASD) declines by 6.7% (p = 0.004), but this decline is a denominator effect resulting from lines-of-code growth rather than an actual architectural improvement. Error Rate mixed architectural smell density (ASD)
Reading fidelity high
Study strength medium
n=151
6.7% ASD decline (p = 0.004)
0.48
Per-type estimates and robustness checks (wild cluster bootstrap, Lee bounds, stale-observation sensitivity) corroborate the main pattern; pre-trends are flat (Wald p = 0.90), consistent with the parallel trends assumption. Other null_result pre-treatment trends and robustness of estimated effects
Reading fidelity high
Study strength medium
n=151
Wald p = 0.90
0.48
Density-normalized outcomes (e.g., smells per LOC) can mislead when treatment affects system size; raw counts and explicit decomposition are required for causal mining studies of AI tool adoption. Other null_result validity of density-normalized metrics (e.g., smells/LOC) under treatment that changes system size
Reading fidelity high
Study strength medium
n=151
0.48
The complete replication package, including the curated 151-repository monthly panel, is publicly available. Adoption Rate positive availability of replication package and curated data
Reading fidelity high
Study strength high
n=151
0.8

Notes