Quoting Prompting Claude Fable 5.2

Claude Fable 5.2 pays close attention to who owns the code it works on. In Anthropic’s testing on small coding tasks, the model tended to add to the existing structure when the prompt said nothing about ownership or presented the code base as someone else’s, 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.

If you want the model to improve the structure as it works, say that the code is its own:

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.

— Prompting Claude Fable 5.2, Anthropic documentation

Tags: prompt-engineering, anthropic, generative-ai, ai, llms, claude-mythos-fable

This article has been indexed from Simon Willison’s Weblog

Read the original article:

Quoting Prompting Claude Fable 5.2