I audited 162 agent-written PRs – 27% were the AI fixing itself Commensa released an open-source tool, commensa-audit, that analyzes GitHub repositories to measure the percentage of engineering effort spent correcting AI-generated code. The company's own audit of 162 PRs found that 27% were the AI fixing itself, highlighting the need to distinguish progress from cleanup in agent-era development. What % of your AI engineering effort went to fixing your AI's own work? commensa-audit answers that from your git history. Point it at a GitHub repo; get a one-page report: Rework tax — share of PRs and changed lines that corrected earlier work, vs. net-new value Superseded work — PRs whose output was entirely replaced later shown separately — discarded ≠ correcting Abandoned attempts — PRs closed without merging: the waste merge-based metrics never see Churn clusters — chains of PRs rewriting each other "it took 10 PRs to get dark mode right" Line survival — how much merged code is still alive at the end of the window Hotspots — rework share by module, against the repo-wide rate Agent-marked share — "at least X% of PRs carry agent markers" Co-Authored-By trailers, body signatures — a stated lower bound, never an attribution claim We built it because we needed it: our own agent-built product shipped 162 PRs in 13 days, and the audit showed 27% of them were the AI correcting itself . pip install commensa-audit commensa-audit --repo owner/name --token $GH TOKEN Or straight from source: pip install git+https://github.com/commensa-ai/commensa-audit Output: report