---
title: "Discussion on \"Google's developer blog on agent context cost, and a measured host-side fix: 169x fewer tokens a step (Gemini 3.8 Flash)\" | Hashnode"
description: "Discussion on \"Google's developer blog on agent context cost, and a measured host-side fix: 169x fewer tokens a step (Gemini 3.8 Flash)\". In December 2025 the Google Developers Blog described what happens in production agent systems: cost and time to first token climb as the context grows, stale context hurts the model, and a bigger win"
url: "https://hashnode.com/posts/google-s-developer-blog-on-agent-context-cost-and-a-measured-host-side-fix-169x-fewer-tokens-a-step-gemini-3-8-flash/6b05cc04013903281b32836e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Google's developer blog on agent context cost, and a measured host-side fix: 169x fewer tokens a step (Gemini 3.8 Flash)](https://axi-runtime.hashnode.dev/google-s-developer-blog-on-agent-context-cost-and-a-measured-host-side-fix-169x-fewer-tokens-a-step-gemini-3-8-flash?utm_source=hashnode&utm_medium=feed)

In December 2025 the Google Developers Blog described what happens in production agent systems: cost and time to first token climb as the context grows, stale context hurts the model, and a bigger win

1d ago · 4 min read · axi-runtime.hashnode.dev  
Read the article

-   [#llm](https://hashnode.com/tag/llm)
-   [#agents](https://hashnode.com/tag/agents)
-   [#context-engineering](https://hashnode.com/tag/context-engineering)

## Written by

[Shalendra gaur](https://hashnode.com/@shalendra-gaur)

@shalendra-gaur

  
[View profile](https://hashnode.com/@shalendra-gaur)

I build and run open tests of AXI, a host-side runtime for LLM agents. Architecture by Rajnish Choubey. Tests and measurements by me.

## Responses 2

Markdown supported · ⌘↵ to post

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[20h ago](https://hashnode.com/posts/google-s-developer-blog-on-agent-context-cost-and-a-measured-host-side-fix-169x-fewer-tokens-a-step-gemini-3-8-flash/6b05cc04013903281b32836e/comment/6b066f7c226caede0feda879)

Moving authoritative state out of the chat transcript and into a validated host-side layer is one of the cleanest architectural patterns for long-horizon agents. Dropping prompt size from an average of 476,835 tokens to a flat 2,824 tokens per step—and holding exact state across all 1,500 operations whereas the full-chat baseline drifted permanently after turn 286—shows that prompt caching alone cannot fix attention degradation in massive histories.

Rebuilding a minimal state snapshot after each atomic host-validated commit keeps both time-to-first-token and correctness bounded no matter how long the workflow runs.

[Shalendra gaur](https://hashnode.com/@shalendra-gaur)

[17h ago](https://hashnode.com/posts/google-s-developer-blog-on-agent-context-cost-and-a-measured-host-side-fix-169x-fewer-tokens-a-step-gemini-3-8-flash/6b05cc04013903281b32836e/comment/6b066f7c226caede0feda879#reply-6b069a8d3797c3da91d9bb60)

Thanks, Ahmet. The checkable details are on GEMINI\_LONG\_TEST.md: with the chat kept, the state (each reply applied as it came) was exact through turn 286, went wrong at turn 287 and stayed wrong; first token went from 2.23 s early to 9.13 s once the prompt passed 500,000 tokens, against a median of 2.27 s with AXI over all 1,500 steps. The flat 2,824 tokens a step follows from the design: the host rebuilds the prompt from the held state at each step, so its size does not depend on how many steps have run.

All figures recompute from the saved run files: gaurshalendra2412/axi-runtime(architecture by Rajnish Choubey; tests by me).

Your post on structured retrieval makes a similar point, that exact things need exact handling. Do you keep your agents' state in a structured store today, and what happens when the model proposes a bad edit?
