ProductsSelected

Gemini API adds mid-conversation system instructions

Why we picked it

Cached-earlier-turns is the quiet detail here: instruction changes no longer invalidate the context cache, so dynamic agent control comes without a latency or cost penalty. Builders of long-running agents and IDE-style assistants are the natural audience, especially those wiring MCP servers that appear or disappear mid-session. Teams evaluating Gemini 4 Carbon, Neon or Hydrogen against Claude or OpenAI agent stacks now have a concrete differentiator to test in preview.

Google has rolled out mid-conversation system instructions in the Gemini API, announced by developer advocate Philipp Schmid on X. The feature introduces a new system_input step that lets developers change system instructions or add and remove tools at any turn of a conversation, while earlier turns remain cached.

Image · Philipp Schmid
Body

The update enables several new workflows: steering agents mid-session with system-instruction authority (for example moving from plan to build), attaching tools on demand such as newly added MCP servers, unlocking tools after a user signs in (like email write access), removing a tool during an outage and re-adding it later, and applying limits discovered mid-session. Because prior turns stay cached, changing instructions does not force re-processing of the whole conversation, which keeps latency and token costs down.

The feature is available in preview on Gemini 4 Carbon, Neon and Hydrogen models. Mid-session tool and instruction mutation addresses a common agent-building pain point, where developers previously had to restart sessions or accept stale instructions when context changed mid-run.

Original · Philipp Schmid

We just rolled out mid-conversation system instructions in the Gemini API 🚀 We added a new system_input step that allows you to change instructions or add/remove tools at any turn, while earlier turns stay cached. You can now - Steer agents mid-session with SI authority (plan → build) - Add tools on demand, like newly added MCP servers. - Add and Unlock tools after a user signs in, e.g. write email - Remove a tool during an outage, then adding it back - Apply limits found mid-session Preview on Gemini 4 Carbon, Neon & Hydrogen.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Gemini API, MCP and tools, agents, prompt cache.

Source attribution: curated from Philipp Schmid (@_philschmid).

Spotted an error in the summary or translation? Tell us