Hacker News new | ask | show | jobs
by est 45 days ago
I am using a different approach.

`user.email` is always my email.

`user.name` is either my account name, or model name like `gpt-5.5-high`.

I can easily filter & blame which line was written by me or some specific AI

2 comments

That doesn’t quite work for cases where you’re either the primary author of a commit (asking the model for some touch ups) or when you heavily edit model output. Easier to just say “this is who’s driving the AI” and keep it to your username.
> doesn’t quite work for cases

In that case, the "Co-authored-by: Copilot" method doesn't quite work either. You have to split the commit somehow.

> this is who’s driving the AI

As indicated by the consistent user.email value.

Hm, why? Just attribute it to yourself and be done with it. Is there a use case for classifying commits as AI assisted? Besides corporate bureaucracy.
Nice! I've been doing similar, but prefer using Co-authored-by, especially as it allows for cases where there may be multiple models in play