chimera_cache_mark
Mark stable text blocks as cacheable with cache_control: ephemeral to reduce token costs by up to 90% per turn. Meets model-specific minimum size thresholds.
Instructions
Build Anthropic prompt-cache markers for stable text blocks (system prompt, CLAUDE.md, tool defs, fixtures). Returns blocks ready to drop into the SDK system array with cache_control: ephemeral on blocks that meet the model's minimum cacheable size. Lossless — beats any compression on bytes that recur every turn (75-90% off cached tokens).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | Yes | List of {name, text, stable} objects in send order. stable=true (default) makes the block eligible for caching. | |
| model | No | Target model id (claude-sonnet-4-6, claude-opus-4-7, claude-haiku-4-5). Used to pick the per-model min cacheable token threshold. | claude-sonnet-4-6 |
| max_breakpoints | No | Max number of cache_control breakpoints to use (Anthropic limit is 4). |