99.2% on WebVoyagerState-of-the-art browser and computer-use agents
Research/24 Sep 2026 · 6 min read

The agent that gets better every run: 79% faster, 67% fewer tokens

JHVRSJ
Jayoo Hwang, Vansh Ramani and Shourya Vir Jain
After two rounds of learning, against the first run
79%Faster after learning
67%Fewer fresh input tokens
438Model rounds, down from 885
0.16MTokens per task, down from 0.49M

The experiment

We tested Ramain on realistic long-horizon tasks. With no prior knowledge, the agent completed every task, but slowly and with detours. The baseline was about 6.3 minutes and 44 model rounds per task.

Then Ramain learned from its successful trajectories, in two rounds.

BaselineExploreThe agent finds its way through each task from zero.
Round oneExtract the workflowSuccessful runs become step-by-step guidance.
Round twoMuscle memoryRoutine steps become scripts that run without the model.

Round one: extract the workflow

Workflow extraction turns successful trajectories into procedural guidance. Wall time fell 68%, from 6.3 minutes to 2 minutes per task. Fresh input tokens dropped by nearly half.

Round two: turn the procedure into muscle memory

An optimization agent wrote reusable scripts from the trajectories. These subroutines do routine steps in code, with no model round at all. Total model rounds fell from 885 to 438. Against the baseline, tasks ran 79% faster and used one third of the fresh input tokens.

Figure 1 · Average tokens per taskMillions
0.49M
0.25M
0.16M
Baseline+ Workflow+ Subroutines
Each round of learning cuts the token cost of the same task. Model rounds fell from 885 to 438, and wall time fell from 6.3 to 2 minutes after round one.

Production performance compounds

The first deployed version of an agent is its least experienced one. Each later run draws on more procedural knowledge, so the agent gets faster and cheaper as the workflow repeats.

LearningWorkflow memoryEfficiency

See Ramain run your own workflows.

Your first deployed run is the slowest one Ramain will ever do. We show it learning on your own work in one call.