Wednesday, July 29, 2026Story 3 of 3
Gemini API Managed Agents expand: Gemini 3.6 Flash by default, new hooks, and free-tier access
Google has shipped a bundle of upgrades to Managed Agents in the Gemini API. Managed Agents let a single API call spin up an agent inside an isolated cloud sandbox that handles reasoning, code execution, package installation, file management, and web retrieval. In effect, it's the option of letting Google run your agent's execution environment instead of building one yourself.
Confidence in this AI-assisted summary High

Key points
- Three pillars. First, the model: the agent now defaults to Gemini 3.6 Flash, with no code changes required; you can pin Gemini 3.5 Flash or 3.5 Flash-Lite via agent_config.model. Second, hooks: new environment hooks let you run custom scripts before or after every tool call, configured in .agents/hooks.json with either command or HTTP handlers — useful for blocking dangerous operations or linting generated code.
- Third — and this is today's practical win — cost controls. Managed Agents now work on free-tier projects. You can cap consumption with max_total_tokens; when the limit is hit, execution pauses with status 「incomplete」 rather than failing. Cron-based scheduled triggers are new, and an Environments API lets you list, inspect, and delete sandbox sessions instead of waiting out the default 7-day timeout.
- Getting started: npm install @google/genai for TypeScript/JavaScript, with Python and cURL alternatives. Cloud-hosted agent execution puts this squarely on the same field as OpenAI's Codex and ChatGPT Work — and Google's differentiation is clear: free to try, with runaway behavior stoppable on both the money side and the hooks side.
Why it matters
Commentary
Today's practical takeaway is one line: 「it now works on the free tier」. Agent platforms have mostly assumed a paid setup just to experiment. With nothing but a Gemini API key, you can run a sandboxed agent today for free — currently the lowest barrier to entry for readers who have never touched an agent platform.
The hooks-plus-token-cap combination answers the two classic agent accidents head on: the agent doing something dangerous on its own, and the bill silently exploding. Wrapping every tool call in before/after checks is a practice that coding agents like Claude Code made standard; now it ships as a first-class feature of Google's official API. The agent race is moving from 「make it smarter」 to 「make it safe to operate」, and this release confirms it.
The pause-don't-fail design matters in production too. The worst waste in long-running agent jobs is hitting a limit and losing the work in progress. Stopping at 「incomplete」 and resuming after you top up — like a bank account, not a fuse — is the kind of behavior that makes business adoption less scary.