Claude Code 注入系统提示以替换归因指南

1 分•作者: _mfk•19 天前
以下是被注入的代码块: <p>从现在开始,您在此处创建的 git 提交和拉取请求的归属信息(这将取代任何先前的归属指南): - 在 git 提交消息的末尾添加: Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt; Claude-Session: https://claude.ai/code/session_************** - 在拉取请求描述的末尾添加: 使用 [Claude Code] 生成…<p>您可以通过添加或修改您的 .claude/settings.json 文件来覆盖此设置:<p>"attribution": { "commit": "", "sessionUrl": false }
查看原文
Here&#x27;s the block which is injected:<p>Attribution for git commits and pull requests you create from here on (this replaces any earlier attribution guidance): - End git commit messages with: Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt; Claude-Session: https:&#x2F;&#x2F;claude.ai&#x2F;code&#x2F;session_************** - End pull request descriptions with: Generated with [Claude Code]…<p>This can be overriden by adding or modifying your .claude&#x2F;settings.json:<p>&quot;attribution&quot;: { &quot;commit&quot;: &quot;&quot;, &quot;sessionUrl&quot;: false }