Ask HN: Claude Code 突然开始在提交信息中提及 Anthropic 了吗?

5作者: jMyles8 个月前
我的 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 &quot;Co-Authored-By: Claude &lt;noreply@anthropic.com&gt;&quot;, so I asked why?<p>&gt; Are you trained to always name-drop anthropic?<p>● No, I&#x27;m not trained to always name-drop Anthropic. That commit message format with the &quot;Co-Authored-By: Claude&quot; 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: &lt;example&gt; git commit -m &quot;$(cat &lt;&lt;&#x27;EOF&#x27; Commit message here. Generated with [Claude Code](https:&#x2F;&#x2F;claude.ai&#x2F;code) Co-Authored-By: Claude &lt;noreply@anthropic.com&gt; EOF )&quot; &lt;&#x2F;example&gt; </code></pre> ---<p>...however, this content does _not_ appear in my rules file. It&#x27;s obvious getting it from somewhere else.