CopybookSearch

Config

Claude Code attribution off: commits and PRs

Claude Code adds Co-Authored-By to its commits and a Generated line to its PRs: one setting hides both, in one repo or all.

Posted

Free

Copybook Pro Skills your agent runs from start to finish, such as three page designs or a copied pricing card. $9 for 30 days, one payment.
Add Copybook to your agent
Source
Original
Star on GitHub
Attribution setting
{
  "attribution": {
    "commit": "",
    "pr": "",
    "sessionUrl": false
  }
}

Use it

Put it in ~/.claude/settings.json for every project, or .claude/settings.json for one repo.

In your agent

Works in
Claude Code
Add Copybook to your agent
Claude CodeClaude app
Checked on
Haiku 5.5
How to add Copybook

Every commit Claude Code makes ends with a Co-Authored-By trailer that names the model, and every PR description it writes ends with 🤖 Generated with [Claude Code](https://claude.com/claude-code). The attribution setting hides them.

An empty commit hides the commit trailer and an empty pr hides the PR line. sessionUrl set to false drops the claude.ai session link that cloud and Remote Control sessions add to commits and PRs.

~/.claude/settings.json covers every project on your machine. .claude/settings.json covers everyone on the repo once you commit it, and .claude/settings.local.json covers only you in that repo. An organization can set it in managed settings. If the file already has settings, add the attribution key inside its outer braces.

Short form, Claude Code 2.1.281 or later
{
  "attribution": false
}

This line does the same on Claude Code 2.1.281 or later. Earlier versions reject it and skip the whole settings file that holds it, so keep the longer block in a file a teammate on an older version also reads.

The older includeCoAuthoredBy key is deprecated, and Claude Code ignores it once attribution sets commit or pr. If a trailer still shows up, look for a CLAUDE.md or memory rule that asks for one: Claude follows your own instructions about attribution over this setting, unless the setting comes from managed settings.

What you get

  • Claude Code’s next commits have no Co-Authored-By trailer, and its PRs no Generated line.

Add Copybook to your agent, then ask it next time. Set it up