Skip to content
Trending storyWatching

Claude Fable 5.2 code-ownership prompt affects refactoring

1 report1 sourceupdated 2 days ago

What happened

AI digest

Simon Willison cites Anthropic documentation on a prompting trick for Claude Fable 5.2 in small coding tasks. The model adjusts its edits to how the prompt describes code ownership: when ownership is unstated, or the code is described as someone else's, it tends to keep existing structure even if that produces duplicate code. Telling the model the codebase is its own, to shape and maintain, raised the share of duplicate code merged to about half in the cited tests, versus under a tenth without it.

Written by AI from the coverage · updated 2 days ago

Coverage

Follow the reports to see the story from different sides.

Nov 10
  1. Simon Willison
    Quoting Prompting Claude Fable 5.2

    Anthropic 文档指出,Claude Fable 5.2 在小型编码任务中会根据提示词中的代码归属描述调整修改方式。未说明归属或将代码描述为他人所有时,模型倾向于沿用现有结构,即使造成代码重复。Simon Willison 引用的文档建议明确告诉模型代码库属于它、用途和结构由它决定且将持续维护;测试中使用这一提示后,合并重复代码的比例约为一半,未使用时不足十分之一。

Heat over time

Heat now 3·Comparable peak 10(Nov 10 14:00)·Comparable change over 24 hours -49%

02.557.510Nov 1014:00Nov 1105:00Nov 1119:00Nov 1210:00

The trend only compares accounts observed without gaps, so its range may be smaller than the current heat. Hover or tap the chart for each hour; the left and right arrow keys step through it.