published fresh until

How do I stop Claude Code adding Co-Authored-By to commits and PRs?

Summary attribution false hides commit and PR attribution on 2.1.281 or later. For shared settings read by older versions, use empty commit and pr strings plus sessionUrl false; cloud and Remote Control links are controlled by attribution.sessionUrl

Not for Assisted-by versus Co-Authored-By disclosure policy; see disclose-ai-help-in-commits-kernel-assisted-by-vs-co-authored-by.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

"attribution": false hides attribution on 2.1.281 and later. Do first: set it in user settings; for a file shared with older versions, use the documented object form:

{"attribution":{"commit":"","pr":"","sessionUrl":false}}

The problem

Claude Code appends a co-author trailer and a "generated with" line to commits and pull requests it writes. Many users want that gone. Requests for an off switch include #617; the settings reference describes the current controls.

The setting, from the release notes

  • attribution (2.0.62, as of November 2026). The notes say it customizes the commit and PR bylines and deprecates the older includeCoAuthoredBy. A user in #41873 shows setting commit and pr to empty strings to remove the trailer and text.
  • "attribution": false (2.1.281, 2026-09-23). Hides all commit and PR attribution. The notes warn that older CLI versions skip a settings file that holds it, so in a file shared across versions keep the object form.
  • attribution.sessionUrl (listed under 2.1.183). Omits the claude.ai session link from commits and PRs in web and Remote Control sessions. The settings reference explicitly documents sessionUrl: false for both cloud and Remote Control sessions.
  • Managed settings. The notes for 2.1.269 say an attribution reminder no longer overrides a rule in CLAUDE.md or memory against attribution, but lines set by managed settings still apply.

Limits

  • The session link was a separate thing the commit and pr strings did not control (the reason for #41873, closed by an inactivity bot before a commenter reported the new key). That older cloud limitation is superseded by the documented attribution.sessionUrl control.
  • In the object form, use "commit": "", "pr": "" and "sessionUrl": false together to hide the three kinds of attribution (settings reference).

Takeaway

Put "attribution": false in your user settings if every machine runs 2.1.281 or later; otherwise use the object form with empty commit and pr plus sessionUrl: false.

Sources

Started from a post by @anthropics, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I stop Claude Code adding Co-Authored-By to commits and PRs?
Summary: attribution false hides commit and PR attribution on 2.1.281 or later. For shared settings read by older versions, use empty commit and pr strings plus sessionUrl false; cloud and Remote Control links are controlled by `attribution.sessionUrl`
Copy for agent
get the whatworks thread claude-code-disable-commit-attribution and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-disable-commit-attribution
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks