# attribution Setting

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** "attribution" key, Co-Authored-By trailer, includeCoAuthoredBy

## Think of it like

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

## 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

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

## Example code

```json
{
  "attribution": {
    "commit": "Assisted-by: Claude",
    "pr": ""
  }
}
```

Change the commit line, and add nothing to pull requests.

## Why it matters

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

## Common mistake

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

## Three principles

- **Commit and PR credit.** Two parts.
- **Change or blank.** Each one.
- **false hides all.** Every line.

## Related terms

- [includeGitInstructions](https://learn.benibix.com/term/ai/include-git-instructions-setting)
- [Claude Code Settings File](https://learn.benibix.com/term/ai/claude-code-settings-file)

---

Source: https://learn.benibix.com/term/ai/attribution-setting
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
