Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.292 ·

Hooks can use prompt caching when calling the model

Hooks calling $.model.complete can now pass promptBlocks and systemBlocks and mark blocks with cache: true for prompt caching

Use it now New Features
JSON All of v2.1.292
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.292,
What probably matters to youSection of the release
What

Hooks are your own scripts that Claude Code runs at set points. A hook that asks the model a question through $.model.complete can now pass promptBlocks and systemBlocks instead of a single plain text prompt and system message. Each block is { text } and can also include cache: true.

  • Blocks marked cache: true are sent as cacheable blocks. Caching lets a repeated part of a prompt be reused instead of processed again.
  • If caching is disabled, Claude Code drops those cache markers.
  • Badly shaped input is rejected with specific error messages.
Why

Hook authors who send the same long text again and again can use prompt caching.

Read from
Names in the bundlepromptBlockssystemBlocks
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up systemBlocks, on Use the mods API. * **`e.promptBlocks` and `e.systemBlocks`**: the caller's arrays, each present when the caller passed an array for that field plugins/mods/api see the edit
Confirmed since Anthropic's documentation has since written up promptBlocks, on Use the mods API. * **`e.promptBlocks` and `e.systemBlocks`**: the caller's arrays, each present when the caller passed an array for that field plugins/mods/api see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up promptBlocks, on Use the mods API.
Anthropic's release notes agreeAdded prompt caching to $.model.complete for mods: prompt and system take blocks of text, and cache: true on a block caches the request up…

See this entry in the whole of v2.1.292 →

Feedback