ChannelLife New Zealand - Industry insider news for technology resellers
New Zealand
Google sets out rules for reliable agentic coding loops

Google sets out rules for reliable agentic coding loops

Tue, 24th Nov 2026 (Today)
Sean Mitchell
SEAN MITCHELL Publisher

Google has outlined a framework for building and verifying agentic coding loops in its Antigravity development environment. It presents the approach as a shift in software engineering: away from writing prompts for single tasks and towards designing systems that supervise model behaviour.

The framework describes how developers can move from one-off prompts to longer-running automated workflows by placing controls around the model, including testing, evaluation, retry limits and budget restrictions. It also argues that, when engineering multi-step coding systems, the structure around a model matters more than the model itself.

At the centre of the approach is a tiered view of software work. Google divides work into five levels, ranging from a simple question and a single task to a larger feature, a project and, finally, a continuous system.

For smaller jobs, a single prompt may be enough. For larger software stories and projects, developers should define specifications, plans and executable tests before any autonomous loop begins running.

Why loops matter

The case rests on reliability across long task chains. An agent working through many sequential steps will see its overall success rate fall sharply unless each step is checked by an independent verification process.

Google uses a theoretical example of a model with 95% accuracy at each step. In a chain of 20 consecutive file modifications, that implies a success rate of only 36% if no outside check intervenes. By contrast, adding a verification gate with a single targeted retry raises the effective probability per step to 99.75%, according to the example, leaving a 20-step chain with a 95% end-to-end success rate.

Such checks should rely on tools outside the model, including compilers, test suites and linters. Where deterministic testing is not possible, Google recommends evaluation methods that reduce answers to clear pass-or-fail outcomes.

It also warns against open-ended retries. Rather than letting an agent run indefinitely after failure, a system should identify the error, allow one specific retry and then hand the task back to a human if the problem remains unresolved.

Guardrails first

Google's design principles focus on a handful of control points. These include durable state stored through Git-backed checkpoints, verification gates that prevent code from passing by deleting or weakening tests, evaluation benchmarks for non-deterministic issues, halt conditions based on turns and cost, and standardised instructions loaded from project files.

Google argues that these elements form the durable part of an AI-assisted engineering process, while model leadership changes quickly. In this view, the lasting asset is not a particular model version but the harness that governs how a model is used, monitored and corrected.

It also says project instructions should be written to persist across sessions. Files such as AGENTS.md and SKILL.md are presented as a way to encode project rules and reusable utilities so lessons from previous failures carry into later runs even if the model starts with no memory of earlier context.

Platform tools

Within Antigravity, some of these patterns are already built into commands such as /goal and /grill-me. The first is intended for multi-turn autonomous execution, while the second is used to establish design constraints, invariants and tests before the loop starts.

That reflects a broader effort by platform providers to absorb patterns that developers previously assembled through custom scripts. Google notes that earlier approaches included stateless command-line loops in which prompts were repeatedly piped into agents and the context was reset on every cycle, with durable state kept in Git history, progress files and test suites.

Those lightweight loops helped demonstrate demand for unattended coding automation, but they become fragile when tasks span multiple files or require sustained coordination across sub-agents.

Custom setup

Google also provides an example of how a custom supervisory loop can be built with the Antigravity software development kit. In that design, a supervisor delegates codebase search to one sub-agent and implementation to another, then checks the outcome by running a real test suite outside the model.

The sample setup applies a strict budget of 20 model calls and 200,000 tokens across the session, with one retry permitted after a failed verification. If the second attempt also fails, the loop stops and a human takes over.

Model choice should vary by task, according to Google. In its example, orchestration and implementation use Gemini 4 Carbon, codebase search uses Gemini 4 Hydrogen, and verification is handled by deterministic scripts that consume no tokens.

Google presents this as an experimental starting point rather than a finished template. It also points to a managed alternative through Antigravity Agent, which runs in an isolated Google Cloud sandbox for users who do not want to build and host their own loop infrastructure.

Human boundary

Despite the focus on automation, the framework draws a clear line around human responsibility. Every validation system needs a defined boundary that leaves a person in control of the final output, Google says.

Even a well-designed loop has little value if the responsible human cannot sign off on the result, it argues. Teams also need to observe these systems closely, learn where agents struggle, and improve the process step by step rather than handing over whole layers of work at once.

"No matter how perfect your loop, if you, as the responsible human, cannot sign off on your agent's output, there is minimal value in any of the artifacts it is producing," Google said.