Skip to content
grokmap 0.7.2

grokmap 0.7.2

Pypi • November 29, 2026

Measure comprehension debt: the AI-written code in your repo that nobody understands.

pip install grokmap==0.7.2

Find the AI-written code nobody on your team understands, and pay it down one short quiz at a time.

▶ Live demo · Website · Study: how much of open source is AI-written? · Install · Agent skill · MCP server · VS Code · CI and PR

Coding agents now write a large of the code we ship. The tests pass, the diff looks clean, it gets merged. A month later something breaks at 2am, and nobody on the team can explain how that module works.

That gap has a name: comprehension debt , the difference between how much code is in your system and how much of it any person actually understands. It doesn't show up in linters, coverage or code review dashboards.

Grok-map measures it. It traces every line in your repo to the commit that wrote it, recognises commits made by AI agents (Claude Code, Copilot, Cursor, Codex, Aider, Devin, Gemini…), and checks them against a shared ledger of who has shown they understand that code. Then it draws you a map.

How much of your code is AI-written?

grokmap status answers that in seconds, and grokmap trend shows how it changed month by month. We ran it on 18 well-known open-source projects. In the MCP reference servers , 94% of commits from August to October 2026 were co-authored by Claude; in VS Code, 74% were co-authored by Copilot. Read the full study , including its limitations.

New to the idea? What is comprehension debt, and how do you measure it?

How you pay it down: your agent quizzes you

Grok-map ships an agent skill . After your coding agent writes something substantial, it offers a two-minute quiz on exactly the lines you haven't shown you understand, grades you honestly, and records the result:

Understanding is tracked per line . If the agent later rewrites a line you were quizzed on, that line counts as new, not-yet-understood code again. Understanding older than 180 days shows as fading .

Or try it without installing: uvx grokmap status

Python 3.11+ and git. No other dependencies, no network calls, nothing leaves your machine.

Add the skill to your coding agent

(or /plugin marketplace add Aadithya-kl/grokmap , then /plugin install grokmap@grokmap )

Any agent that reads SKILL.md files (Codex, Cursor, Gemini CLI, OpenCode…):

or copy skills/grokmap/ into your agent's skills folder.

Then just say "quiz me on the payments module" , or let the agent offer after it finishes a change.

MCP server: let your agent check before it edits

The skill teaches the agent to quiz you. The MCP server goes further: before the agent changes code, it can ask "does anyone on this team actually understand this?" and be more careful when the answer is no.

That block works in Claude Desktop, Cursor ( .cursor/mcp.json ), Windsurf and most other clients. Elsewhere:

Already installed Grok-map? pip install "grokmap[mcp]" and use grokmap mcp as the command instead.

Prefer Docker? docker build -t grokmap-mcp . in this repo, then use docker run -i --rm -v "$PWD:/repo" grokmap-mcp as the command.

Plus a quiz_me prompt. Every tool returns structured results with a published output schema, so agents read fields instead of parsing text. Everything runs locally on your git history: no network calls, no API keys. Find it in the official MCP Registry ( io.github.Aadithya-kl/grokmap ), on Glama , mcpservers.org and cursor.directory .

VS Code extension: a dashboard, quizzes and the gutter

The Grok-map extension adds a Grok-map panel to the sidebar, which can also open as an editor tab:

Repositories: pick any repository without opening it as a folder.

Dashboard: how much of the AI-written code anyone understands, and the files that need attention.

Quizzes: take one right there. Questions are written and graded by the AI model you already have in VS Code (such as Copilot), and the result goes straight into the ledger.

This branch: the AI-written lines your branch adds that you haven't checked, with Quiz me before I push .

Files or folders, code only: see which areas nobody understands, with tests, docs and data left out by default. Hover a row to quiz, mark as reviewed, or ignore it.

Progress and critical paths: what you and the team checked this week, the understood-% trend, and critical folders shown and quizzed first.

Hand-off: with no model, one click passes the quiz to Claude Code, Copilot Chat, Kilo Code, Cline, Roo Code or Cursor.

In the editor margin, every AI-written line is coloured: red where nobody has checked it, orange where it was only skimmed, yellow where understanding is fading, green where someone has shown they understand it. Hover a block to see which agent wrote it, in which commit, and who understands it. The status bar shows the file's debt. It follows your edits as you type, and works in VS Code, Cursor, Windsurf and VSCodium.

Grok-map in the Extensions panel and click Install , or run code --install-extension aadithya-kl.grokmap . It needs the CLI on your PATH ( pip install grokmap ), or set grokmap.command to uvx grokmap . Cursor, Windsurf and VSCodium: the extension is on its way to Open VSX; until then, install the .vsix from the latest release (Extensions → ⋯ → Install from VSIX).

Commit .grokmap/ledger.jsonl so your whole team shares one map. It's one JSON object per line with a merge=union git rule, so merges don't conflict.

On every pull request it posts one (and keeps it up to date) like this:

