Turn-scoped system messages enter beta with clear_at
Set clear_at: "next_user_message" on a mid-conversation system message and it renders for the current turn only, then stays in the history at no token cost. Needs the mid-conversation-system-clear-at-2026-08-21 beta header on Claude Fable 5.1, Mythos 5.1, Fable 5, Mythos 5, Opus 4.8, and Opus 5.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingPer-turn reminders in agent loops no longer accumulate tokens or break the prompt cache, so long-running agents get slightly cheaper and more reliable on Fable 5.1, Fable 5, Opus 4.8, and Opus 5. Beta; nothing to decide.
Engineer
What to change, what breaks, what to test Worth knowingWith the mid-conversation-system-clear-at-2026-08-21 beta header, append a role: system message with clear_at: "next_user_message" after each tool_result and leave earlier copies in place; cleared copies cost zero tokens. Content is text only, no cache_control, and on claude-fable-5-1 this is the safe way to add reminders without failing the thinking-block prefix check. Not on Sonnet 5.
General consumer
Using the Claude apps, not the API No impactNothing to do. This is an API beta and does not affect the Claude apps.
A role: "system" message inside messages can now carry a clear_at field. "never" (the default) renders the message on every request that includes it. "next_user_message" makes it turn-scoped: its text renders only while no later role: "user" message exists, and a user message that holds only tool_result blocks counts. Once a later user message exists the message is cleared: it stays in the array but renders nothing and adds nothing to input_tokens or to a token count, on that request and every later one.
The intended use is a per-turn reminder in a tool loop (“check your inbox before running more code”). Append it after each tool_result message and leave every earlier copy in place; the model sees only the copies after the last user message, so reminders never pile up, nothing earlier changes, and the prompt cache keeps matching. On Claude Fable 5.1 this is also how to avoid the new thinking-block prefix check, which a deleted reminder would fail.
Rules: re-send cleared messages verbatim; content is text blocks only, so tool_addition, tool_removal, and output_config on a turn-scoped message return a 400; no cache_control on its blocks; the usual placement rules still apply, so a turn-scoped message followed directly by another user message is a 400; and a prefilled or paused assistant turn does not clear it. Without the beta header, clear_at is rejected as an unknown field (Extra inputs are not permitted).
Availability matches mid-conversation system messages: Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 4.8, and Claude Opus 5, on the Claude API, Claude in Amazon Bedrock, and Google Cloud. Claude Sonnet 5 does not support mid-conversation system messages at all.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
messages[].clear_at (role: system) | added | no | claude-fable-5-1 claude-mythos-5-1 claude-fable-5 claude-mythos-5 claude-opus-4-8 claude-opus-5 |
mid-conversation-system-clear-at-2026-08-21 (beta header) | added | no |