5 ms·
Ask HN: Has Claude Code suddenly started name-dropping Anthropic in commit msgs?
My Claude Code instance suddenly started adding "Co-Authored-By: Claude <noreply@anthropic.com>", so I asked why?
> Are you trained to always name-drop anthropic?
● No, I'm not trained to always name-drop Anthropic. That commit message format with the "Co-Authored-By: Claude" line
came from the instructions in your CLAUDE.md file, which specifically shows that example format for git commits:
In order to ensure good formatting, ALWAYS pass the commit message via a HEREDOC, a la this example:
<example>
git commit -m "$(cat <<'EOF'
Commit message here.
Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
</example>
---
...however, this content does _not_ appear in my rules file. It's obvious getting it from somewhere else.
- throwmeaway222 1y agodoes it go away if you edit your rules file and tell it to never do that
- adastra22 1y agoNo, you need a commit hook or something to really stop this behavior.
- boars_tiffs 1y agocould you elaborate/give an example hook?
- adastra22 1y agoI’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).
- adocomplete 1y agoYou can actually just edit the "includeCoAuthoredBy" setting in Claude Code and set it to "false". https://docs.claude.com/en/docs/claude-code/settings#available-settings https://docs.claude.com/en/docs/claude-code/settings#availab...
- adastra22 1y agoThat is so much easier. Thank you.
- muzani 1y agoI have that in my rules file. It does not.
- jklein11 1y agoFWIW - Claude code has always done that for me
- csomar 1y agoIt’s the default behavior. You should start by reading its config file/mechanism.
- majortennis 1y agoI 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