Business Vifan Raises Hundreds of Millions for a Chip That Fuses a Robot Brain and Spine Productivity MagicPath Launches Juice-1, a 27B Model Trained to Judge Design Taste News Gestalt Raises Over 300 Million Yuan for Ultrasound Brain Interface Aiming at Global First Approval Chatbots OpenBMB MiniCPM5 Scores 123/126 on a Math Olympiad and Runs at 52 Tokens a Second on an iPhone Business Sensor Tower Data Shows X Users Now Spend Nearly 40 Percent More Time in the App Than at the Start of 2026 Productivity Automattic Acquires Miles, an AI Design Agent for WordPress, From a 17-Year Veteran AI Agents Emergent Launches a Google Ads Agent as Vibe-Coding Platforms Move Into Ad Operations Microsoft Copilot Satya Nadella Vibe-Coded a Native Windows 11 App With a 53GB Local Model - and It Picked a 2002 Framework Business Vifan Raises Hundreds of Millions for a Chip That Fuses a Robot Brain and Spine Productivity MagicPath Launches Juice-1, a 27B Model Trained to Judge Design Taste News Gestalt Raises Over 300 Million Yuan for Ultrasound Brain Interface Aiming at Global First Approval Chatbots OpenBMB MiniCPM5 Scores 123/126 on a Math Olympiad and Runs at 52 Tokens a Second on an iPhone Business Sensor Tower Data Shows X Users Now Spend Nearly 40 Percent More Time in the App Than at the Start of 2026 Productivity Automattic Acquires Miles, an AI Design Agent for WordPress, From a 17-Year Veteran AI Agents Emergent Launches a Google Ads Agent as Vibe-Coding Platforms Move Into Ad Operations Microsoft Copilot Satya Nadella Vibe-Coded a Native Windows 11 App With a 53GB Local Model - and It Picked a 2002 Framework

Gemini API Can Now Change System Instructions Mid-Conversation Without Wiping the Prompt Cache

Gemini API Can Now Change System Instructions Mid-Conversation Without Wiping the Prompt Cache

Google opened a public preview of mid-conversation instructions in the Gemini API via a system_input step in the Interactions API. Developers can update system instructions and add or remove function tools mid-session while earlier turns stay cache hits. The step ranks with the top-level system instruction and outranks user messages, works across all Gemini 4 models, and carries no separate charge beyond standard input token pricing.

Google shipped a public preview of mid-conversation instructions in the Gemini API, letting developers update system instructions and swap tools while a conversation is already underway, without invalidating the prompt cache. The feature lands through a system_input step in the Interactions API, Google's unified stateful interface for Gemini models and agent workflows.

The problem it solves is structural. Before this change, developers who tucked new rules into a user message found that those instructions carried less weight than the top-level system instruction and could even be imitated by the user text, a prompt-injection hazard in its own right. Rewriting the actual system instruction or replacing the tool list mid-session worked, but it invalidated the prompt cache, forcing the model to reprocess the entire conversation history and driving up both latency and cost on every long session.

The new step threads the needle. A system_input instruction ranks at the same level as the top-level system instruction and takes precedence over user messages, so it cannot be talked down by later user text. Everything before the update stays a cache hit, so only the new instruction and subsequent turns are processed fresh. On the tool side, developers keep the top-level tool list intact and use added_tools and removed_tools to add or drop function tools during the session, with the change persisting until the next modification.

Availability is broad. Google says the feature is in public preview across all Gemini 4 models, carries no separate charge, and tokens flowing through it are billed at standard input prices. That pricing choice matters for agent builders, whose instinct under the old regime was to avoid touching instructions mid-run precisely because of the cache-blowing cost.

The practical beneficiary is the long-running agent. Real agent sessions change state: a support agent escalates to a human-supervision mode, a research agent gains a web tool halfway through, a coding agent switches rule sets when it moves from planning to execution. Until now each of those transitions either risked diluted instructions or paid a full-history reprocessing tax. Removing that trade-off makes dynamic control a default design choice rather than an optimization someone remembers to skip.

Google is also converging with competitors on agent-runtime ergonomics. Anthropic added mid-conversation effort control to the Claude API so agents can dial reasoning spend up and down mid-task, and both vendors are pushing stateful, server-side session management. The API layer is quietly becoming the battleground where agent platforms are won, on cache economics, instruction precedence and tool governance rather than on raw model scores.

Comments (0)

Log in to join the discussion

Log In

No comments yet