Prompt caching correctly — the variable input goes LAST — step 5 of 9
You're marking the system prompt as cacheable. The Anthropic
default TTL changed from 1 hour to 5 minutes in March 2026, so
always pass ttl explicitly. Fill in the cache_control value
for a 1-hour cache.
Expected output:
{'type': 'ephemeral', 'ttl': '1h'}
⌘↵ runs the editor.read, then continue.
Prompt caching correctly — the variable input goes LAST — step 5 of 9
You're marking the system prompt as cacheable. The Anthropic
default TTL changed from 1 hour to 5 minutes in March 2026, so
always pass ttl explicitly. Fill in the cache_control value
for a 1-hour cache.
Expected output:
{'type': 'ephemeral', 'ttl': '1h'}
⌘↵ runs the editor.read, then continue.