Dev builds grokmap MCP server that flags AI-written code nobody understands
Ash-grey_21 · reddit · 2026-11-28
A Reddit user open-sourced grokmap, a tool tackling AI-generated code that gets merged fast but understood by no one. Their study of the MCP reference servers repo found 94% of Aug–Oct commits were co-authored by Claude.
How it works
- Traces every line to the commit that wrote it, spotting AI-agent commits (Co-Authored-By trailers, bot authors)
- Keeps a git ledger of who has actually demonstrated understanding of which lines
- In a sample repo, 86% of code was AI-written and 35% counts as "comprehension debt" — AI code nobody has shown they understand
MCP integration
Claude Code, Cursor, or Codex can call comprehensionrisk before editing: when nobody understands the code, the agent keeps the diff small, explains the change, and offers a 2-minute quiz; passing records understanding, and later changes reset it to unread.
Runs locally on git history, no API keys: uvx grokmap-mcp.
More from coding & agent
- Reading an agent's reasoning traces reveals surprising self-correction in robot navigation — tom_doerr · 2026-11-28
- Claude Code writes worse GPU kernels, 42% slower, when told no one will review the code — bremen79 · 2026-11-28
- Git SHA injection broke Docker caching: fixing 28-minute CI rebuilds with bundle hashing — DanielLockyer · 2026-11-28
- Gemini Neon botches a user's year-end recap and apologizes, as Antigravity's permission policy draws flak — teortaxesTex · 2026-11-28
- Claude Sonnet 6 Leak: Early Tests Beat Opus 5.5 With Less Reasoning, Plus Grok 4.8 and Gemini Updates — WorldofAI · 2026-11-28
- Agent memory poisoning: one hallucinated summary can permanently corrupt a persistent-memory agent — Mammoth-Anywhere7285 · 2026-11-28