How much of popular open-source code is AI-written?
- In 3 of 18 projects, most commits from August to October 2026 were co-authored by an AI coding agent: modelcontextprotocol/servers (94.2%), microsoft/vscode (74.1%), github/github-mcp-server (69.3%).
- 12 of 18 projects mark a larger share of their commits as AI co-authored now than in 2025.
- Across GitHub, more than 12.4 million public commits carry a
Co-Authored-By: Claudetrailer alone. - The visible numbers depend heavily on each project's commit conventions. Several projects that certainly use AI tools show near zero, because their commits don't carry agent markers. Read these as a lower bound.
AI co-authored commits: 2025 vs. late 2026
Share of non-merge commits whose metadata marks an AI coding agent as author or co-author. Grey: all of 2025. Blue: August to October 2026.
How much of the current code came from AI co-authored commits
For seven projects we cloned full history and ran grokmap status, which uses git blame to attribute every meaningful line at HEAD to the commit that last changed it. Bars show the share of current lines whose last change came from an AI co-authored commit, split by agent.
All repositories
Commits: non-merge commits since January 2025. AI columns: share of commits co-authored by an AI agent. AI lines now: share of current lines last changed by such a commit (only measured for seven repositories).
| Repository | Commits | AI, 2025 | AI, Aug–Oct 26 | AI lines now | Main agents |
|---|---|---|---|---|---|
| modelcontextprotocol/servers | 2,439 | 4.3% | 94.2% | 92.5% | claude, copilot, cursor +1 |
| microsoft/vscode | 38,459 | 4.9% | 74.1% | – | copilot, claude, cursor +1 |
| github/github-mcp-server | 1,227 | 14.3% | 69.3% | 70% | copilot, claude, codex +1 |
| anthropics/claude-agent-sdk-python | 975 | 47.3% | 21.6% | 27% | claude |
| huggingface/transformers | 7,411 | 0.2% | 20.2% | – | claude, cursor, codex +2 |
| supabase/supabase | 10,246 | 0.6% | 16.8% | – | claude, cursor, copilot +2 |
| excalidraw/excalidraw | 548 | 0.0% | 9.9% | – | claude, copilot, cursor |
| block/goose | 5,961 | 1.5% | 7.3% | 12.2% | claude, copilot, cursor |
| charmbracelet/crush | 4,346 | 1.2% | 5.1% | 14.6% | crush, claude, copilot +2 |
| astral-sh/uv | 6,182 | 0.3% | 4.2% | 4.6% | claude, codex, copilot |
| zed-industries/zed | 16,919 | 0.2% | 3.0% | – | claude, copilot, cursor +2 |
| oven-sh/bun | 7,567 | 14.0% | 2.8% | – | claude, cursor, ai +1 |
| vercel/ai | 7,456 | 0.3% | 2.7% | – | claude, cursor, copilot +1 |
| astral-sh/ruff | 9,559 | 0.1% | 0.9% | – | claude, codex |
| langchain-ai/langchain | 4,958 | 1.0% | 0.8% | – | claude, copilot |
| sst/opencode | 23,341 | 0.2% | 0.2% | – | claude, copilot, cursor +2 |
| openai/codex | 14,310 | 6.2% | 0.0% | – | codex, claude, copilot |
| denoland/deno | 4,461 | 0.5% | 0.0% | – | claude, copilot, cursor +1 |
Why this matters
Writing code is no longer the bottleneck; understanding it is. When most new commits in a project are co-authored by an agent, the question that matters for maintainers is not "who typed this?" but "does anyone here understand it well enough to debug it?". That gap is comprehension debt, and it is invisible in the usual metrics. This study only measures the first half, AI involvement. The second half, understanding, can't be seen from outside a team, which is why grokmap pairs these numbers with an opt-in ledger of quiz results.
Method
- Repositories: 18 widely used open-source projects across editors, developer tools, AI frameworks and agent tooling, chosen for popularity and active development, not for known AI use. Default branch, non-merge commits, 166,365 commits since January 2025.
- Detection: grokmap's built-in signatures: co-author trailers (
Co-Authored-By: Claude,Co-authored-by: Copilot, Codex, Cursor, Charm Crush and others), agent bot authors (Copilot coding agent, Devin, Jules…), and footers such as "Generated with Claude Code". The full list is in detect.py. - Line attribution:
git blame -wat HEAD, ignoring blank lines and lone punctuation, with grokmap's default exclusions (lock files, build output, vendored code, media).
Limitations (please read before quoting)
- Co-authored is not the same as written. A trailer says an agent took part in a commit, not how many of its lines the agent produced. In squash-merged pull requests, a single accepted Copilot review suggestion can add a
Co-authored-by: Copilotline to a commit that is otherwise human work, and blame then attributes the whole commit to the agent. One example: a large "v1.0" squash merge in goose credits a dozen people plus Copilot. - Absence of markers is not absence of AI. Projects that squash commits with edited messages, or whose agents don't add trailers, show low numbers regardless of actual use. Drops (for example openai/codex and oven-sh/bun) most likely reflect changed commit conventions, not less AI use.
- Conventions vary by tool. Copilot-heavy projects like VS Code add a co-author line whenever agent edits are included in a commit, which is more systematic than most other workflows. Comparisons across projects say as much about conventions as about AI use.
- Snapshot. Data collected on 2026-11-27. Numbers will change; the method is reproducible below.
Reproduce it
pipx install grokmap
git clone https://github.com/modelcontextprotocol/servers && cd servers
grokmap status # share of current lines from AI co-authored commits
grokmap trend --by month # AI vs human lines added per month, by agent
The raw numbers behind this page are in data.json. If you maintain one of these projects and think a number is misleading, please open an issue and it will be corrected.