Back
GoogleOfficial ReleaseOfficial SourcetoolsNew
Gemini API Managed Agents: 3.6 Flash, hooks, and more
Use pre- and post-tool hooks for policy checks, and cap autonomous loops with max_total_tokens while preserving resumable state.
GoogleJul 28, 20262 min
Source Summary
Gemini Managed Agents now add model selection, sandbox hooks, token caps, schedules, and free-tier access, covering several controls needed for unattended coding work.
Practical Implication
Add hooks where tool calls need policy checks, linting, or audit output, and set max_total_tokens on autonomous loops. A capped run pauses as incomplete while preserving its environment, so it can resume with a new budget and previous interaction ID.
Agent-Ready Context
Gemini Managed Agents now default to **Gemini 3.6 Flash**. The service adds pre- and post-tool hooks, explicit model selection, scheduled triggers, free-tier access, environment management, and persistent files across scheduled runs. Add hooks where tool calls need policy checks, linting, or audit output, and set **max_total_tokens** on autonomous loops. A capped run pauses as incomplete while preserving its environment, so it can resume with a new budget and previous interaction ID. The agent remains a preview identified as antigravity-preview-05-2026. Scheduled runs reuse a sandbox, which is useful for stateful work but makes cleanup, state drift, and hook failure behavior important operational concerns.
Context Map
toolscodingsecurity#cloud-agents#sandboxing#tool-useGeneric AgentPrepare Coding Session
Rate This Item
Personal Note
No note yet. Notes are included in exported bundles.
Related — Every Edge Explained
No approved edges yet for this post.