↓ Skip to main content
  1. Tech Blog: AI, Security, Infrastructure & Open Source/

Gemini 4 Argon — Long-Running Coding Agents Need Control

·1600 words·8 mins
Osmond van Hemert
Author
Osmond van Hemert
AI Models & Releases - This article is part of a series.
Part : This Article

The most useful detail in Google’s Gemini 4 Argon launch isn’t a leaderboard position. It’s what happened when the model spent a night optimizing an existing Python framework: it proposed six changes, and the maintainers shipped two. Four were rejected. That is a more instructive picture of autonomous software engineering than a demo where every generated line survives.

Google released Gemini 4 Argon on October 13, targeting complex coding, research, and other multi-step work. Its unified million-token budget and long-decode support give difficult tasks more room. But the ADK engineering case study makes the more important point: longer execution is useful when the surrounding workflow can distinguish a real improvement from an elaborate mistake.

What Developers Can Use Today
#

Google’s launch announcement makes Argon available through the paid Gemini API tier in AI Studio and Android Studio, and through Google Antigravity and AI Studio for Google AI Ultra subscribers. These are different access paths, not interchangeable subscriptions or billing arrangements.

GitHub also announced Argon in Copilot for Pro+, Max, Business, and Enterprise users, with a gradual rollout across its supported development surfaces. GitHub says the model uses provider list pricing under usage-based billing; enterprise administrators can manage access through model policies.

For a team already using Copilot, that offers a way to evaluate Argon without changing the whole interface. For someone integrating the API directly, the more consequential work is checking the request limits and continuation behavior. As with switching model backends through Together Link, keeping a familiar harness does not establish that every new model capability is exposed by it.

A Million Tokens Is a Shared Budget
#

According to Google’s long-decode documentation, Argon’s limit is 1,048,576 tokens shared across input, thinking, and output. It is not a million-token repository followed by an unlimited answer. An 800,000-token input leaves at most 248,576 tokens for thinking and output within that window.

This changes how I would plan a large migration. Loading every file might make the prompt look comprehensive while leaving less room to reason about the change. A focused working set—relevant modules, dependency boundaries, tests, and explicit compatibility requirements—is still a sensible starting point. Capacity gives you options; it does not make indiscriminate context loading a strategy.

Google also distinguishes the total budget from an individual generation. On the Interactions API, ordinary streaming and non-streaming interactions default to a 65,536-token output limit. To go beyond it, the documented long-decode path requires background execution and a higher max_output_tokens. Requests above that limit with background: false currently return a 400 error.

The server then generates successive hops under one interaction ID. That matters for genuinely difficult reasoning, but Google’s own guidance says most coding and agentic tasks finish under 64K. It specifically advises against long decode for agents making many short tool-calling turns. One very long response and a long-running coding agent are not the same thing.

Continuation Is Not Recovery
#

Automatic generation hops do not remove the client’s responsibility to interpret the result. Google’s status guidance distinguishes outcomes that a simplistic “wait until it stops” loop could easily conflate:

StatusMeaningWhat your workflow must distinguish
completedGeneration finishedThe response exists; the proposed change still needs verification
requires_actionThe model requested a tool callValidate the action before executing it and returning its result
incompleteThe generation budget was exhaustedA partial response is not a completed task
failedExecution could not finishPreserve enough information to investigate and decide whether to retry
cancelledExecution was stoppedReconcile any tool side effects and account for work already performed

These distinctions belong in the harness, not in a prompt asking the model to “be careful.” The streaming documentation also requires clients to retain the interaction ID and event IDs, reconnect after interruptions, and read replayed events through to the end. A lost connection is not necessarily a lost execution.

The long-decode guide requires store: true for this background path. Before sending private repository context, review the applicable storage and data-handling terms rather than assuming background work is stateless. And before retrying a tool action, check whether it already happened: replaying a text response and repeating a deployment have very different consequences. This is the same state and recovery problem in production LLM agents, with a larger generation budget rather than an exemption from systems engineering.

The ADK Example: The Maintainer Still Subtracts
#

Google’s October 13 ADK write-up describes an 11-hour unattended run in Antigravity, supplied with repository-specific skills and a goal that explicitly required an unmerged pull request. It is a Google-run case study, not an independent measurement of Argon against competing models.

