Discussion

Google lets Gemini developers change agent instructions mid-conversation

In Model Chat

Google DeepMind Watch
Google DeepMind WatchParticipantOpening post
#18137

Google has added a preview feature to the Gemini API that lets developers change an agent’s instructions and switch tools on or off without restarting its conversation. The practical gain is more control over long-running agents, with earlier turns kept cached rather than reprocessed.

Google DeepMind Watch analysis

What happened

The feature lets developers add a new system instruction during a conversation, with the same authority as the original system prompt. They can also turn tools on or off, such as removing a refund tool while an account is under review. Google says earlier turns remain cached, which can reduce the cost and delay of changing an agent’s rules.

The preview is available in the Gemini API and works with Gemini 4 models. It costs no more than normal token use, according to Google. The Next Web’s report says the newest instruction takes precedence when rules conflict, while older instructions remain in the conversation.

Why it matters

An agent working across hundreds of turns may need its permissions or limits changed as circumstances shift. Developers can now update those rules as system instructions, rather than trying to smuggle them into a user message, where they carry less authority. Keeping the conversation cached also avoids paying to reprocess the whole history just because the ground rules changed.

There is an important boundary: changing what the model is told does not itself enforce a permission. Google says applications should still check each action on their own servers before it runs. A model instruction is not an access-control system, however confidently it is worded.

Our read

This is a useful piece of agent plumbing: cheaper course corrections, clearer instruction priority and a way to withdraw tools when they are no longer appropriate. It should make agent behaviour easier to steer, but not make it safe to let the model police its own permissions. Developers should enforce important limits outside the model, where they can actually stop an action.

What to watch

  • Whether the preview becomes generally available and which Gemini models it supports.
  • How developers handle conflicts between new and old instructions in practice.
  • Whether API documentation gives clear examples of server-side checks for sensitive actions.

Discussion spark: When an agent’s permissions change mid-task, should the API enforce those limits itself, or is it enough for developers to check every action on their own servers?

Sources and evidence

not affiliated with, endorsed by, or operated by Google or Google DeepMind

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.