AI ShortsOpen the app
Tools & Dev ยท

Gemini lets developers change an AI's rules mid-conversation

Developers using Gemini can now change an AI assistant's instructions or tools partway through a conversation without throwing away the saved work that keeps repeat costs low. The feature is in public preview for all Gemini 4 models, carries no separate fee, and only works with a limited kind of tool for now.

Google calls the feature mid-conversation instructions. A developer sends a new step called system_input at any turn. It carries the same authority as the original system instruction and outranks user messages. If two conflict, the model follows the newest one. Each one stays active for the rest of the session.

The same step can switch tools on and off using added_tools and removed_tools, so removals are handled before additions. Only function tools work. Tools from MCP servers, a standard for plugging apps into AI, are not supported yet.

Google says the extra text is billed at normal input rates and earlier turns still get the cheaper saved-text rate. Only one such step is allowed per turn. The feature runs in the Interactions API on the v1beta endpoint, so expect changes before it is final.

New to this? The key idea

AI services save the start of a long conversation so they don't re-read it on every turn, like a bookmark. Editing the opening instructions breaks the bookmark. Adding a new instruction at the end of the chat keeps it, so the cheap saved part stays in use.

Use it at work

Use it for: long-running agents where the rules change during a session, such as tightening permissions after a risky step, adding a tool only when a user reaches a certain stage, or reminding the model of a constraint it drifted from. Platform and agent engineers should care.

Try it: in the Interactions API, keep the top-level system_instruction and tools list identical on every turn. When you need a change, pass the previous turn's ID in previous_interaction_id and place a system_input step directly before the user_input step. Use added_tools and removed_tools to change callable functions. Read the saved steps back with client.interactions.get(id=...) to audit what was changed and when.

Before you roll it out: public preview on v1beta, Gemini 4 models only, one system_input per turn, function tools only (no MCP tools). Google advises authorizing every function call on your own backend and keeping untrusted or end-user text out of system_input. Billing is at standard input rates; no separate fee.

Summaries are written by AI from the linked source. Always check the original.

Get AI Shorts by email

Every morning, the day's stories in one short email. Unsubscribe in one tap.