check-my-ai-usage
v0.1.0
Published
Shows how much of your recent commits were written by a person versus AI, using git-ai attribution data.
Maintainers
Readme
check-my-ai-usage
Shows how much of your recent commits were written by you versus AI.
This is a thin CLI on top of git-ai, which does the actual attribution tracking (line-level, stored in git notes, survives rebase and squash). check-my-ai-usage just reads that data and turns it into something readable: a commit log with a human/AI split per commit, and a weekly summary you can screenshot.
Setup
- Install git-ai (this repo does not do this for you):
- Mac/Linux/WSL:
curl -sSL https://usegitai.com/install.sh | bash - Windows:
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://usegitai.com/install.ps1 | iex"
- Mac/Linux/WSL:
- From inside the git repo you want to track, run
git ai install-hooks. - Link this CLI so
check-my-ai-usageis on your PATH:
(or run it directly withnpm linknode /path/to/check-my-ai-usage/bin/cli.js)
Usage
check-my-ai-usage log [n] Show the last n commits with their human/AI split (default 10)
check-my-ai-usage summary Show this week's AI usage versus last week
check-my-ai-usage report [n] [outfile] Write a shareable HTML report (default 10 commits, ./check-my-ai-usage-report.html)summary prints a plain box like:
+----------------------------+
| 18% AI this week |
| down from 51% last week |
+----------------------------+report writes a plain, self-contained HTML page with the same headline stat plus a
commit table, built from real git-ai data. Open the file it writes in a browser.
How it works
Every command shells out to git ai stats <range> --json and reads
human_additions / ai_additions from the result. No attribution logic lives
here; git-ai owns that. log scores each commit individually, summary
aggregates over the last 7 and previous 7 days.
Status
Local-only. Nothing here talks to GitHub yet.
