Anthropic Capability minor

Prompt caching reads the longest previously cached prefix automatically

Setting a cache breakpoint now automatically reads from your longest previously cached prefix, so you no longer have to place breakpoints defensively. Assistant prefill is also allowed when using tools.

What does this mean for me?

  • Engineering leadership

    Cost, risk, timeline, team impact Worth knowing

    Cache hit rates improve on long multi-turn workloads with no migration cost, which trims input spend slightly. No roadmap impact.

  • Engineer

    What to change, what breaks, what to test Worth knowing

    You can drop defensive extra `cache_control` breakpoints — one breakpoint now reads from your longest cached prefix. You can also send an assistant-role prefill as the final message while `tools` is present, which used to be rejected.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is an API-only change and does not affect the Claude apps.

Before this change, a cache read only hit when a breakpoint lined up with a previously written prefix, which pushed developers toward placing several cache_control breakpoints to hedge. After it, one breakpoint is enough: Anthropic looks backwards from it and reads the longest prefix it already has cached.

The same note added the ability to put words in Claude’s mouth — an assistant-role prefill as the final message — while tools are in play. That combination had previously been rejected.

Both are additive; existing requests keep working. The practical effect is fewer breakpoints to manage and higher hit rates on conversations that grow turn by turn.

API surface

ParameterChangeBreakingModels
cache_controlchangedno
assistant message prefill with toolsaddedno

Terms on this page: Prompt caching

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person