Let Claude Code make a commit and you’ll find a trailer at the bottom of the message, something like Co-Authored-By: Claude Sonnet 5 <[email protected]>. Pull request descriptions get a line of plain text as well. Whether you keep that, reword it or drop it is up to you, and the attribution setting is where you decide.
It takes an object with two strings and a switch: commit for the commit text (trailers included), pr for the pull request description, and sessionUrl for the link back to the session. An empty string hides that part. This keeps the commit trailer as it is, removes the PR line and drops the session link:
// .claude/settings.json
{
"attribution": {
"pr": "",
"sessionUrl": false
}
}
Leave commit out like that and Claude Code keeps its default text for commits. By default the trailer names the model that made the commit, so a commit from a subagent shows the subagent’s model. To hide everything at once, set "attribution": false.
My own view: in a team repo I’d leave the commit trailer alone. It’s useful context for whoever reviews or bisects the history later, and git tools can read trailers. Removing the PR blurb is a matter of taste.
The caveat is about versions. "attribution": false needs Claude Code v2.1.281 or later. Older versions reject that value and then skip the whole settings file that contains it, so your permissions and everything else in that file stop applying too. If teammates might run an older version, use the long form instead: commit and pr as empty strings and sessionUrl set to false. The old includeCoAuthoredBy key still works but has been deprecated since v2.0.62, and it’s ignored once you set commit or pr.
Further reading: attribution in the Claude Code settings reference