Google 12 月 3 日在 Gemini API 的 Interactions API 里上线了预览功能:对话中途可以用 system_input 追加系统指令,或增删工具,不必重写整段 system instruction,前面的轮次还能继续走缓存。
新指令和顶层系统提示同一权重,并优先于用户消息;规则冲突时以最新一条为准。工具增删目前只支持 function tools,MCP 还不行。所有 Gemini 4 模型可用,不另收费。
官方提醒:这只是引导模型,应用仍要在服务端校验每个工具调用,也不要把不可信内容写进 system_input。
https://t.co/63yYtKlkEy
These Senate hearings seem particularly pointless and performative given that the witness barely gets a word in and gets cut off every time they start to answer a question.
here's a prompt you can try
Audit all unstructured agent-facing text in this repo (AGENTS.md, skills, cursor rules, architecture/spec markdown docs) and replace as much of it as possible with executable code, types, lints, and tests. Then prove empirically what text actually earns its context window.
1. Inventory: list every doc, rule, and skill file, its byte size, and classify each claim into:
- Restates code or types (delete)
- Mechanically enforceable (convert into a linter, compiler check, typed API, or test, then delete the prose)
- Irreducible judgment call (candidate to keep, only if concise)
2. Prune and enforce: move enforceable rules into CI/lints/tests first, delete the dead prose, and shrink root instructions to only what automated checks cannot catch.
3. Run a blinded ablation eval before keeping any remaining instructions/skills:
- Pick 1 to 2 representative real tasks from this repo with an objective rubric and stress tests.
- Pre-register a prune rule before running (for example: drop the larger text set unless its median beats the smaller set by at least 2 points).
- Run 3 fresh isolated replicates per condition on clean commits that differ ONLY in the text under test:
- A: full current instructions/skills
- B: domain-only instructions
- C: minimal root instructions only (0 skills/extra docs)
- Audit transcripts for leaks (verify which files were actually opened vs just sitting in the system prompt).
- Grade blinded diffs + built artifacts only (strip branch names, SHAs, and notes) using a separate judge model + automated probe tests.
4. Report the scorecard, which docs/skills were never opened, where extra text hurt or helped, and delete everything that fails the pre-registered prune rule. Turn any recurring failure modes into tests or lints, not new prose.