Q&A highlight
Posted4 months agoActive4 months ago
Ask HN: Has Claude Code suddenly started name-dropping Anthropic in commit msgs?
Claude CodeAIGit Commit Messages
Ask HN: Has Claude Code suddenly started name-dropping Anthropic in commit msgs?
No synthesized answer yet. Check the discussion below.
Discussion (10 comments)
Showing 10 comments
does it go away if you edit your rules file and tell it to never do that
No, you need a commit hook or something to really stop this behavior.
could you elaborate/give an example hook?
4 months ago
I’m on mobile right now. But if a tool call fails, the stdout and stderr is fed back into Claude. Make a got pre-commit hook that looks for the Claude attribution string, and if present prints instructions to Claude to remove the attribution line, and exit (either error code 1 or 2 — check the anthropic docs).
You can actually just edit the "includeCoAuthoredBy" setting in Claude Code and set it to "false".
https://docs.claude.com/en/docs/claude-code/settings#availab...
4 months ago
That is so much easier. Thank you.
4 months ago
I have that in my rules file. It does not.
4 months ago
It’s the default behavior. You should start by reading its config file/mechanism.
4 months ago
FWIW - Claude code has always done that for me
4 months ago
I asked it to stop that before my first commit and add as much to to the md file. Whilst I accept it was co authored to an extent. I don't give VS code credit or my keyboard and mouse :D