---
name: tracking-ai-assisted-commits-across-repositories
description: "Scans repository commit histories for signatures and metadata indicating automated code generation, collects commit hashes, author trailers, and diff statistics, and stages structured records for database storage. Use when evaluating machine-authored code volume and trends."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Database."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/tracking-ai-assisted-commits-across-repositories/"
  kind: workflow
  hermes:
    tags: ["git", "metrics", "analytics", "github"]
    category: coding
---
# Tracking AI-assisted commits across repositories

Scan commit metadata, log tool signatures, and compile metrics on generated code

## When to use

Scan public or internal repositories for commit signatures and metadata indicating automated generation. The bot collects commit hashes, author trailers, and code diff statistics, then stores structured records in a database to help teams evaluate machine-authored code volume and trends over time.

## Inputs

- `repositories`: Public or internal repositories whose commit histories should be scanned for automated-generation signatures.

## Steps

1. On a schedule: Run daily commit search (Daily scheduled commit search across selected repositories). Schedule: `0 0 * * *`
2. Enrich metadata and diffs
3. Store records in database

## Instructions

Query repository commit histories using developer APIs or git logs to locate signatures and trailers matching automated code generation tools. Extract relevant commit metadata, repository details, and diff line counts. Format the structured data and stage it for database insertion. Request confirmation before applying batch database updates or dispatching summary reports.

## Approvals

- Applying batch database updates requires human confirmation.
- Dispatching summary reports requires human confirmation.

## Output

Structured commit records with hashes, author trailers, and diff statistics staged for database insertion. (format: json)

## Source

Summarized in our own words from [Show HN: Claude's Code – tracking the 19M+ commits generated by Claude on GitHub](https://news.ycombinator.com/item?id=47501348) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/tracking-ai-assisted-commits-across-repositories/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
