AIToday
Large Language ModelsAI Coding AssistantsSimon Willison's WeblogPublished: Nov 10, 2026, 16:00 JST

Claude Fable 5.2 merges duplicate code in half of tries with ownership prompt

Send on LINE
Claude Fable 5.2 merges duplicate code in half of tries with ownership prompt

3 Key Points

  1. What happened

    Anthropic's testing on small coding tasks showed that when a prompt said nothing about ownership or framed the code as someone else's, Claude Fable 5.2 tended to add to the existing structure, even repeating existing code.

  2. Why it matters

    In the same testing, telling the model "This codebase is yours" led it to merge repeated code in about half of tries, versus under a tenth without the sentence — a prompt tweak that appears to shift a default behavior for teams using it on shared code.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

Anthropic's documentation describes a default behavior in Claude Fable 5.2: when a prompt is silent on ownership or frames the codebase as someone else's, the model tended to extend the existing structure rather than restructure it, even when that meant repeating code. That default can leave duplicated logic in place, which the testing linked to prompts that gave the model no stake in the code.

The suggested workaround is a short ownership statement — "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, that sentence coincided with the model merging repeated code in about half of tries, compared with under a tenth when it was absent. The gap suggests prompt framing alone can move whether the model cleans up duplication.

FAQ
What sentence made Claude Fable 5.2 merge repeated code more often?
Anthropic suggests telling the model: "This codebase is yours: what it's for and how it's built are your call, and you'll keep building on it."
How much more often did the model merge repeated code with that sentence?
In Anthropic's testing on small coding tasks, it merged repeated code in about half of the tries with the sentence, versus under a tenth of the tries without it.
Simon Willison's WeblogRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleClaude Fable 5.2 takes #1 LLM spot at 65 on Artificial Analysis