One frustration with AI agents is that a simple browser task can become surprisingly expensive when it requires dozens of interactions. Every click, page read, and decision can trigger another model request, often sending information the agent has already processed.
Asana's StackAI team investigated that problem with help from GPT-6 Astra running in Codex. The company reports that it optimized a browser agent to run five times faster and reduce estimated model costs by 76 times in a specific test workflow.
The biggest improvement did not come from changing models alone. The team changed how the agent cached its browsing history, retained context, and removed screenshots. Those engineering decisions helped make a more capable model affordable for the task.
Asana's experiment shows how prompt-cache reuse and careful browser-history management can change the cost of an AI agent.
What Was Asana Trying to Fix?
Asana uses its StackAI platform to help organizations automate work across business applications. A browser agent can navigate websites, fill in forms, and collect information without requiring someone to perform every step manually.
For its experiment, the team used a public demonstration book catalog. The agent had to collect six fields for each of 32 books, meaning it needed to retrieve 192 individual facts while continuing to navigate the site correctly.
The original workflow repeatedly sent a growing history of webpage text and screenshots to the model. At scale, that repeated processing became a significant cost and could also slow down the task.
The Hidden Problem: Prompt Caching Wasn't Working Well
Prompt caching allows a model to reuse an unchanged prefix of an earlier request. On the models in Asana's experiment, cached input cost between 5% and 10% of the standard input price, so keeping reusable context intact could make a substantial difference.
The agent already cached its fixed instructions and tool definitions, but not its growing browsing history. It also removed screenshots and trimmed older text at nearly every step, changing the request prefix and disrupting cache reuse.
That is the overlooked engineering detail: simply enabling prompt caching isn't enough. If an application keeps rewriting the information it wants to reuse, much of the potential saving disappears.
“This would have taken me one to two months by hand. With GPT-6 Astra in Codex, it took about a week.”
Frank Hidalgo, PhD, StackAI CTO at Asana. Source: OpenAI's published case study.
The Three Changes That Made the Difference
1. Cache the browsing history
Asana extended caching to the agent's browsing history, placing a cache marker at the latest tool result. This helped the model reuse the unchanged portion of the request rather than repeatedly processing the same information at full input cost.
2. Remove screenshots in batches
Instead of deleting older screenshots after every interaction, the agent allowed up to 20 screenshots to accumulate before pruning back to the newest one. That kept the earlier history stable across more calls, allowing roughly 19 consecutive calls to reuse the cached history between cleanup steps.
3. Increase the history budget
The team increased the history budget from 120,000 to 480,000 characters. This reduced premature trimming, which could discard facts the agent needed later and force it to revisit pages it had already read.
Why the fixes worked together
- Stable history: Repeated requests could reuse more cached context.
- Less redundant processing: Existing page information did not need to be handled from scratch as often.
- More room for context: The agent had a better chance of retaining details until the task was complete.
These changes were tested together, not assumed to work based on theory alone. Asana's team ran controlled comparisons before selecting the configuration it ultimately shipped.
How Much Cheaper and Faster Was the Agent?
Asana tested six combinations of caching and screenshot policies at two history budgets, using four models with three runs per condition. That produced 144 main-study runs, followed by a 12-run follow-up.
| Configuration | Estimated Cost Per Run | Reported Outcome |
|---|---|---|
| Original production setup, Model B | At least $36.21 | Some runs hit the step limit before completion |
| Optimized workflow, Model B | $1.24 | 29× lower cost than the original setup |
| Optimized workflow, GPT-6.1 Sol | $0.47 | 76× lower cost than the original setup |
The 76× figure combines workflow optimization with a switch from the original production model to GPT-6.1 Sol. Looking at GPT-6.1 Sol alone, caching and history changes reduced estimated cost from $1.97 to $0.47 per run—roughly four times cheaper.
In the optimized configuration, about 89% of input tokens came from cache. The best GPT-6.1 Sol runs took approximately four minutes, versus at least 22.5 minutes for the original production setup.
The Overlooked Result: More Context Improved Completion
Cost wasn't the only issue. In the smaller 120,000-character history budget, GPT-6.1 Sol returned an answer in only three of 18 runs, while Model C returned none of 18; many runs hit the step limit before finishing.
With the 480,000-character budget, every run for both models returned an answer. The optimized workflow also completed the task and returned the correct result in every best-condition run, according to the companies' report.
This does not prove that bigger context windows always make AI more accurate. It shows that, in this experiment, preserving enough useful browsing history was essential to completion—and that caching helped keep the additional context affordable.
What Developers Can Learn From Asana's Experiment
What to adopt
- Keep reusable prompt prefixes stable.
- Cache conversation or browsing history where supported.
- Batch screenshot cleanup instead of editing history every step.
- Track cached tokens, completion rate, runtime, and cost per task.
What to watch
- History can grow toward the model's context limit.
- Cache breaks can increase costs unexpectedly.
- More context isn't automatically better for every task.
- A small benchmark doesn't predict every production workload.
Asana recorded requests, traces, and results in its Command platform so the team could review the experiment before turning findings into tickets, pull requests, and production changes. The process combined automated experimentation with human review rather than letting an agent deploy changes without oversight.
The company says it has shipped the browser-navigation changes in StackAI and is developing tools to make further experiments easier to repeat. That is the more lasting lesson: measure a workflow, identify its real bottleneck, test one change at a time, and verify the results.
Watch a Codex Workflow Demonstration
This third-party walkthrough shows how Codex can support planning, browser interaction, and multi-step development tasks. It is useful background on the tooling, but it is not a recording of Asana's exact experiment.
Related video: OpenAI Codex in 7 Minutes, by Developers Digest.
Final Takeaway: Better Agent Engineering Beats Blind Model Switching
Asana's results highlight a frequently missed part of AI automation: a more capable model cannot compensate for a workflow that repeatedly resends the same context. Caching, history management, and repeatable testing can change the economics of a browser agent significantly.
The headline numbers are promising, but they came from a defined task and a small number of runs per condition. Developers should measure cost, runtime, correctness, and completion rate on their own workflows before expecting similar savings.
Ultrawide Monitors for AI Developers
Tracking multi-step AI agent behaviors, API logs, and headless browser automation side-by-side requires massive screen real estate. Upgrade to a premium curved or ultrawide monitor to debug your code and monitor prompt caching without constantly switching windows.
Check Ultrawide Monitors on Amazon → Affiliate Disclosure: We may earn a commission from qualifying purchases at no additional cost to you. Our recommendations are based on the product's relevance and usefulness to our readers.What Else Can OpenAI Codex Do?
Asana used GPT-6 Astra inside Codex to optimize its browser agent, but how does this platform actually work for everyday developers? Read our complete guide to OpenAI Codex to discover how these cloud-based AI agents handle multi-step software engineering, automate complex browser tasks, and execute code in parallel.
Read the OpenAI Codex Guide →Sources and further reading
OpenAI — Asana cuts model costs 76× in browser tests with GPT-6.1 Sol, October 9, 2026
StackAI by Asana — Technical explanation of caching, history, and testing
Developers Digest — OpenAI Codex in 7 Minutes
Oxford Academic — Alan Turing, Computing Machinery and Intelligence
Frequently Asked Questions About Asana's AI Browser Agent
How did Asana make its browser agent 76× cheaper?
Asana combined browser-history caching, batch screenshot pruning, a larger history budget, and GPT-6.1 Sol. The 76× comparison uses the original production setup as its baseline, so the improvement was not caused by caching alone.
How much did the optimized browser agent cost per run?
OpenAI and Asana report an average estimated model cost of $0.47 per run for the optimized GPT-6.1 Sol workflow. That figure covers estimated model usage for the tested task, not the entire cost of operating every browser-agent system.
Why did prompt caching perform poorly in the original agent?
The original workflow removed screenshots and trimmed older history at nearly every step, changing the earlier parts of each request. Because prompt caching reuses unchanged prefixes, those edits repeatedly undermined cache reuse.
What did Asana's browser-agent test actually do?
The agent collected six fields for each of 32 books from a public demonstration catalog, retrieving 192 facts. The study tested six caching and screenshot policies, two history budgets, and four models, with three runs per condition.
Can any AI browser agent achieve the same savings?
Not necessarily. Results depend on the model, pricing, history structure, caching support, number of steps, and task difficulty. Developers should run their own evaluations and compare correctness, completion rate, runtime, and total cost.
No comments:
Post a Comment