We just rolled out mid-conversation system instructions in the Gemini API 🚀 We added a new…
@_philschmid135K followers
13,781 views
11 Comments
Comments from the original post on X (Twitter)

@_philschmid
Learn more in the docs:
7 likes

@JHorlanrewaju
so you can just change the rules mid way and it keeps up? i wish people did that too haha
2 likes

@_Tomhuy
this seems especially useful for AI tutors. you could gradually remove instructions and hints as the student becomes more comfortable with a topic
1 like

@dagolovach
Good for caching. On Claude, tools and the system prompt sit at the start of the cached prefix, so changing them mid-session breaks the cache. A new step keeps earlier turns cached. When you remove a tool, what happens to old calls to it in the history?

@SedyBenoitPeace
Nice one. In my harness, tool definitions were the hidden bill: Copilot sent 102–146k tokens of them per call until I moved to deferred loading (max 13.5k). Swapping tools per phase, plan → build, without losing the cache is exactly the piece I was missing 😁

@atomicbyte_
so only the app can send system_input right, a tool result cant sneak one in?

@Moretti_ale90
Good. Client briefs always change on day three.

@RishiJain2205
can you swap the model mid session too or just the instructions and tools

@maanas_tyagi
editing the tools list between turns invalidates the prompt cache system_input lets you add or remove a tool and keep the earlier turns cached

@sanskar0627
mid session tool changes help the hard part is still knowing which limits to apply before the agent burns the budget on the next noisy turn

@theomlondhe
removing a tool during an outage and adding it back is the one I'd use most. right now I either restart the session or let the agent keep calling something that's down