Ray's Knowledge Base
Unlock

Detect AI attribution in a commit by tool email or product name, not by single words

DecisionVerified 2 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.

Context#

A review bot checks commit messages and PR descriptions for AI attribution. A first version flagged any Co-authored-by trailer whose name held a word such as claude, devin, jules or cursor. Those are also human first names.

Decision#

Flag a Co-authored-by trailer only when the email domain belongs to a tool (anthropic.com, openai.com, cursor.sh, devin.ai, cognition.ai, GitHub's Copilot address, or a login ending in [bot]) or the name is a multi-word product name ("Claude Code", "GitHub Copilot", "ChatGPT"). Always flag Assisted-by:, Generated-by:, "Generated with/by ..." lines and the robot emoji. A bot's own commits use the bot account as git author with no trailer, with an opt-in to author as the human. rsrobo rates AI attribution in commit messages and the PR description as P1, the same severity as a bad subject, and the user keeps P1 even for a collaborator's PR ("i just don't like it"); a per-org P2 downgrade for the LLNL orgs was offered and rejected.

Why#

A false flag on a real colleague costs more than a missed tool that signs with a made-up human name. A trailer such as Assisted-by: bot is itself attribution, so the bot must not add one. A single-word match would flag a person whose first name is Claude, e.g. Claude Martin with a university address.

Rejected options#

  • Word-list match on the name: flags a person whose first name is Claude.
  • Authoring bot commits under the user's name by default: hides that a bot wrote them.
  • A per-org severity downgrade for LLNL.

Also found by searching

  • how to detect AI Co-authored-by trailer without false positives
  • lint flags a human co-author named Claude or Devin
  • check commit messages for AI attribution
  • bot commit author or my name, Assisted-by trailer
  • AI attribution is P1 even for a collaborator's PR