Skip to content
BENIBIX Learn

attribution Setting

AI⌨️ Claude CodeConfiguration

Also known as "attribution" key, Co-Authored-By trailer, includeCoAuthoredBy

The key that changes or hides Claude's credit line in commits.

Think of it like

It is like the line at the end of a card that says who helped write it.

Example

Jack's team has its own trailer format. They set the commit sub-key to match it in the project file.

Why it matters

It is how a team keeps its git history in the format it already uses.

Definition

The attribution setting changes the credit Claude Code adds to git commits and pull requests. By default a commit gets a Co-Authored-By line and a pull request gets a plain note. The commit and pr sub-keys change each part. sessionUrl drops the session link. Set attribution to false to hide it all.

Example code

json
{
  "attribution": {
    "commit": "Assisted-by: Claude",
    "pr": ""
  }
}
Change the commit line, and add nothing to pull requests.

Common mistake

Using the old key that did this job before. It is out of date, so use attribution.

Key takeaways

  1. 1
    Commit and PR credit. Two parts.
  2. 2
    Change or blank. Each one.
  3. 3
    false hides all. Every line.