Close Menu
AIToday7

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Gemini for macOS adds new natural language capabilities

    July 29, 2026

    Waymo adds Google’s Gemini AI assistant and new UI to Ojai robotaxi

    July 29, 2026

    Tech Trek Brings Future STEM Leaders to Stockton

    July 29, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Gemini for macOS adds new natural language capabilities
    • Waymo adds Google’s Gemini AI assistant and new UI to Ojai robotaxi
    • Tech Trek Brings Future STEM Leaders to Stockton
    • Hint, a new AI startup co-founded by Martha Stewart, offers an AI assistant for homeowners
    • Qualcomm Q3 earnings top revenue expectations as smartphone market slows
    • Coca-Cola resumes Fairlife milk production after hackers shut down plants
    • How to Self-Host a Validated AI Coding Assistant with NVIDIA NeMo Guardrails
    • ‘AI Kill Switch Act’ won’t stop rogue AI, but it will slow down innovation
    Facebook X (Twitter) Instagram Pinterest Vimeo
    AIToday7
    • Home
    • AI News
    • Tech News
    • AI Guides
    • Chatbots
    • Cybersecurity
    • Gadgets
    • More
      • Generative AI
      • Startups
    AIToday7
    Home»Generative AI»Gemini API Managed Agents: 3.6 Flash, hooks, and more
    Generative AI

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

    aitoday7By aitoday7July 29, 2026No Comments5 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Gemini API Managed Agents: 3.6 Flash, hooks, and more
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Managed Agents in Gemini API now default to Gemini 3.6 Flash. New environment hooks let you block, lint, or audit tool calls inside the sandbox. Also, we’ve added budget controls, scheduled triggers, and free tier access.

    Member of the Technical Staff, Google DeepMind

    Product Manager, Google DeepMind

    Your browser does not support the audio element.

    Listen to article[[duration]] minutes
    This content is generated by Google AI. Generative AI is experimental

    Managed Agents in Gemini API are getting environment hooks, model selection, and free tier access. These capabilities build on our previous release introducing background tasks and remote MCP server integration.

    With managed agents in the Gemini Interactions API, a single API call coordinates, reasoning, code execution, package installation, file management, and web retrieval inside an isolated cloud sandbox.

    If you’re using an AI coding assistant, drop this in your terminal to give it access to the Interactions API skill: npx skills add google-gemini/gemini-skills --skill gemini-interactions-api.

    Below are examples using the @google/genai TypeScript/JavaScript SDK. For Python or cURL, check out the Antigravity agent documentation.

    npm install @google/genai

    Gemini 3.6 Flash is now the default

    The antigravity-preview-05-2026 agent now runs Gemini 3.6 Flash by default. No code changes are required. Your next interaction picks it up automatically.

    You can also explicitly select models by passing agent_config.model when creating an interaction or managed agent. Use Gemini 3.5 Flash-Lite for lower cost, or pin to your model of preference.

    import { GoogleGenAI } from "@google/genai";
    
    const client = new GoogleGenAI({});
    
    const interaction = await client.interactions.create({
      agent: "antigravity-preview-05-2026",
      input: "Audit all dependencies in package.json, upgrade outdated packages, and verify the build by running npm test.",
      environment: "remote",
      agent_config: {
        type: "antigravity",
        model: "gemini-3.5-flash-lite",
      },
    });
    
    console.log(interaction.output_text);
    • Gemini 3.6 Flash (gemini-3.6-flash, default): Balanced model for reasoning, coding, and tool use.
    • Gemini 3.5 Flash (gemini-3.5-flash): Previous generation for general agentic workflows.
    • Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite): Lowest latency and cost on the Gemini 3.5 family.

    Environment hooks: block, lint, and audit tool calls inside the sandbox

    Environment hooks let you run your custom scripts before or after every tool call the agent makes inside its sandbox. Add a .agents/hooks.json into your environment and the runtime executes your handlers on pre_tool_execution or post_tool_execution events.

    The matcher field supports regular expressions, allowing you to target multiple tools with | or catch everything with *:

    {
      "security-gate": {
        "pre_tool_execution": [
          {
            "matcher": "code_execution|write_file",
            "hooks": [
              {
                "type": "command",
                "command": "python3 /.agents/hooks-scripts/gate.py",
                "timeout": 10
              }
            ]
          }
        ]
      },
      "auto-format": {
        "post_tool_execution": [
          {
            "matcher": "*",
            "hooks": [
              {
                "type": "command",
                "command": "python3 /.agents/hooks-scripts/auto_lint.py",
                "timeout": 15
              }
            ]
          }
        ]
      }
    }
    • The security-gate group runs gate.py before every code_execution or write_file call. If the script returns {"decision": "deny", "reason": "..."}, the tool call is skipped and the rejection reason is passed into the model’s context.
    • The auto-format group runs auto_lint.py after every tool finishes to enforce code styling.
    • Hooks also support http type handlers that POST directly to an external endpoint.

    For complete HTTP hook definitions and failure handling semantics, refer to the hooks documentation.

    Teams are already using hooks to build production-grade validation pipelines. For example, AI-native investment bank Offdeal uses post_tool_execution hooks to run automated image verification inside the remote sandbox.

    “OffDeal is an AI-native investment bank, and Archie is the AI analyst our bankers use every day. A requirement for banker-ready decks is company logos: buyer tables, sponsor columns, tombstone grids, often 30+ logos in a single deck, every one of which must be the right company, the appropriate size and aspect ratio, contain the name, have a transparent background, and have a high contrast when placed on a white slide.

    Before agent hooks, we couldn’t do this on Gemini’s managed agents: the sandbox is remote, so our validation code had nowhere to run. With hooks, a post_tool_execution hook triggers our pipeline inside the sandbox the moment Archie writes its company list, fetching candidates, enforcing pixel-level quality checks, verifying each logo with Gemini vision, and publishing a manifest of approved files that are the only images allowed into the deck.”

    – Alston Lin, Founder & CTO of OffDeal

    Cost control and automation features

    Free tier availability

    Managed agents are now available on free tier projects. Developers can experiment with agentic workflows using an API key from a project without active billing.

    Budget controls

    Because managed agents execute multi-turn autonomous loops, complex tasks can consume significant token budgets. To prevent runaway tasks, you 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, enabling you to continue where it stopped by passing previous_interaction_id with a fresh budget.

    const interaction = await client.interactions.create({
      agent: "antigravity-preview-05-2026",
      input: "Audit all modules in this repo and generate a migration report.",
      agent_config: {
        type: "antigravity",
        max_total_tokens: 10000,
      },
      environment: "remote",
    });

    Scheduled execution with triggers

    Automate recurring agent tasks with scheduled triggers. A trigger binds an agent, environment, prompt, and cron schedule into a persistent resame sandbox, so files persist across executions

    Environments API

    The Environments API lets you list, inspect, and delete sandbox sessions from code. Recover environment IDs after a disconnect, or clean up sandboxes when your pipeline finishes instead of waiting for the 7-day TTL.

    Get started with managed agents

    These updates turn managed agents into cost-controlled, scheduled workers that operate autonomously inside real development environments without breaking your budget or requiring external orchestration.

    Check out the Gemini Interactions API overview and the managed agents quickstart to explore custom agent definitions, environment configurations, network rules, and advanced streaming patterns.

    agents Flash Gemini hooks Managed
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleLooking back on Microsoft’s FY26: From AI experimentation to Frontier Transformation
    Next Article ‘AI Kill Switch Act’ won’t stop rogue AI, but it will slow down innovation
    aitoday7
    • Website

    Related Posts

    Generative AI

    Gemini for macOS adds new natural language capabilities

    July 29, 2026
    Chatbots

    Waymo adds Google’s Gemini AI assistant and new UI to Ojai robotaxi

    July 29, 2026
    Generative AI

    How Much Does a Local LLM Actually Cost to Run? I Measured Every Watt on Apple Silicon

    July 28, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Gemini for macOS adds new natural language capabilities

    July 29, 20260 Views

    Waymo adds Google’s Gemini AI assistant and new UI to Ojai robotaxi

    July 29, 20260 Views

    Tech Trek Brings Future STEM Leaders to Stockton

    July 29, 20260 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews
    Chatbots

    OpenAI bets on families as ChatGPT goes deeper into households

    aitoday7July 11, 2026
    Generative AI

    MUSIC COMMUNITY INTRODUCES NEW LABELING PROGRAM TO DISTINGUISH GENERATIVE AI IN SOUND RECORDINGS

    aitoday7July 11, 2026
    AI News

    Safe from AI: which jobs will help you thrive in the future?

    aitoday7July 11, 2026

    Subscribe to Updates

    Get the latest tech news from FooBar about tech, design and biz.

    Most Popular

    Gemini for macOS adds new natural language capabilities

    July 29, 20260 Views

    Waymo adds Google’s Gemini AI assistant and new UI to Ojai robotaxi

    July 29, 20260 Views

    Tech Trek Brings Future STEM Leaders to Stockton

    July 29, 20260 Views
    Our Picks

    OpenAI bets on families as ChatGPT goes deeper into households

    July 11, 2026

    MUSIC COMMUNITY INTRODUCES NEW LABELING PROGRAM TO DISTINGUISH GENERATIVE AI IN SOUND RECORDINGS

    July 11, 2026

    Safe from AI: which jobs will help you thrive in the future?

    July 11, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Facebook X (Twitter) Instagram Pinterest
    • About Us
    • Get In Touch
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions
    © 2026 AIToday7. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.