Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.246 Home All releases olderv2.1.245 v2.1.247newer
Claude Code v2.1.246

Detection of gateways that strip cache markers

You'll notice
Useful3 Signal4
Telemetry

Claude Code now spots when a gateway or custom base URL is silently killing your prompt caching.

What

For providers reached through a gateway or a custom base URL, three consecutive turns of 20,000-plus input tokens with no cache read and no meaningful cache creation now report a cache_coverage_loss outcome, the signal that something between Claude Code and the model is dropping the cache markers.

Details
  • Reported under the new api_prompt_cache_coverage event, which did not exist in 2.1.245.
  • Fires once per conversation; the first turn that does show cache activity sends a one-shot confirmation instead.
  • Not behind any flag, but limited to non-first-party or custom-endpoint setups.
Evidence

api_prompt_cache_coverage

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.246 →