Google has added a way to change an AI agent’s rules halfway through a conversation without forcing the model to re-read everything said so far. The feature, called mid-conversation instructions, entered public preview on 3 December in the Gemini API’s Interactions API, according to a post on Google’s blog by Trey Nguyen, a Gemini API product manager, and Daniel Kyme, a Google Cloud product manager.
Two terms explain why this matters. System instructions are the standing orders a developer gives a model before a chat starts: its role, its limits, its tone. The prompt cache is short-term storage on the provider’s servers that holds the already-processed opening of a conversation, so the model does not process it again on the next turn. Reuse is cheaper and faster. Break the cache, and the model must work through the whole history from scratch, which adds both cost and delay on every long session.
That penalty bites agents hardest. An agent may run dozens or hundreds of turns, and permissions shift along the way. Until now, Google says, developers had two imperfect options. They could tuck new rules into a user message, which keeps the cache but carries less authority than true system instructions and lets end users try to imitate them. Or they could rewrite the system instruction or tool list, which wipes the cache.
The new route is a step type called system_input. A developer places it just before the user’s message in a given turn. Google says it ranks equal to the main system instruction and above user messages, and earlier turns stay cached because everything before the new step is unchanged. Each system_input keeps applying until the session ends. Rules on different topics stack, and when two conflict, the model favors the newer one. Retrieved interactions list every step in order, which Google says makes agent traces easier to audit.
Tools work differently. Tool definitions are placed first in the prompt, so editing the main tools list would break the cache. Google recommends keeping that list identical on every turn and using added_tools and removed_tools inside a system_input step. In its example, a support agent loses a refund function and gains an escalation-ticket function once an account goes under billing review. Removals are processed before additions, so a definition can be swapped in place. Only function tools are supported. MCP server tools are not.
Pricing is simple. Google charges no separate fee and bills system_input text like any other input to the model being called. Turns before the change still qualify for the discounted cached rate, even after rules or tools shift. The preview covers all Gemini 4 models in the Interactions API through the v1beta endpoint, and Google lists support for Gemini Enterprise Agent Platform as coming soon.
Google also warns that these controls steer the model; they are not a security boundary. Applications should check permission for each function call on the server before running it, and never route untrusted outside text or anything typed by end users into system_input. A tool removed from the list is an instruction to the model, not a lock on the backend.
The post publishes no savings figures. How much a team gains depends on how often an agent’s rules change and how long its history runs, so support and operations agents with frequent permission switches are the first workloads worth measuring against their current cache-reset bills.
Reported by Google on its blog, in a post by Trey Nguyen and Daniel Kyme, on 3 December 2026.