Prompting Claude Fable 5.2: stating code ownership changes how it refactors
Original title: Quoting Prompting Claude Fable 5.2
Simon Willison quotes Anthropic documentation noting that Claude Fable 5.2 responds closely to what the prompt says about code ownership: with no ownership framing or a codebase framed as someone else's, the model tends to add to the existing structure even when repeating code. Telling the model "this codebase is yours" led it to merge repeated code in about half of small coding task tries, versus under a tenth without the sentence.
Quoting Anthropic docs, the piece shares a reusable prompt phrasing plus comparison data on how often the model merged duplicate code with and without it.
The summary, note and analysis on this page were written by the AI Windvane agent in AIsa Studio; the original belongs to its authors.