grokmap 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {grokmap-0.2.0 → grokmap-0.2.1}/PKG-INFO +12 -4
- {grokmap-0.2.0 → grokmap-0.2.1}/README.md +11 -3
- {grokmap-0.2.0 → grokmap-0.2.1}/pyproject.toml +1 -1
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/__init__.py +1 -1
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/detect.py +8 -1
- {grokmap-0.2.0 → grokmap-0.2.1}/tests/test_detect_config.py +11 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/.gitignore +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/LICENSE +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/action.yml +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/skills/grokmap/SKILL.md +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/__main__.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/badge.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/cli.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/config.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/gitutil.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/ledger.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/prdiff.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/quiz.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/report.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/report_template.html +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/scan.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/score.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/src/grokmap/trend.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/tests/conftest.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/tests/test_cli.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/tests/test_scan_score.py +0 -0
- {grokmap-0.2.0 → grokmap-0.2.1}/tests/test_trend_diff.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: grokmap
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Measure comprehension debt: the AI-written code in your repo that nobody understands.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Aadithya-kl/grokmap
|
|
6
6
|
Project-URL: Issues, https://github.com/Aadithya-kl/grokmap/issues
|
|
@@ -28,11 +28,12 @@ Description-Content-Type: text/markdown
|
|
|
28
28
|
**Find the AI-written code nobody on your team understands, and pay it down one short quiz at a time.**
|
|
29
29
|
|
|
30
30
|
[](https://github.com/Aadithya-kl/grokmap/actions/workflows/ci.yml)
|
|
31
|
+
[](https://pypi.org/project/grokmap/)
|
|
31
32
|

|
|
32
33
|

|
|
33
34
|

|
|
34
35
|
|
|
35
|
-
**[▶
|
|
36
|
+
**[▶ Live demo](https://aadithya-kl.github.io/grokmap/demo/)** · [Website](https://aadithya-kl.github.io/grokmap/) · [Study: how much of open source is AI-written?](https://aadithya-kl.github.io/grokmap/study/) · [Install](#install) · [Agent skill](#add-the-skill-to-your-coding-agent) · [CI and PR comments](#in-ci)
|
|
36
37
|
|
|
37
38
|
<picture>
|
|
38
39
|
<source media="(prefers-color-scheme: dark)" srcset="docs/report-dark.png">
|
|
@@ -71,6 +72,12 @@ src/shopcart/api/auth.py 23 23 0
|
|
|
71
72
|
Pay it down: ask your coding agent to run `grokmap quiz <file>` and quiz you.
|
|
72
73
|
```
|
|
73
74
|
|
|
75
|
+
## How much of your code is AI-written?
|
|
76
|
+
|
|
77
|
+
`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](https://github.com/modelcontextprotocol/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](https://aadithya-kl.github.io/grokmap/study/), including its limitations.
|
|
78
|
+
|
|
79
|
+
New to the idea? [What is comprehension debt, and how do you measure it?](https://aadithya-kl.github.io/grokmap/comprehension-debt/)
|
|
80
|
+
|
|
74
81
|
## How you pay it down: your agent quizzes you
|
|
75
82
|
|
|
76
83
|
grokmap 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:
|
|
@@ -96,10 +103,10 @@ Understanding is tracked **per line**. If the agent later rewrites a line you we
|
|
|
96
103
|
## Install
|
|
97
104
|
|
|
98
105
|
```bash
|
|
99
|
-
pipx install
|
|
106
|
+
pipx install grokmap # or: pip install grokmap
|
|
100
107
|
```
|
|
101
108
|
|
|
102
|
-
Or try it without installing: `uvx
|
|
109
|
+
Or try it without installing: `uvx grokmap status`
|
|
103
110
|
|
|
104
111
|
Python 3.11+ and git. No other dependencies, no network calls, nothing leaves your machine.
|
|
105
112
|
|
|
@@ -197,6 +204,7 @@ It also writes the repo summary to the job page, uploads the heatmap as an artif
|
|
|
197
204
|
| Cursor | `cursoragent@cursor.com` author or co-author |
|
|
198
205
|
| OpenAI Codex | `chatgpt-codex` / `codex[bot]`, Codex co-author |
|
|
199
206
|
| Aider | `aider:` message prefix, `(aider)` author suffix |
|
|
207
|
+
| Charm Crush | `crush@charm.land` co-author |
|
|
200
208
|
| Devin, Gemini / Jules, Amazon Q, Windsurf | their bot authors or co-author trailers |
|
|
201
209
|
| Your own | any regex in `[grokmap.ai_patterns]`, or specific commits in `[grokmap.ai_commits]` |
|
|
202
210
|
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
**Find the AI-written code nobody on your team understands, and pay it down one short quiz at a time.**
|
|
6
6
|
|
|
7
7
|
[](https://github.com/Aadithya-kl/grokmap/actions/workflows/ci.yml)
|
|
8
|
+
[](https://pypi.org/project/grokmap/)
|
|
8
9
|

|
|
9
10
|

|
|
10
11
|

|
|
11
12
|
|
|
12
|
-
**[▶
|
|
13
|
+
**[▶ Live demo](https://aadithya-kl.github.io/grokmap/demo/)** · [Website](https://aadithya-kl.github.io/grokmap/) · [Study: how much of open source is AI-written?](https://aadithya-kl.github.io/grokmap/study/) · [Install](#install) · [Agent skill](#add-the-skill-to-your-coding-agent) · [CI and PR comments](#in-ci)
|
|
13
14
|
|
|
14
15
|
<picture>
|
|
15
16
|
<source media="(prefers-color-scheme: dark)" srcset="docs/report-dark.png">
|
|
@@ -48,6 +49,12 @@ src/shopcart/api/auth.py 23 23 0
|
|
|
48
49
|
Pay it down: ask your coding agent to run `grokmap quiz <file>` and quiz you.
|
|
49
50
|
```
|
|
50
51
|
|
|
52
|
+
## How much of your code is AI-written?
|
|
53
|
+
|
|
54
|
+
`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](https://github.com/modelcontextprotocol/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](https://aadithya-kl.github.io/grokmap/study/), including its limitations.
|
|
55
|
+
|
|
56
|
+
New to the idea? [What is comprehension debt, and how do you measure it?](https://aadithya-kl.github.io/grokmap/comprehension-debt/)
|
|
57
|
+
|
|
51
58
|
## How you pay it down: your agent quizzes you
|
|
52
59
|
|
|
53
60
|
grokmap 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:
|
|
@@ -73,10 +80,10 @@ Understanding is tracked **per line**. If the agent later rewrites a line you we
|
|
|
73
80
|
## Install
|
|
74
81
|
|
|
75
82
|
```bash
|
|
76
|
-
pipx install
|
|
83
|
+
pipx install grokmap # or: pip install grokmap
|
|
77
84
|
```
|
|
78
85
|
|
|
79
|
-
Or try it without installing: `uvx
|
|
86
|
+
Or try it without installing: `uvx grokmap status`
|
|
80
87
|
|
|
81
88
|
Python 3.11+ and git. No other dependencies, no network calls, nothing leaves your machine.
|
|
82
89
|
|
|
@@ -174,6 +181,7 @@ It also writes the repo summary to the job page, uploads the heatmap as an artif
|
|
|
174
181
|
| Cursor | `cursoragent@cursor.com` author or co-author |
|
|
175
182
|
| OpenAI Codex | `chatgpt-codex` / `codex[bot]`, Codex co-author |
|
|
176
183
|
| Aider | `aider:` message prefix, `(aider)` author suffix |
|
|
184
|
+
| Charm Crush | `crush@charm.land` co-author |
|
|
177
185
|
| Devin, Gemini / Jules, Amazon Q, Windsurf | their bot authors or co-author trailers |
|
|
178
186
|
| Your own | any regex in `[grokmap.ai_patterns]`, or specific commits in `[grokmap.ai_commits]` |
|
|
179
187
|
|
|
@@ -18,16 +18,22 @@ BUILTIN_SIGNATURES: list[tuple[str, str, str]] = [
|
|
|
18
18
|
("claude", "message", r"^co-authored-by:.*\b(claude|anthropic)\b"),
|
|
19
19
|
("claude", "message", r"generated with \[?claude code"),
|
|
20
20
|
("claude", "message", r"^claude-session:"),
|
|
21
|
+
("claude", "message", r"^assisted-by:.*\bclaude\b"),
|
|
21
22
|
("claude", "author", r"\bclaude\[bot\]|noreply@anthropic\.com"),
|
|
22
23
|
# GitHub Copilot (agent mode, coding agent, co-author trailer)
|
|
23
24
|
("copilot", "message", r"^co-authored-by:.*\b(copilot|github copilot)\b"),
|
|
24
25
|
("copilot", "author", r"copilot-swe-agent|^copilot\b|copilot@github\.com|\bcopilot\[bot\]"),
|
|
26
|
+
("copilot", "message", r"^\(written by copilot\)|^assisted-by:.*\bcopilot\b"),
|
|
25
27
|
# Cursor
|
|
26
28
|
("cursor", "message", r"^co-authored-by:.*\bcursor(agent)?\b"),
|
|
27
29
|
("cursor", "author", r"cursoragent@cursor\.com|\bcursor agent\b"),
|
|
28
30
|
# OpenAI Codex / ChatGPT
|
|
29
31
|
("codex", "message", r"^co-authored-by:.*\b(codex|chatgpt|openai)\b"),
|
|
30
32
|
("codex", "author", r"\bchatgpt-codex|codex\[bot\]"),
|
|
33
|
+
("codex", "message", r"^assisted-by:.*\b(codex|gpt-\d)"),
|
|
34
|
+
# Charm Crush
|
|
35
|
+
("crush", "message", r"^co-authored-by:.*<crush@charm\.land>"),
|
|
36
|
+
("crush", "author", r"crush@charm\.land"),
|
|
31
37
|
# Aider
|
|
32
38
|
("aider", "message", r"^aider:"),
|
|
33
39
|
("aider", "message", r"^co-authored-by:.*\baider\b"),
|
|
@@ -43,7 +49,8 @@ BUILTIN_SIGNATURES: list[tuple[str, str, str]] = [
|
|
|
43
49
|
# Windsurf / Codeium
|
|
44
50
|
("windsurf", "message", r"^co-authored-by:.*\b(windsurf|codeium|cascade)\b"),
|
|
45
51
|
# Generic marker many teams adopt
|
|
46
|
-
("ai", "message", r"^(ai-assisted|ai-generated
|
|
52
|
+
("ai", "message", r"^(ai-assisted|ai-generated):"),
|
|
53
|
+
("ai", "message", r"^assisted-by:.*\b(ai|llm|gpt|gemini|agent|model)\b"),
|
|
47
54
|
]
|
|
48
55
|
|
|
49
56
|
|
|
@@ -25,6 +25,15 @@ def info(message="fix", name="Dev", email="dev@example.com", sha="a" * 40):
|
|
|
25
25
|
("fix\n\nCo-authored-by: Gemini <gemini@google.com>", "Dev", "d@x.io", "gemini"),
|
|
26
26
|
("fix\n\nCo-authored-by: Codex <codex@openai.com>", "Dev", "d@x.io", "codex"),
|
|
27
27
|
("fix\n\nAI-Assisted: yes", "Dev", "d@x.io", "ai"),
|
|
28
|
+
("fix\n\nAssisted-by: Claude Fable 5", "Dev", "d@x.io", "claude"),
|
|
29
|
+
("fix\n\nCo-Authored-By: Charm Crush <crush@charm.land>", "Dev", "d@x.io", "crush"),
|
|
30
|
+
("fix\n\n(Written by Copilot)", "Dev", "d@x.io", "copilot"),
|
|
31
|
+
(
|
|
32
|
+
"fix\n\nCo-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>",
|
|
33
|
+
"Dev",
|
|
34
|
+
"d@x.io",
|
|
35
|
+
"copilot",
|
|
36
|
+
),
|
|
28
37
|
],
|
|
29
38
|
)
|
|
30
39
|
def test_builtin_signatures(message, name, email, tool):
|
|
@@ -39,6 +48,8 @@ def test_builtin_signatures(message, name, email, tool):
|
|
|
39
48
|
("normal commit\n\nCo-authored-by: Jane Doe <jane@example.com>", "Dev", "d@x.io"),
|
|
40
49
|
("fix", "Sam", "sam@openai.com"), # people who work at AI labs are not bots
|
|
41
50
|
("fix", "Sam", "sam@anthropic.com"),
|
|
51
|
+
("I have a crush on this API", "Dev", "d@x.io"),
|
|
52
|
+
("normal\n\nAssisted-by: Jane Doe <jane@example.com>", "Dev", "d@x.io"),
|
|
42
53
|
],
|
|
43
54
|
)
|
|
44
55
|
def test_human_commits_stay_human(message, name, email):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|