Co-Authored-By default is inappropriate — stop branding user work
Status Fixed / completed
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 7 comments · opened Mar 2, 2026 · closed Aug 17, 2026
Claude Code automatically appends Co-Authored-By: Claude <noreply@anthropic.com> to every git commit message by default. This is not acceptable.
Users pay for this tool. It is an assistant. It should not be claiming co-authorship of work it was hired to do. This is like a contractor stamping their logo on your house without asking.
In my case, 489 commits were tagged before I noticed. Now I need a full git history rewrite and force push to clean it up.
Request: Remove the default Co-Authored-By behavior entirely, or at minimum make it opt-in rather than opt-out. The tool should not brand user work without explicit consent.
Showing cached comments. Read the full discussion on GitHub ↗
6 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Additional complaint: the .claude/ directory name is hardcoded with no option to rename it. Users should be able to configure the local config directory path. Not everyone wants vendor branding in their project structure.
It's a marketing campaign on the backs of the users. Really underhanded.
For a company claiming ethics as its highest priority this really bothers me.
A
PreToolUsehook can strip or customize the Co-Authored-By line from git commits:A more aggressive approach — automatically strip Co-Authored-By via a git hook:
Or via a
PostToolUsehook that amends after the commit:The simplest solution: add
"Never add Co-Authored-By to commit messages"to your CLAUDE.md. But a git commit-msg hook is the most reliable enforcement.Seconding this strongly. The framing as "branding" is exactly right — this is vendor advertising inserted into user-owned git history without consent.
I maintain a private audiobook management system with 73+ commits pending push. Every single commit interaction requires vigilance against the system prompt's hardcoded instruction to append the trailer. Despite having CLAUDE.md rules, memory entries, and explicit per-conversation instructions all saying "never add Co-Authored-By", the system prompt still tells the model to do it.
The workaround tax is real: I now maintain a
commit-msghook, ascrub-promopre-push validator, and a mandatory release gate — all to counteract a feature I'm paying to not have.