How much of popular open-source code is AI-written?

A study of 18 well-known repositories · 2026-11-27 · measured with grokmap 0.2.0
Key findings

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.

0%25%50%75%100%modelcontextprotocol/serversmodelcontextprotocol/servers, 2025: 4.3%modelcontextprotocol/servers, Aug to Oct 2026: 94.2%94.2%microsoft/vscodemicrosoft/vscode, 2025: 4.9%microsoft/vscode, Aug to Oct 2026: 74.1%74.1%github/github-mcp-servergithub/github-mcp-server, 2025: 14.3%github/github-mcp-server, Aug to Oct 2026: 69.3%69.3%anthropics/claude-agent-sdk-pythonanthropics/claude-agent-sdk-python, 2025: 47.3%anthropics/claude-agent-sdk-python, Aug to Oct 2026: 21.6%21.6%huggingface/transformershuggingface/transformers, 2025: 0.2%huggingface/transformers, Aug to Oct 2026: 20.2%20.2%supabase/supabasesupabase/supabase, 2025: 0.6%supabase/supabase, Aug to Oct 2026: 16.8%16.8%excalidraw/excalidrawexcalidraw/excalidraw, 2025: 0%excalidraw/excalidraw, Aug to Oct 2026: 9.9%9.9%block/gooseblock/goose, 2025: 1.5%block/goose, Aug to Oct 2026: 7.3%7.3%charmbracelet/crushcharmbracelet/crush, 2025: 1.2%charmbracelet/crush, Aug to Oct 2026: 5.1%5.1%astral-sh/uvastral-sh/uv, 2025: 0.3%astral-sh/uv, Aug to Oct 2026: 4.2%4.2%zed-industries/zedzed-industries/zed, 2025: 0.2%zed-industries/zed, Aug to Oct 2026: 3.0%3%oven-sh/bunoven-sh/bun, 2025: 14.0%oven-sh/bun, Aug to Oct 2026: 2.8%2.8%vercel/aivercel/ai, 2025: 0.3%vercel/ai, Aug to Oct 2026: 2.7%2.7%astral-sh/ruffastral-sh/ruff, 2025: 0.1%astral-sh/ruff, Aug to Oct 2026: 0.9%0.9%langchain-ai/langchainlangchain-ai/langchain, 2025: 1.0%langchain-ai/langchain, Aug to Oct 2026: 0.8%0.8%sst/opencodesst/opencode, 2025: 0.2%sst/opencode, Aug to Oct 2026: 0.2%0.2%openai/codexopenai/codex, 2025: 6.2%openai/codex, Aug to Oct 2026: 0%0%denoland/denodenoland/deno, 2025: 0.5%denoland/deno, Aug to Oct 2026: 0%0%
2025Aug to Oct 2026 (label shows this value)

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.

0%25%50%75%100%modelcontextprotocol/serversmodelcontextprotocol/servers: claude, 78,604 of 84,981 lines92.5%github/github-mcp-servergithub/github-mcp-server: claude, 550 of 130,284 linesgithub/github-mcp-server: copilot, 90,535 of 130,284 lines70%anthropics/claude-agent-sdk-pythonanthropics/claude-agent-sdk-python: claude, 11,406 of 42,259 lines27%charmbracelet/crushcharmbracelet/crush: claude, 8,562 of 176,595 linescharmbracelet/crush: crush, 16,932 of 176,595 lines14.6%block/gooseblock/goose: claude, 41,275 of 464,004 linesblock/goose: copilot, 15,140 of 464,004 lines12.2%astral-sh/uvastral-sh/uv: claude, 8,028 of 461,430 linesastral-sh/uv: codex, 13,082 of 461,430 lines4.6%
claudecopilotcodexcursorcrushother

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).

RepositoryCommitsAI, 2025AI, Aug–Oct 26AI lines nowMain agents
modelcontextprotocol/servers2,4394.3%94.2%92.5%claude, copilot, cursor +1
microsoft/vscode38,4594.9%74.1%–copilot, claude, cursor +1
github/github-mcp-server1,22714.3%69.3%70%copilot, claude, codex +1
anthropics/claude-agent-sdk-python97547.3%21.6%27%claude
huggingface/transformers7,4110.2%20.2%–claude, cursor, codex +2
supabase/supabase10,2460.6%16.8%–claude, cursor, copilot +2
excalidraw/excalidraw5480.0%9.9%–claude, copilot, cursor
block/goose5,9611.5%7.3%12.2%claude, copilot, cursor
charmbracelet/crush4,3461.2%5.1%14.6%crush, claude, copilot +2
astral-sh/uv6,1820.3%4.2%4.6%claude, codex, copilot
zed-industries/zed16,9190.2%3.0%–claude, copilot, cursor +2
oven-sh/bun7,56714.0%2.8%–claude, cursor, ai +1
vercel/ai7,4560.3%2.7%–claude, cursor, copilot +1
astral-sh/ruff9,5590.1%0.9%–claude, codex
langchain-ai/langchain4,9581.0%0.8%–claude, copilot
sst/opencode23,3410.2%0.2%–claude, copilot, cursor +2
openai/codex14,3106.2%0.0%–codex, claude, copilot
denoland/deno4,4610.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

Limitations (please read before quoting)

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.