cd /news/ai-tools/i-wrote-a-script-that-counts-the-wor… · home › topics › ai-tools › article
[ARTICLE · art-152321] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

I wrote a script that counts the work AI-written commits cost you afterwards. It says 13 hours on my own repo.

A developer built a read-only script that scans git history to quantify the review-and-retest debt left behind by model-written commits, checking whether each commit makes a promise (a test, issue, verification or follow-up) and whether the same file was touched again within 30 days. On the developer's own repository, all 9 commits were model-written, 8 carried no promise, and the tool tallied 13 hours of outstanding debt. The proposed fix attaches Owner, Promise and Verify-by fields to each change, running the check on the due date and logging red results to a plain-JSON ledger kept in the repo.

by read2 min views2 publishedOct 18, 2026

I build software — games, plugins, client work — and most of the code is written by a model and reviewed by me. Last night I wrote a read-only script that goes through git history and asks one question of every commit:

did anyone promise anything about this, and did anyone own it?

Concretely: does the message claim a test, an issue, a verification, a follow-up? And if the commit declares itself model-written, did the same file come back within 30 days?

On my own repository: 9 commits, all of them model-written, 8 of them with no promise attached at all, 13 hours of reading-and-retesting debt sitting there. I have an excuse of a kind — I wrote the tool last night — but the number is real and it is the kind of number I would not have believed from a landing page.

So the fix is deliberately small. A change carries three fields when it merges:

Owner: me
Promise: the invoice PDF renders with a VAT line on a real client address
Verify by: 2026-11-03

When the date arrives, it runs the check. Green closes it. Red puts the hours on a ledger you can look at — and, if it is a client's repo, an argument you can actually make.

It is one file, no account, and the ledger is plain JSON in your own repo. I'm not asking anyone to install anything. One thing instead: say you want it and I'll run the scan on a repo of yours, read-only, and send you the number. No install, nothing written to your repository, and if it says zero I'll say zero and you lose five minutes.

Whatever comes back, I'll post the aggregate — including the null results.

Source is on GitHub if you want to look at the logic before trusting the number.

── more in #ai-tools 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-wrote-a-script-tha…] indexed:0 read:2min 2026-10-18 · —