On Thu, Sep 03, 2026 at 12:19:11PM +0200, Paolo Bonzini wrote:
> On 9/3/26 12:14, Daniel P. Berrangé wrote:
> > > +# Reject trailers that credit an AI agent.
> > > + if ($realfile =~ /^$/ &&
> > > + ($line =~ /🤖/ ||
> >
> > Oh wow, is that something people actually do :-)
>
> IIRC it's more in pull requests but it was fun to add.
>
> > > + $line =~ /^\s*(?:Assisted|Generated)-by:/i ||
> > > + ($line =~ /^\s*Co-authored-by:\s*(.*?)\s*$/i &&
> > > + $1 =~ /\bcopilot\b | \bchatgpt\b | \bcodex\b | \bcursor\b
> > > | \[bot\] |
> > > + \bllama\b |
> > > \bgemini\b.*(?:pro|flash|ultra|google\.com) |
> > > +
> > > \bclaude\b.*(?:opus|sonnet|fable|haiku|anthropic\.com)/xi))) {
> >
> > I presume the qualifiers after gemini/claude are a mitigation against
> > accidentally matching a real person's name ?
>
> For Claude yes, for Gemini I guess it's not really needed. BTW I have no
> idea which coding harnesses use Co-authored-by specifically so this is
> really just a guess.
I expect Co-authored-by is often added by the contributor themselves
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|