AIsaAIsaStudio English 打开 AIsa Studio

Claude Fable 5.2 提示词技巧:声明代码所有权影响其重构意愿

原标题:Quoting Prompting Claude Fable 5.2

Simon Willison 引用 Anthropic 文档指出,Claude Fable 5.2 对提示词中关于代码归属的表述很敏感:若提示词不提所有权或称代码库属于他人,模型倾向在现有结构上追加代码,即使重复已有代码。若写明"这个代码库是你的,用途和结构由你决定",模型在小编码任务测试中约一半的尝试会合并重复代码,不写该句则不到十分之一。

为什么值得看

原文引用 Anthropic 文档给出一条可复用的提示词写法,并附上其小任务测试中合并重复代码比例的对比数据。

阅读原文 ↗

本页的摘要、推荐理由与解读出自 AIsa Studio 的 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 call, and you'll keep building on it.

In Anthropic’s testing on small coding tasks, the model merged repeated code in about half of the tries with this sentence, and in under a tenth of the tries without it.

— Prompting Claude Fable 5.2, Anthropic documentation

原文版权归 Simon Willison 及原作者所有,本站转载仅供阅读。如需删除,请联系 support@aisa.one。

事件综述

Simon Willison 分享 Claude Fable 5.2 “代码库是你的”提示词技巧

2026年11月10日,Simon Willison 连发两篇短文介绍 Anthropic 新模型 Claude Fable 5.2 的一则提示词技巧,并建议大家在新模型发布后查看其更新的提示词指南。他引用 Anthropic 文档指出,Fable 5.2 对提示词中关于代码归属的表述很敏感:若提示词不提所有权或称代码库属于他人,模型倾向于在现有结构上追加代码,即使会重复已有代码;而若写明“这个代码库是你的,用途和结构由你决定”,模型在小编码任务测试中约一半的尝试会主动合并重复代码,不写该句时则不到十分之一。Willison 称这一技巧可让模型在改进现有代码时减少过度谨慎。目前事件仅为该技巧的分享与引述,Anthropic 文档为原始出处,暂无后续进展或争议报道。

其他来源的报道 1