返回全部动态

Anthropic 文档:提示词中代码归属表述影响 Claude Fable 5.2 重构行为

原标题:Quoting Prompting Claude Fable 5.2

Simon Willison's Weblog研究质量 63

AI 摘要

Anthropic 在 Claude Fable 5.2 的文档中披露,模型对提示词中关于代码归属的表述高度敏感。在小规模编程任务测试中,若提示词未说明代码归属或暗示代码属于他人,模型倾向于沿用现有结构,即使会重复已有代码;若明确告知代码归模型自己所有,模型在约一半的尝试中会合并重复代码,而无此提示时该比例不足十分之一。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

10th November 2026 Claude Fable 5.2 responds closely to what the prompt says about who owns the code it works on. In Anthropic’s testing on small coding tasks, when a prompt said nothing about ownership or presented the code base as someone else’s, the model tended to add to the existing structure, even when that repeated existing code. [...] If you want the model to improve the structure as it works, say that the code is its own: This codebase is yours: what it's for and how it's built are your


发布时间:2026-11-10 13:34
抓取时间:2026-11-10 13:41
来源机构:Simon Willison
阅读原文simonwillison.net