Skip to main content

coauthored logo

coauthored

CI License Data Status Pre-registered

⬇️ Download the PDF · 🤗 Dataset · 📊 Figures · 🧾 Pre-registration · 🔀 Deviations · 🔁 Reproduce · ⚖️ Responsible use

How Much of the Code That Trains the Models Declares AI Help? AI Co-Authorship Trailers in AI Infrastructure Repositories, 2023–2026. coauthored counts the commits in a git history that carry an explicit AI attribution: a Co-authored-by: trailer naming an AI tool, a commit by an AI-agent account, or a tool's generated-with marker. The pre-registered study in this repository measures that share month by month in 42 open-source repositories that train, fine-tune, evaluate and serve AI models (S1), 12 open-source coding-agent harnesses (S2), and 42 popular non-AI repositories matched on stars, language and activity (S3), from the full history of all 96 read on one day.

Independent personal research. Public data only. Does not represent the views of any employer or institution.

Result

Monthly AI-attributed share of commits by stratum, 2023 to September 2026

In July–September 2026, 8.7% of commits to AI-infrastructure repositories were AI-attributed (95% CI 4.0–14.5%), about one in 11, up from 0.5% over 2025 and almost none in 2024. Matched non-AI repositories were at a similar level, 7.1% (2.3–12.6%), and the coding-agent harnesses, which started earlier, were not clearly ahead (10.3%, 1.6–23.7%). The intervals are too wide to tell the groups apart: there is no evidence that "AI building AI" runs ahead of popular open source, and no proof that it does not.

pre-registered hypothesis result
H1 S1 share in 2026-Q3 ≥ 5% supported on the point estimate (8.7%); the CI reaches 4.0%
H2 S1 above S3 every month, odds ratio ≥ 2 not supported (OR 1.24, CI 0.45–4.75)
H3 S1 steeper than S3 not supported (slope difference 0.025 logit/month, CI −0.080 to 0.077)
H4 harnesses above S1 not supported (+1.6 points, CI −9.0 to 15.8)
H5 Claude Code the top tool every quarter from 2025-Q2 not supported (it leads only from 2026-Q1)
H6 ≥ 80% of attributed pull requests keep attribution after merge supported (184 of 200, 92%)
H7 disclosure policies, higher share (exploratory) positive (+2.9 points), confounded

Every share is a lower bound on AI involvement, and an attributed commit is not a commit "written by AI": the trailer says a tool took part, not how much of the change it produced. Attribution is not adoption either: it can be switched off, lost at merge (rarely, in this sample), dropped when code is exported from an internal monorepo, or never added. The review of the draft and how each point was handled are in docs/review.md.

Run it on your own organisation

uv tool install git+https://github.com/thanatchon36/coauthored   # or: pip install git+https://github.com/thanatchon36/coauthored
coauthored report --org <your-org>        # monthly AI-attributed share of every public repository since 2024-01

It lists the organisation's repositories with the GitHub CLI (gh, logged in), clones them with commit objects only, needs no paid service or API key, and prints repository-level aggregates. Read RESPONSIBLE_USE.md before you publish anything: this measures projects, not people.

Reproduce the paper

uv sync --all-extras
uv run coauthored analyze --draws 2000   # every table, figure and number, from committed aggregates, no network
uv run coauthored paper                  # PDF and web page (needs pandoc and typst)

analyze is byte-reproducible. The paper build fills every number from results/numbers.json and refuses numbers typed by hand. REPRODUCE.md covers re-scanning the repositories and redrawing the survival sample.

What is here

path content
src/coauthored/ scanner, signature matcher, aggregation, analysis, paper and dashboard builders
configs/ frozen signature catalogue (52 entries, 28 tools, three public evidence commits each), bot list, repository lists
data/ snapshot manifest (head SHAs), repository-month aggregates, survival, size and policy samples
results/ numbers.json, tables, figures
paper/ paper source, PDF, template
docs/ phase reports, policy review, label sample, web paper and dashboard

As pre-registered, only aggregates are released: no per-commit records, and the survival and size samples carry no PR numbers or commit SHAs. The Hugging Face dataset (aggregates only) is built by scripts/build_hf_dataset.py.

Citation

See CITATION.cff.

License

Code: Apache-2.0. Data: CC BY 4.0.

Metadata

Release files for coauthored 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coauthored 0.1.0
File Size Uploaded Provenance Actions
coauthored-0.1.0.tar.gz 73.9 kB With provenance Details for coauthored-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coauthored 0.1.0
File Interpreter ABI Platform Actions
coauthored-0.1.0-py3-none-any.whl Python 3 none any Details for coauthored-0.1.0-py3-none-any.whl

Total release size: 143.0 kB

Release files / coauthored-0.1.0.tar.gz

Download URL coauthored-0.1.0.tar.gz
Size 73.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6922b76f0c5a6c24ec6789b5cdde5e6aca4e8d5e380adda5b93a30435fd1bca0
BLAKE2b-256 checksum
How to use checksums
c38dc993087e5fc2c3036a952198c6e7682eb542cfa821f61bf2461e12862afe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / coauthored-0.1.0-py3-none-any.whl

Download URL coauthored-0.1.0-py3-none-any.whl
Size 69.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcdc331562c7c123f894cb9ac0a7d215f77b93f1952797485ed3332a3cc3ba06
BLAKE2b-256 checksum
How to use checksums
8bccc83bdaf3bb05c1bb87d0332811e1f266e0e9cd447e903943264ca6a56bee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for coauthored 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for coauthored-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page