Gemini Can Now Change Its Own Rules Mid-Conversation
Google just shipped mid-conversation system instructions in the Gemini API. For designers building AI-powered apps, it means your assistant can shift behaviour, swap tools, and enforce new rules without losing its memory or costing you more.
Gemini Can Now Change Its Own Rules Mid-Conversation
Google just shipped mid-conversation system instructions in the Gemini API, now available in public preview. The short version: an AI assistant built on Gemini can now receive new rules or swap out its available tools partway through a session, without forgetting everything that came before.
That might sound like a developer detail. It is not. It quietly solves one of the most frustrating limits in building conversational AI products.
Why This Was Such a Headache Before
If you have been prototyping any kind of multi-step AI tool, you have probably bumped into this. You set up your assistant with a system instruction at the start, something like "you are a friendly onboarding guide, only discuss pricing plans." Then a user authenticates, or selects a tier, or triggers some condition, and suddenly you need the assistant to behave differently. Maybe it should now be able to process a refund, or stop showing certain options.
Until now, your two options were both bad. You could slip the new instruction into a regular user message, but the model treats those with less authority than proper system instructions, and users could potentially mimic or override them. Or you could rewrite the whole system instruction from scratch, which forces the model to reprocess the entire conversation history. That reprocessing adds latency (the user waits longer) and cost (you pay for every token again).
The new system_input feature in the Interactions API fixes both problems. You can inject a new instruction at any turn, it carries the same authority as your original setup, and all the conversation history before that point stays cached. No re-reading, no extra cost for prior turns.
What This Actually Unlocks for Your Builds
The practical uses here are more interesting than the technical fix. Consider a few real scenarios.
Gating features behind actions. Say you are building a customer support assistant. It starts in read-only mode: it can look up orders, check store hours, answer questions. Once a user confirms their identity, you can add a refund tool and remove the restriction. Before this update, that kind of dynamic permission required rebuilding the whole prompt. Now it is a single system_input step that swaps issue_refund in and get_store_hours out, mid-session.
Keeping tone and rules alive in long sessions. Context windows are large but not infinite in their influence. As a conversation grows, early instructions can fade in weight. With mid-conversation instructions, you can re-emphasise key formatting or tone rules deep into a session without starting over.
Reacting to real-world events. If a downstream service goes offline, you can disable the relevant tool and add a note explaining why that action is temporarily unavailable. When the service comes back, you restore it. All of this happens without the user ever needing to start a new chat.
For anyone building vibe-coded projects with AI, this is the kind of control that makes an assistant feel genuinely responsive rather than rigidly scripted from the first message.
The Practical Details Worth Knowing
A few things to keep in mind before you dive in.
The feature works across all Gemini 4 models through the Interactions API, currently on the v1beta endpoint. Standard input token rates apply to system_input steps, but crucially, earlier turns in the conversation still qualify for cached-token rates. So the cost story is actually better than the old workarounds.
One current limit: mid-conversation tool updates only work with standard function tools. MCP server tools are not yet supported. If your build relies on MCP, you will need to wait for that to land.
There is also a sensible security note in the documentation worth repeating: system_input controls model behaviour, but it does not replace backend authorization. Your app should still verify every function call on the server side before executing it, and you should keep untrusted user content well away from system_input. Giving the model permission to do something is not the same as actually authorising it in your system.
The Takeaway
Mid-conversation instructions are a quiet but meaningful step toward AI assistants that can adapt to context the way a real conversation does. The obvious use cases are gating tools behind authentication and enforcing rules that only make sense partway through a flow. Both of those have been awkward to build cleanly until now.
The feature is in public preview, which means the API shape could still change before it is fully stable. But if you are prototyping anything with multi-step logic, branching permissions, or long sessions, it is worth reading through the documentation now. The mental model it asks you to adopt, instructions as a living layer that grows alongside the conversation rather than a fixed header, is a useful one to get comfortable with early.
Sources
About VibeLab
VibeLab is a community for vibe coders. Discover vibe coded projects from around the globe, and post and host your own.