Grok-map: comprehension check This change adds 5 AI-written lines (claude 5) and 1 human-written line. 4 of the AI lines (80%) have been understood by someone on the team. File AI lines Understood Not checked src/shopcart/pricing.py 1 0 1 src/shopcart/loyalty.py 4 4 0 Before merging, the author can ask their coding agent to run grokmap quiz --diff origin/main for a 2-minute quiz on the unchecked lines.

Grok-map: comprehension check

This change adds 5 AI-written lines (claude 5) and 1 human-written line. 4 of the AI lines (80%) have been understood by someone on the team.

Before merging, the author can ask their coding agent to run grokmap quiz --diff origin/main for a 2-minute quiz on the unchecked lines.

It also writes the repo summary to the job page, uploads the heatmap as an artifact, and exposes debt and ai-lines as outputs. Everything is report-only unless you set a limit.

Attribution. For every tracked text file, git blame -w maps each line at HEAD to the commit that last changed it. Blank lines and lone brackets are ignored.

Attribution. For every tracked text file, git blame -w maps each line at HEAD to the commit that last changed it. Blank lines and lone brackets are ignored.

AI detection. A commit counts as AI-written only when it carries evidence the tools themselves leave behind: Agent Signals Claude / Claude Code Co-Authored-By: Claude , "Generated with Claude Code", Claude-Session: , claude[bot] GitHub Copilot Copilot coding agent as author, Co-authored-by: Copilot Cursor cursoragent@cursor.com author or co-author OpenAI Codex chatgpt-codex / codex[bot] , Codex co-author Aider aider: message prefix, (aider) author suffix Charm Crush [email protected] co-author Devin, Gemini / Jules, Amazon Q, Windsurf their bot authors or co-author trailers Your own any regex in [grokmap.ai_patterns] , or specific commits in [grokmap.ai_commits] Squash merges keep co-author trailers, so detection survives the usual GitHub workflow.

AI detection. A commit counts as AI-written only when it carries evidence the tools themselves leave behind:

Squash merges keep co-author trailers, so detection survives the usual GitHub workflow.

Understanding. Each ledger record stores short hashes of the lines a person was quizzed on. A line is understood when someone passed a quiz on its current content, skimmed for a low score or a review , fading when the pass is older than decay_days .

Understanding. Each ledger record stores short hashes of the lines a person was quizzed on. A line is understood when someone passed a quiz on its current content, skimmed for a low score or a review , fading when the pass is older than decay_days .

Debt = unread AI lines + ½ × (skimmed + fading) AI lines, divided by all meaningful lines.

Debt = unread AI lines + ½ × (skimmed + fading) AI lines, divided by all meaningful lines.

grokmap trend uses git log --numstat with the same detection, so you can see when AI started writing most of your code.

Results are cached per file blob in .grokmap/cache.json . A 318,000-line repo with 3,000 files takes 17 seconds the first time and a second after that.

.grokmap.toml (or [tool.grokmap] in pyproject.toml ):

Lock files, build output, vendored code, minified files, media and binaries are skipped by default.

Is this surveillance? No. Grok-map measures code , not people. Nobody is quizzed unless they ask, the ledger only holds what people chose to record, and the main number is the codebase. If your team would use it to rank people, don't adopt it.

What AI code pasted from a chat window? Grok-map can't see it, so it counts as human-written. Detection is deliberately conservative: it only flags commits with real evidence and never guesses from code style. Adding an AI-Assisted: trailer (or your own pattern) fixes this going forward.

Can I game it? You can mark code as understood without a quiz, the same way you can approve a PR without reading it. The point is an honest map for your own team, and the skill is written to never record a score the person didn't earn.

Does the quiz send my code anywhere? Grok-map itself makes no network calls. Your coding agent reads the brief like any other file it already works with.

To grok is to understand something so thoroughly it becomes part of you. This is a map of what your team groks.

Ideas the project wants help with are tracked as issues . The good first issues are small and well scoped. The biggest ones: an editor extension that colors understood and unread lines in the gutter, keeping understanding across file renames, and detection for more agents.

See CONTRIBUTING.md . The short version:

Most useful contributions: detection signatures for more agents (with a real example commit), and reports of false positives.

Release files for grokmap 0.7.2

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

Source distribution (sdist)

Built distribution (wheel)

Total release size: 146.8 kB

Release files / grokmap-0.7.2.tar.gz

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 Nov 29, 2026.

Release files / grokmap-0.7.2-py3-none-any.whl

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 Nov 29, 2026.

Security for grokmap 0.7.2

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.

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

Attestation for grokmap-0.7.2.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 Nov 29, 2026.

Attestation for grokmap-0.7.2-py3-none-any.whl

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 Nov 29, 2026.

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.

Release history Release notifications | RSS feed

Nov 29, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 26, 2026 2 release files Full provenance

Nov 26, 2026 2 release files Full provenance

Extracted Entities