[FEATURE] Use `Assisted-by` git commit trailer instead of `Co-authored-by`
Status Open
Maintainer reply None cached
Activity 6 comments · opened Mar 19, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Hi,
I've seen people contributing to my projects using Claude Code and these git commits include the Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> trailer. (example).
Proposed Solution
I think it'd be more appropriate to use Assisted-by trailer as it's recommended by several big projects:
Alternative Solutions
I know this could be configured, I'm asking for changing the default so it doesn't need to be configured.
Priority
Medium - Would be very helpful
Feature Category
API and model interactions
Use Case Example
- Someone is creating commits using Claude Code
- They include correct
Assisted-bygit trailer instead ofCo-Authored-By.
Additional Context
More context and in depth discussion of this is at https://fabiorehm.com/blog/2026/03/02/our-coding-agent-commits-deserve-better-than-co-authored-by/
6 Comments
A git
commit-msghook can automatically convert the trailer:Or use a Claude Code
PostToolUsehook to amend after commit:Or prevent the trailer entirely and add your preferred one via CLAUDE.md:
Yes, I understand that this can be worked around with a couple of hacks. The issue is about changing the default so I wouldn't have to modify all projects and ask all my contributors to do the same.
I already have such a suggestion in
CONTRIBUTING.mdwhich I hope is read by Claude (nothing againstCLAUDE.mdbut this is additional litter in repos).Thanks for your practical suggestions and have a nice day! 👋
The
Assisted-byproposal is a reasonable compromise for users who want attribution, but the core issue remains: any trailer must be opt-in, not opt-out.Co-Authored-Byspecifically implies shared authorship and shows up in GitHub's contributor graphs.Assisted-byat least avoids that misrepresentation. But neither should be injected without explicit user consent.As of 2026-04-13, the system prompt still hardcodes the
Co-Authored-Byinstruction regardless of user settings. Theattribution.commit: ""config documented in #45137 doesn't work either.I want to walk back my earlier +1 on this and explain why I've changed my position to a thumbs-down on the proposal itself (not on the author's intent, which I understand).
The problem with proposing
Assisted-byas an alternative is that it implicitly accepts the premise that some form of tool-injected trailer belongs in git commit messages by default. It doesn't. No other development tool does this — not IDEs, not linters, not formatters, not CI systems, not even other AI coding tools unless configured to do so.Renaming the trailer from
Co-Authored-BytoAssisted-bymakes the attribution slightly more honest, but it doesn't address the fundamental issue: a paid tool should not be writing anything into the user's git history that the user didn't ask for. The trailer name is secondary. The consent model is the problem.I worry that if Anthropic ships
Assisted-byas a compromise, it gives them a way to say "we listened" while keeping the default behavior of injecting vendor branding into user commits. The real fix is simple: default to no trailer, let users who want attribution opt in.I do appreciate the thoughtfulness of this proposal and the examples from other ecosystems — I just think the energy is better spent on getting the opt-out to actually work (#4287, #45137) and then flipping the default.
Thanks @wiktor-k for filing this (and thanks for signstar!).
So, I agree with this suggestion, but, maybe frame the priority a little differently, though: dropping the
Co-Authored-Bytrailer is worth doing on its own, regardless of whether it's replaced by anything.Co-authored-byis a literal authorship assertion, and crediting an AI as an author or co-author is squarely at odds with how the U.S. Copyright Office treats AI authorship.In its Copyright Registration Guidance: Works Containing Material Generated by Artificial Intelligence (Statement of Policy, 88 Fed. Reg. 16190, Mar. 16, 2023; 37 CFR Part 202), the Office states plainly (§IV.A):
The same guidance treats AI as a tool, not a co-author. And that's exactly why
Assisted-byis the more accurate trailer: it credits the human as the author and the model as the instrument, whereasCo-Authored-Byasserts the one thing the guidance says not to assert.One implementation note that I think argues for changing the default (not just documenting a setting): today the trailer is on by omission. If nothing is set in
settings.json, the harness inserts theCo-Authored-Bystring by default. From the bundled attribution function (de-minified):The opt-outs (
attribution,includeCoAuthoredBy: false) only fire for a user who already went looking for them. The default is the co-authorship claim. Given the guidance above, I'd argue the default simply shouldn't credit the model as a co-author out of the box;Assisted-by(or no trailer at all) would be both more accurate and a better default.If it makes sense, I can file the removal of this default behavior in the compiled harness as a separate bug. Guidance from a maintainer on this would be greatly appreciated.
A bunch of thoughtful comments in this thread have me personally considering where I land on this, and I think the
Assisted-byconvention adopted by the Linux kernel is both the most useful and honest version of this convention, and the one I encourage the Claude Code team to adopt by default.@greogory makes a compelling case for dropping this convention entirely, but the case does not account for the difference in the role played by coding agents and assistants. For the most part other tools from text editors to documentation reference utilities are attention and utility aids. They cannot and do not generate actual code on their own. The reviewer of code need not be worried that EMACS or Vim has created a class or adopted an architectural approach that may not have been fully comprehended or understood by a reviewer. Coding agents introduce this new kind of risk. Assisted-by sits as a useful signal to the reviewer that the generated code may or may not reflect deliberate choices v. passive acceptance by the commit author.
Previous posters have recounted the reason
Authored-byis a misnomer, both from a legal perspective and also from a moral perspective. Ultimately generating AI output requires prompting and some kind of input by a user. That input may include their own preferences and conventions in theirCLAUDE.md, the use of reference tools setup as Plug-Ins and MCPs, and post commit linters and other checks. This is in addition to the novel prompting done at the start and potentially during the process of generating the code. Many tricks and tools exist to make it seem as if AI is acting on its own, but ultimately all require some sort of system to kick it off and direct how the output is created. Opus 5 cannot act, as lawyers would say, sua sponte. This lack of ability to independently start work is what distinguishes it as a tool versus being an "author" or "collaborator".Finally I asked Opus 5 itself what it preferred and it shared the following: