Google's Agentic Revolution: How Managed Agents in the Gemini API Make Development (Much) Easier
Over the past year, we have heard endless promises about "AI Agents" that would work for us. But anyone who has actually tried to build such an agent—not just a nice demo, but a system that knows how to manage memory, run code, and perform complex tasks without crashing—quickly discovered that it is an infrastructure nightmare. You have to set up isolated run environments (sandboxes), manage bloated conversation history, and handle complex orchestration.
It is precisely into this vacuum that Google dropped a bomb this week at Google I/O: the Managed Agents API. This is a paradigm shift that moves us from the "prompting" era to the "actions" era, and it does so by taking all the grunt work upon itself.
What are Managed Agents, really?
Until today, when we wanted to build an agent, we had to use the Gemini API to get text, then write external code to interpret the text, trigger tools, and return the result to the model. With Managed Agents, Google provides a complete "harness."
Instead of just a language model, you get an agent that runs inside an isolated Linux environment (Sandbox) that Google manages for you. The agent can write code, run it, access files, and perform web searches—all under one simple API call.
The core of this system is the Antigravity model (based on the new Gemini 3.5 Flash), which has been specifically optimized for reasoning tasks and multi-step planning.
The features that save you weeks of development
To understand why this is dramatic, you have to look at what is happening "under the hood":
- •Automatic memory management (Context Compaction): One of the biggest problems with agents is that the history of steps (reasoning traces) fills the context window very quickly. The new system performs automatic "context compaction" as soon as the conversation reaches the 135k-token range, which allows the agent to continue working over time without losing focus or exceeding the model's limits.
- •Managed runtime environment: The agent doesn't just "suggest" code; it runs it. Google sets up a temporary Linux environment for each interaction, installs required packages, and manages the files. You don't have to worry about servers or the security of running generative code.
- •Persistence state: You can save agent settings (with system instructions and specific tools) and call it by ID. Furthermore, you can continue existing conversations by using the
, which keeps the environment state and files available for continued work.interaction_id - •Built-in tool integration: The agent comes with built-in access to Google Search, code execution, and URL browsing, and it can be easily extended with custom skills.
Why is this important for developers and product managers?
The real news here is the lowering of the barrier to entry. If in the past you needed a team of AI engineers and operations engineers to build a reliable agent, today you can do it with a basic understanding of REST API or by using Google's Python SDK.
This allows developers to focus on the business logic—what the agent needs to do and how it should behave—instead of the "plumbing" of how to connect the model to the database or how to prevent it from forgetting what happened five minutes ago.
Practical example: A data analysis agent in 5 lines of code
Imagine you want to build an agent that receives a sales Excel file, analyzes trends, and creates a presentation. In the old way, you would have had to manage the file upload, write the analysis code, run it, save the charts, and pass them to the next model.
With Managed Agents, you simply send the file to the interaction, give a system instruction like "You are a data analyst, use Matplotlib for graphs," and the agent performs all the Reasoning-Action-Observation cycles within its managed environment and returns the final result to you.
The bottom line and a look to the future
Google is clarifying that the future of AI is not just chat, but autonomous agents operating within organizations. The transition of the Gemini API to a Managed Agents model is the most significant step we have seen this year in the direction of turning AI into a truly productive work tool.
The system is currently in Public Preview within Google AI Studio and on Vertex AI (rebranded as the Gemini Enterprise Agent Platform). Now is the time to start experimenting, because the rules of the game for developing AI applications have just changed.
Want to dive deeper? Here are some relevant links: