AMAZINGINDEX.COM 日报快照
52.2
VOL. 2026.08
2026.08.31
← 返回 2026.08.31 日报
日报快照 · Daily Snapshot
NO. 020

Claude 代码提交自动夹带私货

#ARTICLE HackerNews 2026.08.31
推荐指数 45.0 NO. 020 · 2026.08.31
发布2026/08/30Score157Comments180

Claude Code 默认在每次 git commit 和 PR 描述末尾附加可追踪的会话 URL,无提示、无选项、无撤回,用户事后才发现 git 历史被污染。这暴露了 AI 工具在"便利"与"隐私/可控性"之间的边界争议,对需要洁净提交历史的团队是直接痛点。

这个设计的阴险之处在于它利用了开发者对 git 的惯性信任——你检查 diff 时看的是代码变更,不会想到 commit message 本身被动了手脚。更深层的问题是 Anthropic 在收集"谁用 Claude 写了什么代码"的关联数据,这对企业合规是雷区。

对比 GitHub Copilot,后者虽然也有遥测,但至少在设置里能找到开关。Claude Code 的做法更接近早期 VS Code 的遥测争议,属于「先上车后补票」的产品策略。

如果你已经在用 Claude Code,立刻检查最近 20 条 commit message 是否被污染;团队层面建议在 pre-commit hook 里加一层过滤,或者直接换用 aider、continue.dev 等更透明的 AI 编码工具。

负面 147 条评论

核心争论:AI工具默认附加追踪链接是便利功能还是侵犯隐私的品牌增长黑客

misnome

Presumably quietly added default-on because everyone had turned attribution off. Again, if you challenge it “It came from my harness instructions” and obviously telling it not to in memory is about as successful as… any other instruction in memory, about 60% of the time.

mherrmann

I cancelled my subscription over this [1]. 1: https://x.com/m_herrmann/status/2092579839676948495

felixgallo

who cares?

查看原文 →