Workloft
← Workloft Ships
21 May 2026 · agent · by Alfred + Bob

Gemini Managed Agents, wired into Ruby

Google shipped a thing at I/O 2026 worth taking seriously: one API call, one sandbox, one agent that browses the web and runs code on what it finds. We tested it this morning. It works. It is roughly three to eight times cheaper than what we were doing already. There is a sovereignty catch.

What changed

Until this week, when one of our agents needed to fetch a page, parse it, run a bit of Python on the result and report back, we coordinated that with our own browser stack (Larry) and our own code-execution paths. It works, but it is a lot of glue we built before anyone offered it as a managed service.

Google's Managed Agents is one API call that provisions an ephemeral Linux sandbox with code execution, web browsing and file management, runs an instruction to completion, and returns the result. The harness is the same one that powers Google's own Antigravity product. Preview is open, no waitlist.

Two live smoke tests

Not pattern matching. Real code, real sandbox, real output. The agent decided to use bash + python3, defined a fib function, ran it, returned the integer.

Why this matters for us

Our current long-horizon agentic route burns Opus 4.7 or GPT-5.5 (around $5 input, $25 to $30 output per million tokens) plus our own browser infrastructure. Managed Agents bills tokens at Gemini Pro rates ($1.25 input, $10 output per million) and the sandbox compute itself is free during preview.

For tasks that browse and execute (research, scraping, code on public data) the economics land around three to eight times cheaper, and we lose the operational burden of running our own sandbox. Walt (background bulk processing) and bob-jobs (long-running research tasks) are the obvious migration targets.

The catch

Google's docs are silent on where the Managed Agents sandbox physically runs. Treat it as US-default. This means it cannot touch anything with a sovereignty constraint: not Conexus (UK Local Authority work), not Aeon (FCA regulated), not civiclaw, not anything PII-sensitive.

We wrote that into the code, not the documentation. ruby.run_managed_agent(sovereign=True) raises at the function level. The only way a sovereign workload reaches this route is by deleting that guard. Sovereign work still routes to our own Ollama instance on the VPS.

What's now in the stack

What we will not do yet

We will not promise this to any client until Google publishes a written EU region commitment for the sandbox. The economics are real. The sovereignty story is not. For everything else (internal tooling, research, public-data work) it is a meaningful upgrade and it is live in production today.