Google announced a July 28, 2026 operations update for Gemini API Managed Agents.
📑Table of Contents
- What changed on 2026-07-28 — and what to decide first
- Default Gemini 3.6 Flash and choosing agent_config.model
- Environment hooks — deny and verify sandbox tools
- Budgets, free tier, cron, and Environments API
- Adoption checklist and how this differs from local CLI hooks
- FAQ
- Summary — operational actions for today
What changed on 2026-07-28 — and what to decide first
Control package, not “agents exist”
The core story is control, not “agents exist.”
The default model for agent antigravity-preview-05-2026 is now Gemini 3.6 Flash, applied on the next interaction with no code changes.
What landed in the package
The same package adds:
- Environment hooks (
.agents/hooks.json) max_total_tokensbudgets- cron triggers
- free-tier access
- Environments API
That moves teams from “run a sandbox in one call” toward stop, measure, and schedule controls.
Official framing
The Google Keyword post (Philipp Schmid / Mariano Cocirio) pairs the default-model change with hooks, budgets, schedules, Environments API, and free-tier access.
Decide early whether you will try free tier, pin the model, put pre-deny on destructive tools, and how you will schedule work and clean up environments.
Reader branches
- Try — free tier works even without project billing (per Google)
- Pin the model — avoid silent default drift with
agent_config.model - Guard tools —
pre_tool_executiondeny on destructive matchers; optional post verification - Schedule and reclaim — Triggers (cron) reuse one sandbox; Environments API for cleanup
Axis vs earlier expansions
Earlier expansions (background tasks / remote MCP) sit on a different axis.
- The single Interactions API call that runs reasoning, code execution, package install, files, and web retrieval in a remote sandbox remains the base path
- SDK examples use
@google/genai - For the GA foundation, see our Managed Agents API GA brief
Source:
- Google Keyword blog (2026-07-28)
Default Gemini 3.6 Flash and choosing agent_config.model
Default switch without code changes
For antigravity-preview-05-2026, the next interaction picks up Gemini 3.6 Flash without code changes. Pin only when you need stability.
Model setting table
| Model setting | Role | When to use |
|---|---|---|
| (unset / default) | Gemini 3.6 Flash | Follow the latest default in trials and greenfield work |
gemini-3.6-flash |
Explicit 3.6 Flash | Keep the choice visible in config even if it matches default |
gemini-3.5-flash |
Prior Flash | Hold prior behavior; A/B or regression |
gemini-3.5-flash-lite |
Lighter Flash | Cost/latency-first simple tasks |
Pin and pricing notes
Practical notes:
- Follow default when you want improvements automatically; accept preview-era behavior drift
- Pin when production-like reproducibility matters and model upgrades need change control
- Pricing: independent write-ups (for example AI Pricing Guru) discuss rate tables and preview-era unbilled sandbox compute, but always re-check Gemini API pricing for agents and your project billing
Docs and preview limits
Antigravity agent docs describe agent_config.model for Gemini 3.x Flash families.
Preview limits still apply: generation config (temperature and similar) and structured output are not fully available, so “change the model” does not mean full schema control.
Sources for this section
- Google Keyword blog
- Antigravity agent docs
- AI Pricing Guru (July 2026)
Environment hooks — deny and verify sandbox tools
Environment hooks are the main operational lever. Immediately before or after sandbox code execution and filesystem tools, you can run a custom command or HTTP handler.
Configuration basics
- Location:
.agents/hooks.json(or inline via environment sources) - Events:
pre_tool_execution/post_tool_execution - Matcher: regular expressions (including
|and*) - Handlers:
command(in-sandbox) orhttp(external POST)
On pre-hooks, returning {"decision":"deny","reason":"..."} skips the tool and feeds the reason back into model context—useful for destructive command gates or blocking writes outside an allowlist.
Constraints you must design around
- Sandbox built-in tools only — e.g.
code_execution,read_file,write_file,list_files,delete_file. Custom function calling and remote MCP are out of scope - Fail-open — non-zero exit, timeout, or hook failure is logged and the tool still runs. Broken linters will not deadlock the agent; do not treat hooks as the only hard mandatory gate
- HTTP hooks — container network only; target URLs need
network.allowlist; loopback is blocked - Tamper surface — a writable workspace can let the agent rewrite hooks.json/scripts; use read-only mounts when integrity matters
Example: OffDeal post-tool checks
Google’s post cites OffDeal running pixel-level logo verification on decks via post_tool_execution. Independent outlets such as Unite.AI and AIToolly describe the same control-layer addition.

