Determining adoption of AI through Git commits

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:

MonthTotalAI-assisted% AI
2025-09600%
2025-105236%
2025-117157%
2025-125835%
2026-015612%
2026-02802329%
2026-03632032%
2026-04994444%
2026-05652234%
2026-06371438%

Pretty cool, eh?

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#blogumentation #llm #ai.

πŸ€– Content in this blog post (prose or code snippets) includes code derived from the following LLMs:

  • claude:sonnet-4.6

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.