aiblame
aiblame is a command-line tool for measuring what percentage of a code repository's current code was written by AI coding agents. It uses git blame to analyze the lines in each file that survive at HEAD, and identifies agents such as Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Aider, Devin, Google Jules, and Gemini based on self-declared signals in commits (such as Co-Authored-By trailers, bot accounts, and tool footers). The tool requires Node 20+ and git, with no installation, API key, or network calls needed (remote repositories only require git clone). Output includes the overall AI percentage, a breakdown by agent, a trend over the last 12 months, the files most written by AI, and the top human operators, and it supports generating badges, share cards, JSON/Markdown output, and CI threshold gates.