Skip to content

Turn off Claude Code attribution (append-only)#24

Open
akan72 wants to merge 1 commit into
mainfrom
akan72/claude-attribution
Open

Turn off Claude Code attribution (append-only)#24
akan72 wants to merge 1 commit into
mainfrom
akan72/claude-attribution

Conversation

@akan72
Copy link
Copy Markdown
Owner

@akan72 akan72 commented May 29, 2026

Summary

Turn off Claude Code commit/PR attribution, reproducibly, via assimilate.sh. (Additional request, not in the original branch plan.)

  • Add an idempotent step to assimilate.sh that sets Claude Code's attribution.commit and attribution.pr to empty in ~/.claude/settings.json.
  • It only appends the attribution key when it isn't already present (via a jq merge), so existing local settings are never overridden — matching the "append if absent" requirement.
  • If the file doesn't exist, it's created with just the attribution block.

Behavior

Starting state of ~/.claude/settings.json Result
No file Created with {"attribution": {"commit": "", "pr": ""}}
Exists, no attribution key All existing keys preserved; attribution appended
Exists, already has attribution Left untouched (not overridden)

All three cases were verified against jq before committing.

Why

Without attribution, commits carry no "Co-Authored-By: Claude" / "Generated with" trailers — the author is just your git identity (Alex Kan), which is what makes the commits across these branches "from me, not Claude." This change makes that behavior reproducible on new machines without clobbering machine-local Claude settings.

Add an idempotent step to assimilate.sh that sets Claude Code's commit/PR
attribution to empty in ~/.claude/settings.json. It only appends the
"attribution" key when it isn't already present (via jq merge), so existing
local settings are never overridden — matching the 'append if absent' intent.
Makes the attribution-off behavior reproducible on new machines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant