Comment by elpakal
11 hours ago
From the changelog:
Whole-file rewrites for small changes. When editing text files, the model is more likely to rewrite the entire file than make a targeted edit. The result is usually the same, but the rewrite costs more output tokens and time.
So we are to catch that somehow? And then add their recommendation (below) to our prompts?
https://platform.claude.com/docs/en/build-with-claude/prompt...
If Claude Fable 5.1 rewrites whole files for small changes, append the following instruction to the system prompt or the first user message. Claude Fable 5.1 is more likely than Claude Fable 5 to rewrite an entire text file rather than make a targeted edit. The resulting file is usually the same, but unless the file is short or most of it is changing, a rewrite costs more output tokens and time. The instruction brings Claude Fable 5.1 back in line with Claude Fable 5 for small and medium changes.
> The number of tokens used to edit files is best minimized, all else being equal. Therefore, when it will not affect the end result, try to surgically edit a file rather than rewrite the entire thing.
That's actually kind of wild. I wonder if part of this was done to catch out people using 3rd party harnesses, users might notice them costing more than Claude Code.