
Google has upgraded its Managed Agents service in the Gemini API to default to the faster Gemini 3.6 Flash model and introduced environment hooks—custom scripts that can block, audit, or lint tool calls before and after execution inside the sandbox. The update also adds token budget controls to prevent runaway spending on complex multi-turn tasks, scheduled triggers for recurring automation, and free tier access so developers can experiment without active billing.
Summaries like this, in your inbox every morning.
Sign up free →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.
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.
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.
Google has announced a set of updates to Managed Agents in the Gemini API that strengthen cost control, security, and automation capabilities. The antigravity-preview-05-2026 agent now defaults to Gemini 3.6 Flash, a balanced model optimized for reasoning, coding, and tool use. No code changes are required; the next interaction automatically picks up the new default. Developers can also explicitly select other models by passing agent_config.model—choosing Gemini 3.5 Flash (previous generation), Gemini 3.5 Flash-Lite (lowest latency and cost), or pinning to a model of choice.
Environment hooks represent a major capability expansion. Developers can now add a .agents/hooks.json configuration file to define custom scripts that execute before or after every tool call inside the sandbox. For example, a security-gate hook can run a Python script before code_execution or write_file calls; if the script returns {"decision": "deny", "reason": "..."}, the tool call is skipped. An auto-format hook can run after every tool to enforce code styling. Hooks support regular expression matchers (e.g., "code_execution|write_file" or catch-all "*") and can be command-type (running local scripts with a timeout) or HTTP-type (POSTing to an external endpoint). Offdeal, an AI-native investment bank, uses post_tool_execution hooks to validate company logos in financial decks—fetching candidates, enforcing pixel-level quality checks, verifying each logo with Gemini vision, and publishing a manifest of approved files inside the remote sandbox, enabling banker-ready presentations without external validation pipelines.
Cost control features address the risk of runaway spending in multi-turn autonomous loops. Developers can pass max_total_tokens inside agent_config to cap total consumption (input + output + thinking). When the agent reaches the limit, execution safely pauses and the interaction returns status: "incomplete". The environment state is preserved, so you can resume by passing previous_interaction_id with a fresh budget. Scheduled execution with triggers lets developers bind an agent, environment, prompt, and cron schedule into a persistent resource that fires without manual intervention; each run reuses the same sandbox, so files persist across executions. The Environments API lets you list, inspect, and delete sandbox sessions from code, recover environment IDs after disconnect, and clean up sandboxes when your pipeline finishes instead of waiting for the 7-day TTL.
Free tier availability rounds out the release: Managed Agents are now available on free tier projects, allowing developers to experiment with agentic workflows using an API key from a project without active billing. Together, these updates transform Managed Agents into cost-controlled, scheduled workers operating autonomously inside real development environments without breaking budgets or requiring external orchestration.
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.
AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.
Free · takes 30 seconds · unsubscribe anytime
No comments yet. Be the first to share your thoughts!
Log in to join the discussion



Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.
Get Started FreeFree · takes 30 seconds · unsubscribe anytime