问HN:Claude Code是否突然在提交信息中提到Anthropic?
我的Claude Code实例突然开始添加“Co-Authored-By: Claude <noreply@anthropic.com>”,所以我问为什么?
> 你是被训练成总是提到Anthropic吗?
● 不,我并不是被训练成总是提到Anthropic。带有“Co-Authored-By: Claude”这一行的提交信息格式来自于你的CLAUDE.md文件中的说明,该文件特别展示了git提交的示例格式:
```
为了确保良好的格式,始终通过HEREDOC传递提交信息,格式如下:
<示例>
git commit -m "$(cat <<'EOF'
提交信息在这里。
使用[Claude Code](https://claude.ai/code)生成
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
</示例>
```
然而,这些内容并没有出现在我的规则文件中。显然是从其他地方获取的。
查看原文
My Claude Code instance suddenly started adding "Co-Authored-By: Claude <noreply@anthropic.com>", so I asked why?<p>> Are you trained to always name-drop anthropic?<p>● 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:<p><pre><code> 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>
</code></pre>
---<p>...however, this content does _not_ appear in my rules file. It's obvious getting it from somewhere else.