Gemini preview API now preserves prompt cache when instructions or tools change mid-session
petrusenko_max · x · 2026-12-07
Per Gemini's preview API update, changing instructions or tool definitions mid-session no longer invalidates the prompt cache: a long-running agent can pick up new rules without paying to re-read the entire conversation. Previously any mid-session rule change forced a full re-read. A directly cost-relevant improvement for multi-hour agent workflows with frequently tweaked rules.
More from coding & agent
- Non-coder builds local-first Android AI companion app with Opus 5.5 + Gemini 4 Neon, no Android Studio — Content-Review4115 · 2026-12-07
- rauchg praises X MCP for giving any agent real-time grounding — schwentker · 2026-12-07
- Imprint CTO on security as AI accelerates: design out vulnerability categories, automate triage — jeff_weinstein · 2026-12-07
- Experiment: scaling a capability registry to 1,000 entries makes the LLM less accurate — discovery, not execution, is the bottleneck — mevlanimade · 2026-12-07
- Open-source gemini-chat-sync incrementally exports Gemini Web chats to Markdown for coding agents — david-kr8 · 2026-12-07
- AWS's Marc Brooker on the explosion of AI bug-finding tools — tianyin_xu · 2026-12-07