News ·
Quoting Prompting Claude Fable 5.2
Anthropic's Claude Fable 5.2 changes its refactoring behavior based on whether a prompt frames the codebase as the model's own; adding an ownership sentence raised code consolidation from under 10% to about 75% of runs.
Anthropic has documented that Claude Fable 5.2 responds closely to what a prompt says about who owns the code it works on. In the company's testing on small coding tasks, when the 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 duplicated existing code. When the prompt said the code base was the model's own, it often consolidated duplicated code and sometimes made related fixes without being asked.
Simon Willison quoted the Anthropic documentation on his blog. To get the model to improve structure as it works, the documentation recommends saying the code is its own, with an example sentence: "You are the owner and long-term maintainer of this codebase, and its design is up to you." The ownership sentence makes the model much more likely to consolidate duplicated code into one shared function. In Anthropic's testing on small coding tasks, the model consolidated duplicated code in under 10 percent of runs without the sentence and in about 75 percent of runs with it.
For anyone building with AI coding agents, this is a cheap prompt-level lever on code quality: how you frame ownership directly shapes whether the model refactors or just appends. A single sentence about ownership can turn duplicated code into a shared function most of the time, so it is worth adding to system prompts or task instructions where maintainability matters.
References
- Simon Willison · simonwillison.net
Read the full story at Simon Willison ↗Like, save or discuss on Buzz


