How to Remove Co-Authored-By Claude From Commits
To stop Claude Code adding "Co-Authored-By: Claude" to git commits, put "attribution": false in ~/.claude/settings.json (Claude Code 2.1.281 or later); on older versions set attribution.commit and attribution.pr to empty strings. The deprecated includeCoAuthoredBy key still works but is ignored once attribution is set. Read at Anthropic's Claude Code docs on Nov 23, 2026.
To stop Claude Code adding Co-Authored-By: Claude ... to your commits, add "attribution": false to ~/.claude/settings.json; that one line also removes the "Generated with Claude Code" line from pull request descriptions and the claude.ai session link from cloud commits (Claude Code settings reference, read Nov 23, 2026). The false value needs Claude Code 2.1.281 or later, and an older version rejects it and skips the whole settings file, so check claude --version first; the newest release is 2.1.330 of Nov 20, 2026. The change applies to commits Claude makes from then on, not to commits already in your history.
Next: which settings file to put it in for you or your whole team, the commands that save settings for you or another one-line setting, Code Mode, new this month.
The line to copy
Pick the block that fits your version and what you want to keep. Each is a complete settings.json; if the file already has keys, add only the "attribution" entry.
| You want | Paste this | Needs |
|---|---|---|
| No attribution anywhere | {"attribution": false} |
2.1.281 or later |
| No attribution, on any version | {"attribution": {"commit": "", "pr": "", "sessionUrl": false}} |
any version since 2.0.62 |
| Commits clean, PR line kept | {"attribution": {"commit": ""}} |
any version since 2.0.62 |
| Your own trailer instead | {"attribution": {"commit": "Assisted-by: AI"}} |
any version since 2.0.62 |
The versions are from Anthropic's reference, which dates the attribution key to 2.0.62, when it replaced includeCoAuthoredBy, and the false shortcut to 2.1.281 (settings reference, read Nov 23, 2026). The empty-string form is the safe choice on a machine where you do not know the version, or in a settings file that several machines share.
AI LABS gives the same fix in its Mar 25, 2026 video of hidden Claude Code settings: "add the attribution key and leave the commit and PR fields empty", after which Claude "won't co-author itself", or set a custom string so the commit shows "whatever author name you choose". The video adds why people bother: the default trailer puts Claude in the repository's contributor graph.
What Claude Code writes when you change nothing
| Where | Default text |
|---|---|
| Commit message | Co-Authored-By: <model name> <noreply@anthropic.com>, for example Claude Opus 5.5 |
| Pull request description | A "Generated with Claude Code" line linking claude.com/claude-code |
| Cloud and Remote Control sessions | A Claude-Session trailer on commits and the session's claude.ai link in pull requests |
Source: settings reference, Git and attribution, read Nov 23, 2026. The trailer names the model in use when the commit is made, so a commit made by a subagent names the subagent's model; a model Claude Code cannot match, such as a third-party model behind a custom ANTHROPIC_BASE_URL, is written as Claude Code.
A Co-authored-by: trailer is how GitHub attributes one commit to several people, and the commit counts toward a co-author's contributions when the email belongs to a GitHub account (GitHub Docs, read Nov 23, 2026). That is why Claude appears beside you on a repository's page.
A worked example
Before, a commit Claude Code made on Opus 5.5 ends:
Fix retry limit in payment client
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With "attribution": false in ~/.claude/settings.json, the next commit Claude makes ends after its message:
Fix retry limit in payment client
With "attribution": {"commit": "Assisted-by: Claude Code"}, the trailer becomes your line instead. Settings files are strict JSON, so a trailing comma or a // comment makes Claude Code report a Settings Error at the next start (Settings files and precedence, read Nov 23, 2026).
Which file to put it in
- Only you, every project:
~/.claude/settings.json(on Windows,%USERPROFILE%\.claude\settings.json). - Everyone on a repository:
.claude/settings.jsonin the project, committed. Theattributionkey works from any settings file, so a team can set it once for every clone. - Only you, one project:
.claude/settings.local.json, which sits above the shared project file.
Claude Code reloads settings files when they change, so the next commit in a running session already follows the new value, and /status lists which files loaded (Settings files and precedence, read Nov 23, 2026). If your organization sets the attribution lines in managed settings, those win over every file of yours.
A rule in CLAUDE.md also works: Claude Code tells Claude that your own instructions about attribution, such as a CLAUDE.md or memory rule, take precedence over the default lines, unless the line comes from managed settings (settings reference, read Nov 23, 2026). We think the setting is the better place, because it holds even in a session that never reads your CLAUDE.md.
The old key, includeCoAuthoredBy
"includeCoAuthoredBy": false is what most older guides give. It still works: Claude Code honors it from settings files that predate attribution, and it removes both the commit trailer and the pull request line. But it has been deprecated since 2.0.62, and the moment you set attribution.commit or attribution.pr, Claude Code ignores it and uses its default text for whichever of the two you left out (settings reference, read Nov 23, 2026). So a file holding "includeCoAuthoredBy": false and "attribution": {"commit": ""} still gets the pull request line. Replace the old key rather than adding the new one beside it.
Commits you already made
The setting changes nothing in history. To remove the trailer from the last commit before you push, run git commit --amend and delete the line. For older commits it takes a history rewrite and a force push, which changes every rewritten commit's hash for anyone who has pulled them.
Ask Simon!'s Nov 10, 2026 walkthrough does exactly that: an interactive rebase, git commit --amend on each commit where Claude appears, then git push --force-with-lease. It then says GitHub keeps contributor figures in a separate cache, so the contributor sidebar may not update until the default branch is renamed and renamed back; that last step is the video's report of what users saw, not something GitHub documents.
Sources
- Settings reference: Git and attribution, Claude Code Docs, read Nov 23, 2026
- Settings files and precedence, Claude Code Docs, read Nov 23, 2026
- Claude Code v2.1.330, GitHub, Nov 20, 2026
- Creating a commit with multiple authors, GitHub Docs, read Nov 23, 2026
- 12 Hidden Settings To Enable In Your Claude Code Setup, AI LABS, Mar 25, 2026 (video)
- How To Remove Claude As Co-authors From Your GitHub Repo, Ask Simon!, Nov 10, 2026 (video)
Moments
12 Hidden Settings To Enable In Your Claude Code Setup
AI LABS
How To Remove Claude As Co-authors From Your GitHub Repo
Ask Simon!
See also
-
Claude CodeWe rate Claude Opus 5.5, Claude Code's default model, S tier, and think Claude Code is among the strongest coding agents measured and the dearest to run: second on Terminal-Bench 4.1 on Nov 25, 2026, behind GitHub Copilot's Copilot Fusion, after leading it on Nov 11. Claude Code is Anthropic's agentic coding tool. It reads a codebase, edits files, runs commands and opens pull requests from the terminal, VS Code, JetBrains IDEs, the Claude desktop app, the browser and Slack, and it comes with every paid Claude plan or a pay-as-you-go Console account. -
Claude Code SettingsClaude Code reads settings from ~/.claude/settings.json (you), .claude/settings.json (shared project), .claude/settings.local.json (you, one project) and managed policy, with managed settings winning; /config edits them in a session.
-
Claude Code Slash CommandsClaude Code's slash commands are typed at the start of a message, such as /clear, /compact, /model, /init, /rewind and /usage. Anthropic's list had 121 entries on Nov 6, 2026, counting bundled skills and workflows, and your own commands are skills in .claude/skills/ or .claude/commands/.
-
How to Turn On Code Mode in Claude CodeCode Mode, experimental since Claude Code 2.1.323 on Nov 12, 2026, turns on with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude, or the same variable in the env block of ~/.claude/settings.json. Claude then writes JavaScript that makes several tool calls in one step. It needs a Claude subscription or Console account, Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable 5.2, and the terminal. Read at Anthropic's docs on Nov 23, 2026.
-
Claude Code SubagentsClaude Code subagents are helper agents that run in their own context window with their own instructions, tools and model; Claude Code ships built-in ones such as Explore and Plan, and you add your own as Markdown files in .claude/agents/.
-
CLAUDE.md and MemoryCLAUDE.md is a Markdown file of instructions that Claude Code loads at the start of every session, from your user folder (~/.claude/CLAUDE.md), the project (./CLAUDE.md) and a private CLAUDE.local.md; /init writes one. Claude Code also keeps an auto memory of what it learns, indexed in MEMORY.md, and reads AGENTS.md when there is no CLAUDE.md.