Boundary vs local CLI hooks
Unlike local CLI hooks (for example Claude Code), Managed Agents hooks sit around cloud sandbox tools.
- Different boundary means “hooks exist” is not “every tool can be blocked”
- For local hook thinking, see Steering Claude Code: skills and hooks
Sources for this section
- Agent hooks docs
- Google Keyword blog
- Unite.AI
- AIToolly (July 2026)
Budgets, free tier, cron, and Environments API
Free tier
Google states Managed Agents can be tried without project billing. Treat that as evaluation access; production still needs live pricing, quota, and preview-limit checks.
max_total_tokens
agent_config.max_total_tokens caps input + output + thinking.
- On hit, status becomes
"incomplete" - Environment state is kept
- You can resume with
previous_interaction_id - Design for pause-and-resume after adjusting budget—not for discarding state on every cap
Cron triggers
Persist agent / environment / prompt / cron as resources and reuse one sandbox so files survive between runs.
Docs cover create, list, get, pause, resume, delete, run-now, and listing executions.
Environments API
List, inspect, and delete environments to recover IDs after disconnect and clean up before the 7-day TTL.
More schedules mean more abandoned environments unless reclaim policy is explicit.
Control map
| Control | Purpose | Primary knob | Watch-outs |
|---|---|---|---|
| Model pin | Follow default or freeze | agent_config.model |
Put default drift under change control |
| Hooks | Deny / lint / audit around tools | .agents/hooks.json |
Fail-open; MCP/custom functions excluded |
| Budget | Cap runaway tokens | max_total_tokens |
Design incomplete resume early |
| Cron | Scheduled runs | Triggers API | Shared sandbox and leftover files |
| Env lifecycle | Recover / delete | Environments API | Do not wait on TTL alone |
Sources for this section
- Google Keyword blog
- Antigravity agent docs
- HyperAI (July 2026)
Adoption checklist and how this differs from local CLI hooks
Cloud runtime guards vs local CLI hooks
| Dimension | Gemini Managed Agents hooks | Typical local CLI hooks (e.g. Claude Code) |
|---|---|---|
| Where they run | Inside remote sandbox | Developer machine / local agent runtime |
| Primary targets | Built-in code/filesystem tools | Tools/shell mediated by the CLI |
| MCP & custom functions | Out of hook scope (official) | Product-dependent |
| On hook failure | Fail-open (tool continues) | Product-dependent |
| Best fit | Long autonomous loops + in-sandbox checks + budgets | Interactive coding gates |
Related tracks
CLI packaging of agents is a separate track—see agents-cli v1.0.0. For IDE-oriented Antigravity product context, see Antigravity pricing and feature comparison.
Checklist for today
- Run one
antigravity-preview-05-2026job on free tier and confirm the 3.6 Flash-family default - Decide whether production-like work pins
agent_config.modelor follows default - Add one
pre_tool_executiondeny for destructive command matchers - Optionally add
post_tool_executionlint/artifact checks (OffDeal-style) - Set
max_total_tokensand aprevious_interaction_idresume path - Choose Trigger + shared environment vs fresh remote per run for recurring jobs
- Make hook sources read-only if tamper resistance matters
- Re-read preview limits (generation config, structured output, etc.) in the docs
Fit / no-fit
- Fit: long sandbox loops that need deny/verify mid-run, token caps with resume, cron on a sticky environment
- No-fit: control plane is almost only remote MCP or client custom functions; you require hard-stop on any hook failure (conflicts with fail-open)
FAQ
Do I need to rewrite existing code?
Can hooks block MCP or custom functions?
What if a hook fails?
Does max_total_tokens wipe state?
Is free tier enough for production?
Summary — operational actions for today
Actions for today
- Verify facts on the official blog plus agent-hooks and antigravity-agent docs
- Pick one first lever: model pin, hooks, budget, or cron
- Next steps: one free-tier run → one pre-deny → set
max_total_tokens→ add a Trigger if needed - Residual risks: fail-open, MCP out of scope, preview schema change, hook tampering
Closing note
Managed Agents now look less like a demo sandbox and more like an agent runtime with stop and measure controls. Start with one free-tier run and one pre-deny, and confirm pause-and-resume behavior before scaling schedules.
Author
krona23
Over 20 years in the IT industry, serving as Division Head and CTO at multiple companies running large-scale web services in Japan. Experienced across Windows, iOS, Android, and web development. Currently focused on AI-native transformation. At DevGENT, sharing practical guides on AI code editors, automation tools, and LLMs in three languages.
🔥 Most Popular
- Obsidian Visualization Tools: Graph, Canvas, Excalidraw (2026)
- Claude Desktop Won't Install? Windows & Mac Fixes That Worked (2026)
- What Is VS Code? Features, Extensions & Copilot — Complete Guide (2026)
- Claude Code CLI vs Web vs Desktop: A Daily User's Guide (2026)
- LM Studio Bionic Preview: Local Open-Model Agent for Docs and Code









Leave a Reply