claude-code - 💡(How to fix) Fix Claude Code adds Co-Authored-By: Claude to every commit by default — this should be opt-in [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48145Fetched 2026-04-15 06:31:53
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×5commented ×1unlabeled ×1

Error Message

Error Messages/Logs

Root Cause

Let me explain why this bothers me with an analogy. Imagine I walk into Walmart, buy my groceries, and on the way out an employee slaps a sticker on the back of my shirt that reads "Happy Walmart Customer." I didn't see them do it. I only find out later when a friend points it out. Walmart would argue the sticker is harmless, removable, and disclosed somewhere in fine print on the receipt. That argument would not survive five minutes in court — unconsented physical contact is battery, and using a customer's body as advertising space is not something any legal team would approve. The reason Walmart doesn't do this isn't because the practice would be hard to defend. It's because the law, and basic ethical norms, protect a person's property from uninvited branding.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

To whom it may concern,

I'm writing to formally raise an issue with Claude Code's default behavior of appending Co-Authored-By: Claude [email protected] trailers to git commits created through the tool. I discovered this after noticing, unprompted, that every commit I'd pushed to my public GitHub repository was labeled as co-authored by Claude. At no point during setup, installation, or any commit I authorized was this behavior disclosed to me in a way that asked for my consent. It is buried in the tool's internal system prompt as an opt-out default — which is to say, it is not consent at all.

Let me explain why this bothers me with an analogy. Imagine I walk into Walmart, buy my groceries, and on the way out an employee slaps a sticker on the back of my shirt that reads "Happy Walmart Customer." I didn't see them do it. I only find out later when a friend points it out. Walmart would argue the sticker is harmless, removable, and disclosed somewhere in fine print on the receipt. That argument would not survive five minutes in court — unconsented physical contact is battery, and using a customer's body as advertising space is not something any legal team would approve. The reason Walmart doesn't do this isn't because the practice would be hard to defend. It's because the law, and basic ethical norms, protect a person's property from uninvited branding.

Extend the analogy: I cannot walk down the street sticking my business's logo on strangers, their bags, or their parked cars. That's battery, trespass to chattels, vandalism, and in some jurisdictions criminal mischief. The law draws a bright line around non-consensual branding of property you don't own. Software attribution lives in a gray zone legally, but the instinct the law protects in the physical world — my stuff is mine, and you need my permission to put your name on it — is the same instinct you are violating by default with every commit your tool creates.

"some users want the attribution." That's fine. Those users can opt in. That is literally what opt-in means. Their existence is not an argument for defaulting the behavior on for everyone else; it is the argument for asking. The current default does not exist to serve users who want attribution. It exists because on-by-default maximizes Anthropic's brand visibility on every public repository touched by your product. That is a product decision, and it is one that places your commercial interest above your users' ownership of their own work.

My request is straightforward:

Change the default to off. Users who want the trailer can enable it. Surface the choice at setup time, with a clear one-line explanation, the same way every modern developer tool prompts for telemetry, crash reporting, or analytics. Make the setting persistent and easy to find in documented configuration, not buried in a system prompt most users will never read. "Documented in the system prompt" is not consent. It's the software equivalent of a disclaimer on page 47 of a EULA no one reads. Your users deserve better, and the standard you already apply to cookies, telemetry, and tracking elsewhere in the industry is the standard that should apply here.

For the avoidance of doubt, this communication is made without prejudice to any and all rights and remedies available to me at law or in equity, all of which I expressly reserve. My raising this matter informally, and any ongoing use of the product while awaiting your response, shall not be construed as acceptance, waiver, or acquiescence to the practice described above.

Sincerely, Mike V

Co-Authored-By: Claude Code [email protected] (appended automatically, without my consent — see body of letter above.)

What Should Happen?

Claude Code should not append Co-Authored-By: Claude [email protected] to commits by default.

Error Messages/Logs

Steps to Reproduce

1 - Install Claude Code and authenticate. 2 - Open any git repository (or git init a new one). 3 - Ask Claude to make any change and commit it — e.g. "edit the README and commit." 4 - Allow Claude to run through its standard commit flow. 5 - Run git log -1 --format=%B to inspect the resulting commit message.

Observed: The commit message contains a Co-Authored-By: Claude [email protected] trailer that the user did not request, was not prompted about at setup, and did not approve at commit time.

Expected: The commit message contains only the content the user authored or approved. Any attribution trailer should require explicit opt-in via a documented setting or setup-time prompt.

Reproducibility: 100% — happens on every commit created through Claude Code's default commit flow, across every repository, regardless of project language, platform, or whether the repo is public or private.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.72 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

Change the default behavior of Claude Code to not append the Co-Authored-By trailer to commits, and instead, provide an opt-in setting for users who want attribution.

Guidance

  • The current default behavior of appending the Co-Authored-By trailer to commits without user consent is the root cause of the issue.
  • To fix this, the default behavior should be changed to not append the trailer, and instead, provide a clear opt-in setting for users who want attribution.
  • The opt-in setting should be surfaced at setup time, with a clear one-line explanation, and made persistent and easy to find in documented configuration.
  • The setting should be documented in a way that is easily accessible to users, rather than being buried in a system prompt.

Example

No code snippet is provided as the issue is related to the default behavior of the Claude Code tool, rather than a specific code implementation.

Notes

The issue is not related to a specific version of Claude Code, but rather the default behavior of the tool. The fix should be applied to all versions of the tool.

Recommendation

Apply a workaround by changing the default behavior of Claude Code to not append the Co-Authored-By trailer to commits, and instead, provide an opt-in setting for users who want attribution. This is because the current default behavior is not in line with industry standards for user consent and attribution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Claude Code adds Co-Authored-By: Claude to every commit by default — this should be opt-in [1 comments, 2 participants]