Ask HN: Claude Code 突然开始在提交信息中提及 Anthropic 了吗?
5 分•作者: jMyles•8 个月前
我的 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.