How To Cut Browser Agent Costs 76x with Smart Cache Design

How To Cut Browser Agent Costs 76x with Smart Cache Design
Key Takeaways

  • Asana cut the estimated model cost of one browser-agent workflow by 76 times, from at least $36.21 to $0.47 per run on GPT-6.1 Sol, through cache optimizations alone, with no model changes.
  • The core mechanism: caching the agent’s full interaction history in an append-only structure and batch-pruning screenshots 20-at-a-time, which kept the request prefix stable across up to 19 consecutive calls and pushed cache hit rates to 89%.

Cache design, not model selection, cut Asana’s browser-agent costs by a factor of 76. A 144-run study published October 8, 2026 found that switching to append-only history caching and batch screenshot pruning dropped the estimated cost per run from $36.21 to $0.47 on GPT-6.1 Sol, while cutting runtime by 5 times. The same optimizations applied to Asana’s existing production model cut costs 29 times and accelerated runtime 4 times.

Diagnosing the Cache Leak

Browser agents resend their full interaction history on every model call: system prompts, tool definitions, page text, screenshots. Prompt caching can cut that cost sharply, since cache reads price at 0.05x to 0.1x the standard input rate on the tested models, but only when the request prefix stays identical between calls. Asana’s production setup was breaking that prefix on almost every step.

The culprit was the agent’s history management. At each step, it removed the previous screenshot and trimmed older text to stay within a history budget. Both edits touched an earlier part of the request, resetting the cache on nearly every call. The baseline numbers showed the cost: at least $36.21 per run, at least 22.5 minutes of runtime, and some runs hitting the step limit before finishing. That gap between cache potential and actual cache reuse was the entire optimization opportunity.

Append-Only History

The first fix was structural. Asana stopped modifying history mid-run and moved to an append-only model: once a tool result or page text is added, it stays put for subsequent calls within a window. A cache marker sits on the latest tool result to signal where the stable prefix ends.

With the history no longer being edited, each request looks nearly identical to the last one, apart from the newly appended turn. That sameness is exactly what the caching mechanism needs. Cache hit rates climbed because the longest unchanged prefix extended much further into each request. For teams building their own agents, the practical question is where in the context construction mutable elements are being inserted, anything that changes an early part of the request kills the cache for everything downstream.

Batch Pruning Screenshots

Screenshots were the second source of cache churn. The original agent dropped the previous screenshot every step, which meant the visual portion of the context changed constantly. The fix: retain up to 20 screenshots, then prune back to one in a single batch operation rather than trimming one per step.

That 20-to-1 ratio creates a window of roughly 19 consecutive calls where the cached history, screenshots included, stays unchanged. Cache reuse holds across that window, then resets when the batch prune fires. The tradeoff is temporarily carrying more visual context than any single step strictly needs, but the cache stability more than offsets that cost on the models tested. Teams with smaller context windows or models where cache reads are expensive should tune the ratio, but the principle holds: fewer history edits means more cache hits. Inference cost management is increasingly where agent economics are decided, and this is a concrete example of why.

Sizing the History Budget

Caching strategy alone isn’t enough if aggressive pruning is constantly breaking the prefix. Asana raised its history budget from 120,000 to 480,000 characters. The larger budget keeps older text in place longer, which reduces the frequency of trim operations that would otherwise reset the cache.

The right number varies by model. A budget that’s too tight forces constant pruning and kills cache reuse; one that’s too generous inflates non-cached input costs. The practical approach is to run the batch pruning and append-only changes first, then tune the budget by measuring cache reads per call against cost per run. Different frontier models have different context window sizes and pricing curves, so the optimal budget for GPT-6.1 Sol won’t necessarily hold on another model.

Measuring What Actually Matters

Asana’s 144-run study covered GPT-6.1 Sol and three other frontier models. On GPT-6.1 Sol, the optimized agent hit an 89% cache hit rate, with costs falling to $0.47 per run. These are Asana’s own published figures and have not been independently audited. The company notes that a cheaper agent failing more tasks isn’t actually cheaper, which is why the study tracked answer quality alongside cost and runtime.

The metrics worth tracking on any similar agent: cache reads per call, history churn rate, cost per run, runtime, and task completion rate. Provider-specific counters give the cache read data; a full session log gives everything else. Asana has released the browser navigation changes in StackAI and is developing tooling to make similar experiments easier to run. The $0.47 figure is a ceiling on what this approach achieves with current pricing, teams hitting cost walls on GPT-6 token costs should run the cache audit before reaching for a cheaper model.

Riley Cross
Riley Cross

Riley covers AI agents, workflow automation, and the tools building the autonomous future of work. With a focus on practical deployment, Riley helps builders and operators understand which agentic frameworks and platforms are actually worth using.

📰 Journalists welcome — cite Auton AI News with attribution. Press & Media → | press@autonainews.com