AIToday
Large Language ModelsAI Coding AssistantsGoogle AI BlogPublished: Jul 29, 2026, 04:00 JST

Gemini API Agents Now Default to 3.6 Flash, Add Budget Controls and Hooks

Gemini API Agents Now Default to 3.6 Flash, Add Budget Controls and Hooks

3 Key Points

  1. What happened

    Google has updated Managed Agents in the Gemini API to run Gemini 3.6 Flash by default, introduced environment hooks that let developers block or audit tool calls inside the sandbox, and added budget controls (via max_total_tokens), scheduled triggers, and free tier access.

  2. Why it matters

    Developers can now prevent runaway costs on multi-turn autonomous tasks by capping token consumption; hooks enable production validation pipelines (like image verification for financial decks) to run directly in the sandbox rather than externally. Free tier access lowers the barrier for teams experimenting with agentic workflows.

  3. What to watch

    When an agent reaches its max_total_tokens limit, execution pauses safely and you can resume by passing previous_interaction_id with a fresh budget. Scheduled triggers let agents run recurring tasks autonomously on a cron schedule, reusing the same sandbox so files persist across runs.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Managed Agents in the Gemini API have evolved from a foundational capability into a production-grade system addressing real operational concerns: cost predictability, security validation, and autonomous scheduling. The introduction of environment hooks directly responds to a concrete use case—Offdeal, an AI-native investment bank, needed to verify financial deck assets (company logos) at pixel-level quality inside the sandbox rather than externally. With hooks, Offdeal's Archie AI analyst can now fetch candidates, enforce quality checks, and use Gemini vision to validate each logo without leaving the managed agent sandbox.

The shift to Gemini 3.6 Flash as the default reflects both model maturity and user preference for speed and cost in agentic workflows. Budget controls (max_total_tokens) acknowledge that multi-turn autonomous loops can accumulate tokens unpredictably; the ability to pause safely and resume with a fresh budget preserves debugging and iteration patterns without surprise bills. Free tier access expands the constituency: teams can now prototype agentic workflows on API keys without enabling billing, lowering friction for early adoption.

Scheduled triggers and the Environments API round out the package, positioning Managed Agents as a self-contained worker system that can run recurring tasks, persist state across runs, and be managed programmatically—all within an isolated cloud sandbox, with no external orchestration required.

FAQ
What models can I use with Managed Agents now?
You can choose from Gemini 3.6 Flash (the new default for balanced reasoning and coding), Gemini 3.5 Flash (the previous generation), or Gemini 3.5 Flash-Lite (lowest latency and cost). You select the model by passing agent_config.model when creating an interaction.
How do environment hooks work?
You add a .agents/hooks.json file that defines handlers running before (pre_tool_execution) or after (post_tool_execution) every tool call. For example, you can run a Python script to validate code before it executes or auto-format code after execution. If a pre-execution script returns {"decision": "deny", "reason": "..."}, the tool call is skipped.
How do budget controls prevent overspending?
You set max_total_tokens inside agent_config to cap total token consumption (input + output + thinking). When the agent reaches the limit, execution safely pauses and returns status: "incomplete". You can resume by passing previous_interaction_id with a fresh budget.
Google AI BlogRead Original Article

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleOpenAI Report: AI Coding Agents Accelerate Scientific Computing