on
CC-BY-NC-SA-4.0 Apache-2.0
2 mins
π€ This post includes some LLM-derived content π€
Determining adoption of AI through Git commits
This post's featured URL for sharing metadata is https://www.jvt.me/img/profile.jpg.
Let's say that you're trying to determine what percentage of your work is using AI - for instance as part of a performance review - how would you go about doing that?
I've written before about how I personally attribute code and content from a Large Language Model. I still very much appreciate myself following the practice, and find it useful - even if others don't want to follow a similar process - as it helps "keep myself honest" with noting where these tools have been in use, and reflecting on where I'm using input from external tools.
Fortunately, because I follow this process, I'm able to answer this question in a fairly straightforward manner.
As a good adopter, I decided that the best way to ask how to do this would be to get Claude Code to determine this for me!
With the help of Claude Sonnet 4.6, the following script was the result:
% git log --since="2025-09-01" --author="Jamie Tanna" --format="%H %cd" --date=format:"%Y-%m" | while read hash month; do
body=$(git show -s --format="%B" "$hash")
if echo "$body" | grep -qi "co-authored-by.*\(claude\|gpt\|copilot\)"; then
echo "$month AI"
else
echo "$month human"
fi
done | sort | uniq -c | awk '{print $2, $3, $1}' | sort
This then ends up (after some ingestion from Claude) with the following table:
| Month | Total | AI-assisted | % AI |
|---|---|---|---|
| 2025-09 | 6 | 0 | 0% |
| 2025-10 | 52 | 3 | 6% |
| 2025-11 | 71 | 5 | 7% |
| 2025-12 | 58 | 3 | 5% |
| 2026-01 | 56 | 1 | 2% |
| 2026-02 | 80 | 23 | 29% |
| 2026-03 | 63 | 20 | 32% |
| 2026-04 | 99 | 44 | 44% |
| 2026-05 | 65 | 22 | 34% |
| 2026-06 | 37 | 14 | 38% |
Pretty cool, eh?