In short.
This Anthropic guide helps developers change instructions and tools during Claude conversations, but strict message placement and beta requirements complicate integration. Its central technique preserves earlier cached input by appending changes instead of rewriting the beginning of a request. Standard mid-conversation system messages are documented as stable; tool changes and turn-scoped messages are beta features. Actual savings and runtime behavior are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete selected documentation page at [https://platform.claude.com/docs/en/build-with-claude/mid-conversation-system-messages.md], including its examples, beta notices, placement rules, limitations, availability tables and data-handling statements. Linked pages covering caching, MCP, effort, pricing, retention and model-specific guidance are excluded. No examples or API requests were executed; runtime behavior, compatibility and actual savings remain untested.
The overview
identity
The resource is Anthropic’s documentation page titled Mid-conversation system messages and tool changes, available at [https://platform.claude.com/docs/en/build-with-claude/mid-conversation-system-messages.md]. It teaches a Claude API capability rather than providing a standalone application or downloadable library.
The main implementation uses system-role entries inside the Messages API messages array. The page also distinguishes Managed Agents, where a system.message event applies to the current and later turns while the agent’s own system field remains fixed during a session.
assessment
The guide is particularly useful for long conversations that acquire new operator instructions or tool capabilities after they begin. It explains how to make those changes without rewriting earlier input that may already be cached.
Its practical strength is specificity: request examples, beta headers, placement rules and validation errors accompany the explanation. The benefit is conditional, however. Preserving an unchanged prefix does not itself enable caching, and the page supplies no benchmark or measured cost reduction.
users
The intended readers are developers building Claude chat applications, coding assistants and agents that alternate between model responses and tool results. Relevant situations include changing session rules, introducing a newly discovered tool, withdrawing an existing tool and supplying temporary reminders.
Beginners receive an explanation of caching and instruction priority, while experienced developers get request schemas and examples across cURL, CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby. Applying the material still requires understanding API requests and conversation history.
capabilities
A mid-conversation system message introduces operator instructions from its position onward. The page states that later system messages take precedence over earlier ones, including the top-level system field, for subsequent turns.
Beta tool_addition and tool_removal blocks change which tools are offered to the model. They can reference previously declared tools, expose tools withheld with defer_loading, or re-offer removed tools. With the inline-tools beta, an addition can instead carry a complete tool definition or replace an earlier definition under the same name.
Further capabilities include adding an MCP server’s toolset and making text instructions expire after the next user message through clear_at. The page also mentions beta changes to output_config.effort, but delegates their detailed behavior to another page.
Using it
requirements
The listed models are Claude Fable 5.2, 5.1 and 5; Claude Mythos 5.2, 5.1 and 5; Claude Opus 5.5, 5 and 4.8; Claude Sonnet 5.5; and Claude Haiku 5.5. Claude Sonnet 5 is explicitly unsupported. Provider-specific model availability differs: the bedrock-runtime row includes Mythos 5.2 but omits Mythos 5.1 and 5, while the separate Amazon Bedrock row omits Fable 5.2 and Mythos 5.2.
The page lists support across the Claude API, Claude Platform on AWS, both Anthropic-managed and Google-managed Claude offerings on Google Cloud, Microsoft Foundry and Amazon Bedrock. For bedrock-runtime, support is through InvokeModel only, not Converse.
Tool changes require inline-tools-2026-09-15 or mid-conversation-tool-changes-2026-07-01. The inline-tools header supports full definitions and is listed for the Claude API, Claude Platform on AWS, Anthropic-managed Google Cloud and Microsoft Foundry. The older header also covers Google-managed Google Cloud and Amazon Bedrock, but supports references rather than full definitions.
Turn-scoped messages require mid-conversation-system-clear-at-2026-08-21. Adding an MCP toolset by definition additionally requires mcp-client-2026-09-15, subject to connector availability. Exact minimum compatible SDK versions are not supplied.
mechanism
Prompt caching processes the request prefix in the order tools, system, then messages. Reusing cached input requires an exact match to a recent cached prefix up to its breakpoint. Editing the initial tools array or system field changes that prefix; appending a system message after it preserves the earlier bytes.
Caching must be enabled through cache_control, using automatic caching or an explicit breakpoint, and the prompt must meet the minimum cacheable length. A persistent system message can itself become part of the cached history on later requests.
With clear_at set to next_user_message, the instruction stops rendering once a later user message exists, including one containing only tool results. It then contributes no input tokens, but its original entry remains in history. Editing or deleting earlier messages can also invalidate later thinking blocks on the models identified by the page.
setup
Choose a supported model and platform, keep conversation-wide instructions in the top-level system field, and enable cache_control if preserving cached input is the goal. Append the new system message after a user turn, including a turn delivering tool results, before the next assistant response.
Declare known tools in tools from the start. Use defer_loading: true to withhold a known tool until a later tool_addition reference. Use full inline definitions for tools that were unknown initially or whose definitions change later. The guide recommends keeping at least one non-deferred tool in tools to avoid the documented initial cache miss associated with introducing the first inline tool.
For MCP additions, keep connection URLs and tokens in mcp_servers rather than the addition block. Preserve returned mcp_tool_listing blocks in subsequent assistant history and continue sending the MCP beta header. The cURL examples use anthropic-version: 2026-10-21; the page does not establish a minimum API version.
example
The page’s code-review example begins with a concise reviewer instruction in the top-level system field. After an earlier exchange and a new user request, the application appends a system message requiring explicit type annotations in every subsequent suggestion. With caching enabled and its other requirements satisfied, the earlier history remains eligible for reuse.
Its tool examples first declare get_weather, then withdraw it through a tool_removal reference. Another example preserves that initial tool and introduces db_query through a tool_addition carrying a complete definition. The displayed tool_use response illustrates the expected response shape; it does not establish that a database query was executed.
Assessment & evidence
limitations
A system message carrying content cannot be the first message. It must follow a user turn or an assistant turn ending in a server tool result, then precede an assistant turn or end the array. It cannot interrupt a tool_use and its corresponding tool_result. Consecutive system messages are validated as a group. Tool changes cannot immediately follow a paused assistant turn; that turn must be resumed first.
Turn-scoped messages support text only, without tool changes, output_config or block-level cache_control. Cleared entries must be resent verbatim. An assistant turn must separate the system message from the later user message that clears it.
Inline definitions cannot define computer-use or browser-use tools during the beta. Unresolved references and incompatible tool-name reuse produce errors. Limits include 10,000 available deferred tools, 10,000 available tools defined after the first user message, 4,194,304 bytes of still-available definitions introduced after that message, and 4,194,304 bytes of rendered tool text.
For user input arriving after tool results on Sonnet 5.5 and Haiku 5.5, the page specifies a text block after the tool results in the same user message. Those models may ignore a system message in that position as untrusted. Application notices should remain separate from the user’s words.
reasoning
The engineering implication is to separate stable conversation setup from changes discovered later. Durable instructions belong at the beginning; later operator facts and constraints can be appended. This follows from the documented cache ordering and instruction-priority rules, rather than from measured performance results.
That priority also creates a trust boundary. The page explicitly warns against putting retrieved documents, web content or raw tool output into system messages because doing so gives external text operator-level authority. Such material belongs in tool_result blocks. This distinction matters when applying the guide to agents that read outside sources.
alternatives
The top-level system field remains the documented choice for instructions that apply from the start, and the fallback on Claude Sonnet 5. Editing it later changes the cache prefix. A regular user message can carry instructions, but has end-user priority rather than operator priority.
For known tools needed only later, defer_loading plus a reference addition avoids introducing their definitions inline. Persistent system messages suit lasting changes; clear_at suits temporary text reminders. The page does not compare these approaches with other vendors or frameworks.
evidence
The evidence is the complete supplied Anthropic documentation page at [https://platform.claude.com/docs/en/build-with-claude/mid-conversation-system-messages.md]. It includes explanatory text, request examples, response illustrations, validation errors, availability tables and data-handling notes.
These support descriptions of documented behavior, not independent proof of runtime correctness. No code or API requests were executed. Cache-hit rates, instruction adherence, provider compatibility and security behavior were not tested. Linked documentation was not included.
Access & freshness
costs
Exact API prices, cache pricing, provider charges and workload savings are unknown from this page. It states that without cache_control, every request pays the regular input-token price for the full conversation.
Even with caching enabled, prompts below the minimum length have zero cache-creation and cache-read tokens. The threshold itself is not given here. Introducing the first tool by value when no non-deferred tool exists also incurs one full cache miss under the documented exception.
Cleared turn-scoped instructions consume no input tokens on later requests, but remain in the transmitted history. No cost measurements or API executions are available.
rights
The supplied page does not state a licence for redistributing its documentation or code examples. Reuse and redistribution permissions therefore remain unknown.
The page describes mid-conversation system messages as eligible for zero data retention, excluding Covered Models, and for HIPAA readiness. These are eligibility statements rather than confirmation of a particular deployment’s arrangements. Requests using the MCP connector retain its separate data-retention terms, whose details are outside this page.
freshness
The supplied page was captured on 25 November 2026 at 04:53:06.357 UTC. It describes standard mid-conversation system messages as stable and tool changes and turn-scoped messages as beta.
The dated beta headers identify the interfaces documented in that capture. They do not establish the page’s last-edit date or guarantee later compatibility. Subsequent model availability, beta changes and SDK requirements are unknown.
actions
Before adopting the technique, confirm the exact model, provider endpoint and required beta headers. Decide whether each change should persist, expire at the next user message, reference an existing tool or introduce a new definition.
For a representative application conversation, inspect cache_creation_input_tokens and cache_read_input_tokens rather than assuming a cache hit. Check placement errors, preservation of cleared messages, tool removal and schema replacement, and the documented Sonnet 5.5 and Haiku 5.5 handling of incoming user text. These are recommended validation steps, not completed tests.
Keep external source content out of system messages, and establish applicable licensing and data-handling terms before relying on redistribution or retention eligibility.
