# Gemini API Managed Agents: 3.6 Flash, hooks, and more

Source: [Google](https://blog.google/innovation-and-ai/technology/developers-tools/expanding-managed-agents-gemini-api-3-6-flash-hooks/)  
Feed7 permalink: https://feed7.dev/p/gemini-api-managed-agents-3-6-flash-hooks-and-more-be3ca53745  
Published: 2026-07-28T00:00:00.000Z  
Trust: Official Source (official_source)

## Why Included

Use pre- and post-tool hooks for policy checks, and cap autonomous loops with max_total_tokens while preserving resumable state.

## 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

- Layer: tools
- Domains: coding, security
- Topics: cloud-agents, sandboxing, tool-use

## Uncertainty

- None recorded.

## Agent Instruction

Use this item as source-backed context. Do not invent claims beyond the linked source. If this item conflicts with another source, call out the conflict.
