Find the AI-written code nobody on your team understands.

grokmap maps comprehension debt in your git repo: code written by Claude Code, Copilot, Cursor or Codex that no person has shown they understand. Then your coding agent pays it down with two-minute quizzes.

pipx install grokmap        # or: uvx grokmap status
grokmap status
grokmap report showing 35% comprehension debt, who understands each line, a weekly chart of AI-written code by agent, and a treemap of files colored by debt

Your tests pass. Could anyone debug it at 2am?

Coding agents now write a large share of the code teams ship. It gets reviewed quickly, merged, and forgotten. When it breaks, nobody has a mental model of how it works. That gap doesn't show up in linters, coverage or review dashboards. grokmap makes it visible.

1 · ATTRIBUTE

Every line, traced to its author

git blame maps each line to the commit that wrote it. Commits carrying an agent's marker, such as a Co-Authored-By: Claude trailer, count as AI-written.

2 · QUIZ

Your agent checks you understand it

The grokmap skill gives you a short quiz on exactly the lines you haven't seen, grades you honestly, and records the result. Edited lines need understanding again.

3 · MAP

See where the risk is

A zoomable heatmap, a README badge, a weekly trend by agent, and a pull request comment that says how much of the change anyone understands.

How much of open source is AI-written now?

We ran grokmap on well-known repositories. In some, coding agents already write most new code. Read the study →

92%
of the lines in the MCP reference servers come from Claude-co-authored commits
70%
of GitHub's own MCP server comes from Copilot-co-authored commits
12M+
public commits on GitHub carry a Co-Authored-By: Claude trailer

Works where you already work

In your coding agent

Claude Code: /plugin install grokmap --marketplace Aadithya-kl/grokmap. Codex, Cursor, Gemini CLI and others: npx skills add Aadithya-kl/grokmap. Then say "quiz me on the payments module".

On every pull request

The GitHub Action posts one comment per PR: how many AI-written lines it adds and how many someone understands. Optional limits can block merges.

In your terminal

status, report, diff, trend, quiz, mark, check, badge. Python 3.11+ and git, nothing else. Nothing leaves your machine.

Questions

What is comprehension debt?

The gap between how much code exists in a system and how much of it any person actually understands. A longer explanation, with how to measure it.

How do I find out how much of my code was written by AI?

Run grokmap status. It counts lines from commits that carry an AI agent's marker. grokmap trend shows how that changed month by month.

Is this surveillance?

No. It measures code, not people. Nobody is quizzed unless they ask, and the ledger only holds what people choose to record.

What if AI code was pasted from a chat window?

grokmap can't see it and counts it as human-written. Detection is deliberately conservative: it only uses evidence in commit metadata.

Does it cost anything?

No. grokmap is MIT-licensed open source.