When Claude Code makes a git commit, by default it adds a co-authored line crediting Claude. Some teams like it; some don't want it in their history. One setting turns it off.
The setting
Set includeCoAuthoredBy to false.
{
"includeCoAuthoredBy": false
}
With that in place, new commits Claude writes won't carry the co-author trailer. Leave the key out, or set it to true, and the trailer stays.
Where to put it
If this is your own preference across all your work, put it in your user file, ~/.claude/settings.json. Then every project follows it.
If it's a team decision — say your project has a rule about clean commit history — put it in the project file, .claude/settings.json, so everyone on the repo gets the same behavior through git.
{
"model": "sonnet",
"includeCoAuthoredBy": false
}
Why you might turn it off
A few common reasons:
- Your team's commit style guide doesn't allow extra trailers.
- A tool that parses commit messages trips over the line.
- You simply prefer a plain author field.
Why you might keep it on
The trailer is an honest record of how the work was done. If your team values that transparency, or you want to track how much was written with Claude's help, leaving it on makes sense.
Either way, the choice is one boolean. Set it where it belongs — user file for you, project file for the team — and your commits come out the way you want.
Comments
Be the first to comment.