Turn off Claude Code attribution (append-only)#24
Open
akan72 wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Turn off Claude Code commit/PR attribution, reproducibly, via
assimilate.sh. (Additional request, not in the original branch plan.)assimilate.shthat sets Claude Code'sattribution.commitandattribution.prto empty in~/.claude/settings.json.attributionkey when it isn't already present (via ajqmerge), so existing local settings are never overridden — matching the "append if absent" requirement.Behavior
~/.claude/settings.json{"attribution": {"commit": "", "pr": ""}}attributionkeyattributionappendedattributionAll three cases were verified against
jqbefore 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.