Simon Willison 引述 Anthropic 的 Claude Fable 5.2 提示詞測試
Quoting Prompting Claude Fable 5.2
Anthropic 在小型編碼任務中測試 Claude Fable 5.2,發現提示它把程式碼庫視為自己的時,模型更常合併重複程式碼。包含這句提示時,約一半嘗試會合併重複程式碼;沒有這句時則少於十分之一。
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 · simonwillison.net