问HN:Claude Code是否突然在提交信息中提到Anthropic?

5作者: jMyles2 个月前原帖
我的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.