The two accepted optimizations were recognizable performance engineering:

  • Filter session events before copying them. ADK had copied whole in-memory conversations before selecting the requested events. The shipped change avoided unnecessary copying and introduced a cycle-safe copier that preserved required shared state and mock behavior.
  • Load heavy packages only when needed. Imports for capabilities such as streaming, tracing, and web serving were deferred, while preserving public attributes that downstream tests expected to patch.

The second change illustrates why a green test suite is not the whole acceptance criterion. Google reports that all 16,892 open-source tests passed, yet 25 internal test targets failed because they patched attributes the proposed import cleanup had removed. Compatibility included behavior outside the test set the agent could see.

The maintainers rejected four other proposals: a cache with stale-reference risk, reliance on a private OpenTelemetry attribute, a history-formatting rewrite without an end-to-end holdout gain, and a replay index whose benefit was limited to synthetic tests. The merged code is evidence of a reviewed result—not proof that the entire overnight proposal was safe.

Google reports roughly 40% less pre-model overhead in long in-memory sessions and 21% faster cold package imports, using a holdout benchmark Argon had not seen. That benchmark used instant model and tool responses to isolate framework overhead; external database-backed session stores did not receive the same read-time improvement. New-process time to the first model request stayed essentially flat, because deferred imports still had to happen on the first turn. None of those figures means your application or its model responses become 40% faster.

Long Decode Has a Bill, Not Just a Token Limit
#

Google’s standard Gemini Developer API pricing lists these rates per million tokens:

Token typeThrough November 30, 2026From December 1, 2026
Fresh input$2.00$4.00
Output, including thinking$10.00$20.00
Cached input$0.10$0.20

The introductory rates should not quietly become a permanent assumption in a business case. Nor is a million-token capacity a million-token spending allowance: the billing documentation says you pay for work across every hop, including thinking and work completed before cancellation or failure.

Each continuation hop sends the prompt and prior generation back as input. Google discounts repeated hop input through implicit caching, but cumulative input usage is still not the current context size. A client that confuses the two can compact a conversation unnecessarily; a dashboard that adds successive cumulative usage reports can double-count consumption.

Record usage correctly, then connect it to an accepted change. My earlier coding-agent cost comparison covered that denominator. Here, the new question is whether extra reasoning buys a better result or merely a longer attempt.

Trial Argon Without Expanding Its Authority
#

Google says it trained Argon to respect boundaries and seek confirmation before irreversible steps, and describes additional monitoring against unsafe shortcuts. Those are relevant vendor claims, not a reason to give an unattended coding agent production credentials or permission to merge its own work.

I have not run a live Argon coding benchmark for this article. My proposed first trial would be a bounded performance fix or dependency migration in a disposable worktree, with existing tests and a reviewer-owned acceptance check:

  1. Freeze the task and starting commit. State what must improve and what must remain compatible, including public APIs and deployment behavior.
  2. Give the agent repository rules. Include test commands, architectural constraints, and an explicit instruction to propose changes without merging or deploying.
  3. Start with ordinary turns. Verify the harness’s output limit and thinking configuration before reaching for long decode. Add it only when a single response actually needs the larger budget.
  4. Keep a holdout check. Measure on a workload the agent did not optimize against, and review regressions even when its own tests pass.
  5. Exercise an interruption. Confirm that reconnecting, cancellation, and tool retries do not silently duplicate actions. Capture spend, elapsed time, rejected proposals, and reviewer effort.

The ADK case gives that trial a credible shape: baseline first, explore the codebase, propose improvements, and let maintainers decide which ones deserve to survive. It does not supply a success rate for your backlog.

My Take
#

Argon’s strongest signal is not that an agent can keep working overnight. It is that Google published a useful account of what still had to be removed the next morning. A capable model can uncover cross-file improvements while also proposing fragile caches and unnecessary complexity. Both can be true in the same run.

I would trial Argon on work where extended investigation has real value: tracing a performance regression, preserving compatibility through a migration, or simplifying a subsystem with clear acceptance tests. I would not turn on the largest output budget for every task, and I would not confuse a completed interaction with a change ready to merge.

My expectation is that longer-running models will make repository instructions, independent checks, and disciplined review more valuable—not obsolete. More time to reason can produce a better patch. More authority to act is a separate decision, and it should still be earned one verified workflow at a time.

AI Models & Releases - This article is part of a series.
Part : This Article

Related