r/ClaudeCode • u/ApartmentEither4838 • 3h ago
Discussion Claude Doesn't strictly follow it's settings.json file now??
I just noticed some of the commits started having co authored by claude anthropic, but I had turned off attribution a long time back.
Like what do you mean by you added it out of habit, aren't there constraints enforced in the claude code harness to ensure the settings are followed everytime?
0
Upvotes
•
u/AutoModerator 3h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/Menelabs 3h ago
The attribution setting only changes what Claude gets told to write. The commit message is still text the model writes, so nothing actually stops the trailer. If you want a guarantee, put it in git instead: a
commit-msghook that strips the line, in.git/hooks/commit-msg(make it executable):Works no matter who or what writes the commit.
1
u/Deep_Abalone_4996 3h ago
Use hooks.
1
u/SirRobinBlibs 1h ago
The attribution setting isn't enforced the way permissions are. attribution.commit changes or hides the trailer Claude Code asks for (an empty string hides it), but the message itself is still written by the model, so the line can slip back in, for example when recent commits in the log already carry it and it copies the pattern (my guess, not documented). Worth checking two things: that you're on attribution and not the old includeCoAuthoredBy, which is deprecated, and that no project or local settings file overrides your user one. If you need a guarantee, a commit-msg hook that deletes the Co-Authored-By line is the only thing that actually enforces it.
1
u/RasenMeow 1h ago
because Claude heavily sucks following instructions.