ΒΆPaper Feed

Issue 43 Β· Pick 07 AI / ML βœ“ read

Evolving Agent Interfaces

Saaket Agashe, Yuzhe Yang, Gonzalo Gonzalez-Pumariega, Bhuvan Chandra Koduru, Chih-Lun Li, Jiachen Yang, Ang Li, Xin Eric Wang

TL;DR: Agent S4 turns interface design β€” the actual API a computer-use agent acts through β€” into something the agent system discovers for itself. A meta-agent reads a task agent's raw trajectories on unlabeled synthetic tasks, hypothesizes better tools ("stop typing into the spreadsheet cell by cell; here's a bulk-write function"), and commits them as code to a repository. Population-based evolution then selects repositories by performance on held-out validation tasks that the meta-agent never sees. With a 27B open model (Qwen3.8-27B), the evolved repository hits 21.3% binary success on OSWorld V2 β€” above GPT-5.5 (13.0%) and Claude Opus 4.8 (20.6%) β€” at roughly 1.10 per task versus25.50 and $72.40. The headline 3.8Γ— gain deserves careful decomposition (most of it comes from the harness, not evolution), but the framing β€” interfaces as evolvable software selected under a strict information firewall β€” is genuinely new and likely to spread.

The problem: agents are trapped in interfaces built for someone else

A computer-use agent (CUA) is a language model that operates a computer. The standard setup gives it a human-flavored interface: it sees screenshots, it emits clicks and keystrokes. This is faithful to "use a computer like a person," but it is a terrible API. The paper opens with two vivid failure modes: an agent typing a spreadsheet update cell by cell when one line of code would do it, and an agent dumping two thousand lines of a file through a terminal screenshot to find one function. Every programmatic shortcut must be laundered through pixels β€” type the command through a virtual keyboard, read the result off a partly-occluded terminal window.

The field's response has been to hand-build better interfaces: accessibility trees, application APIs, code execution tools, skill libraries. But each of these is a human design decision frozen before deployment. Every new application, workflow, or model release exposes new mismatches, and a researcher has to read trajectories, diagnose, and ship a new harness. Methods that distill test-time experience into reusable "skills" don't escape this either β€” a skill is a composition of the preset action space, so it can reorder what the interface allows but never extend it.

The paper's framing move: the interface is just software. Software can be read, diagnosed, and rewritten by an agent that can read trajectories and write code. So make interface design an agent capability.

The mechanism: evolution with an information firewall

The system has three roles with deliberately asymmetric access to information:

The task agent is fixed throughout: Qwen3.8-27B inside a Prime Agent harness, which is essentially a persistent IPython kernel β€” the model emits Python/shell, the harness runs it and returns output. The agent gets a repository R installed on its filesystem containing executable interfaces \mathcal{I}(R) (Python modules) and usage knowledge K(R) (docstrings, workflow notes, lessons from past trajectories). A fixed prompt tells it where the toolkit lives and how to list capabilities, read docs, and call functions.

The meta-agent (same model, different harness) is the "scientist." It receives a parent repository plus that repository's saved trajectories on 30 synthetic training tasks β€” and crucially, no success labels. The synthetic tasks have constant-zero dummy evaluators; the builder prompt explicitly tells the meta-agent that zero means nothing and an agent's claim of success is not verified success. It must reason from raw evidence: repeated work, error messages, screenshots, fragile workflows. From this it writes code β€” adding a bulk-edit spreadsheet function, wrapping Chrome DevTools Protocol access, revising a docstring that agents kept misusing.

The selection loop is population-based evolution. Each step, an operator schedule picks mutation (one parent, revised) or crossover (two parents, merged into one coherent descendant β€” not necessarily the union). Parents are chosen by binary tournament on validation score: 15 official benchmark tasks whose instructions, trajectories, and scores are completely hidden from the meta-agent. Every descendant joins the population alongside its parents, forming a lineage DAG, so earlier designs can be revisited and recombined. After 30 construction steps, the best repository by validation score is frozen and evaluated on the full benchmark.

Population of repositories Meta-agent reads unlabeled training trajectories, writes interface code mutation / crossover Task agent (fixed) 30 synthetic tasks β†’ trajectories 15 validation tasks β†’ score parents new repo information firewall: meta-agent never sees validation tasks, trajectories, or scores Tournament selection by held-out validation score favors changes that generalize val score who breeds next
The construction/selection split. The meta-agent builds from training evidence alone (no success labels of any kind); validation performance influences the system only through which repositories get selected as parents. This is the mechanism meant to prevent overfitting interfaces to the tasks that motivated them.

The firewall is the aha. Without labels, the meta-agent can't reward-hack; it can only do what a good engineer does when debugging someone else's logs β€” spot wasted effort and missing capabilities. Selection pressure toward generalization is applied externally, by survival on tasks nobody constructing the code ever reads. This is the same separation that makes train/validation splits work in ML, applied to an agent that writes software, and it echoes older work on validation-based curtailment in genetic programming (which the authors cite).

The starting point matters too: the seed repository is tiny and deliberately generic β€” about 550 lines, 15 functions (screenshot, click, accessibility tree, Chrome tab listing, GNOME settings, OOXML text extraction). Everything else in the final repository was added by evolution. On ScienceBoard, the repo grows from 15 functions to 64.

The results β€” and the decomposition you should insist on

The headline comparison on OSWorld V2 (108 long-horizon desktop tasks; binary = full completion, the metric that actually separates agents):

OSWorld V2 binary success (108 tasks)binary success (%)051015205.56Qwen CUA (fixed, 27B)13GPT-5.520.6Opus 4.8 (batched)21.3Agent S4 evolved (27B)Table 2. Costs per task: $1.39, $25.50, $72.40, $1.10 respectively. Closed-model results from the OSWorld V2 paper's reference harness.

A 27B open model beating Opus 4.8 at 1.5% of the cost is the attention-grabber. But the paper's own ablations (Table 4) let you decompose the 3.8Γ— gain, and you should:

Where the 3.8x actually comes from (OSWorld V2, same Qwen3.8-27B model)binary success (%)051015205.56Qwen CUA (screenshot harness)15.7Prime Agent, no repository19.4+ seed repository (15 fns)21.3+ evolution (30 steps)Tables 2 and 4. The biggest jump is switching from a click-and-screenshot harness to a persistent IPython code-execution harness β€” before any evolved interface exists.

Read honestly: going from the fixed screenshot harness to a bare code-execution harness contributes 5.6β†’15.7 points. The hand-written 550-line seed adds ~3.7 more. Evolution β€” the paper's actual contribution β€” adds the final ~1.9 points of binary success (and raises partial score from 44.9% to 46.9%, or 51.1% with a scratch VM). So the correct claim is not "evolution gives 3.8Γ—"; it's "giving a small model direct programmatic access gives most of the gain, and evolution reliably improves on top of a strong code harness." The abstract's framing leans on the full 3.8Γ— against the weakest baseline. The cost comparison against closed models is also confounded: the reference runs use a 500-step screenshot harness, which is inherently token-hungry.

That said, the evolution signal is real and consistent. On ScienceBoard β€” 169 tasks across six niche scientific applications (Celestia, ChimeraX, GRASS GIS, KAlgebra, Lean, TeXstudio) where generic interfaces simply don't exist β€” a fresh evolution run from the same seed lifts success from 55.0% (seed) to 58.6%, versus 41.4% for the fixed-interface Qwen CUA. The biggest per-app gain is KAlgebra, 48%β†’68%, driven by an evolved calculator interface that evaluates many expressions in one call. The evolved repo includes a ChimeraX command interface and GRASS GIS modules that run against the live session β€” exactly the kind of thing no general harness ships with and no benchmark-agnostic engineer would write.

What evolution actually builds

Section 7.2 and the appendix case studies are where the paper earns its claims qualitatively. The authors taxonomize evolved interfaces as system-wide, app-specific, cross-app, and task-specific. On OSWorld V2 without a scratch VM, evolution adds 4 new interfaces and 127 extensions to existing ones β€” most growth deepens what the agent has rather than sprawling.

The best case study: an expense-claim task requiring receipts from email cross-checked against bank charges. The fixed-interface agent opens receipt emails one at a time, fights five download warnings, and needs eight scrolls plus four "Load more" clicks to find a $500 charge β€” roughly 90 steps of visual navigation. The evolved agent calls browser.api, which sends requests from inside the already-logged-in browser tab and returns structured data; it pulls attachment URLs, fetches PDFs with curl, reads them with pdftotext, and queries the bank dashboard the same way. In another task (Appendix B.4), the seed agent spends 37 tool calls implementing its own Chrome DevTools client from scratch β€” missing dependencies, wrong target IDs, WebSocket debugging β€” to read a chat message the evolved agent retrieves at call 11 with an existing helper. That task: 299 calls and score 0.50 for the seed, 167 calls and score 1.00 for the evolved repo.

This is the right mental model for what evolution contributes: it moves setup, debugging, and verification out of the trajectory and into reusable code, converting fragile 50-step GUI dances into single verified calls.

Two analysis findings worth noting. First, giving the meta-agent a scratch VM to test its code improves partial score (51.1% vs 46.9%) but the best binary success came from evolution without it β€” the extra app-specific interfaces help make progress but don't necessarily close tasks, and the paper doesn't fully explain this. Second, long-horizon CUA evaluation is noisy enough that a single validation run misleads selection: on ScienceBoard, a repository that scored 73.3% on first evaluation dropped to a 60.0% mean on re-evaluation, so the authors re-score top candidates every five steps. If you've run agent evals, you already knew variance is brutal; seeing it corrupt an evolutionary selection signal is a useful concrete warning.

What to make of it

If this holds, the division of labor in agent systems changes. Today, interface improvements ship as framework releases written by humans reading failure logs. Agent S4 demonstrates that loop can be closed: trajectories in, code out, selection by held-out survival, no reward signal required during construction. It composes cleanly with model improvements (the task agent is untouched) and sits in the same family as ADAS, Darwin GΓΆdel Machine, and AlphaEvolve β€” but evolving the agent-computer interface specifically, with a stricter information asymmetry than most of those systems, and from verifier-free experience, which matters because real-world task streams don't come with evaluators.

Reasons for skepticism, beyond the decomposition above. The 15 validation tasks are drawn from the official benchmark and are included in the 108-task test set — ~14% of the final score was available as a selection signal across 30 evolution steps, and with observed run-to-run variance that selection could absorb meaningful benchmark-specific signal even though the meta-agent never reads those tasks. The synthetic training tasks were authored by frontier models explicitly studying OSWorld V2's "challenge-phenomenon taxonomy," so distributional alignment with the benchmark is by design, not luck — a genuine distribution shift test (evolve on one benchmark, evaluate on another with no re-run) is absent; the ScienceBoard result required a fresh evolution. Evolution's marginal gain over the seed on binary success is ~2 points on 108 tasks (about two tasks), within plausible noise given the variance the authors themselves document — the ScienceBoard seed→evolved gap (6 tasks) and the qualitative efficiency evidence are what make me believe the effect anyway. And everything is one model, one harness; whether evolved repositories transfer across task agents is untested.

None of that undoes the framing. Even read conservatively β€” "a code-execution harness plus a small generic toolkit plus 30 rounds of unsupervised interface evolution lets a 27B model match frontier models at ~1/50th the cost" β€” this is the most practically useful computer-use result in a while, and the open-sourced recipe is simple enough to replicate.

Where to spend your time: Section 3 plus Table 4 for the mechanism and the honest decomposition, then Appendix B.4–B.5 for the case studies, which convey better than any aggregate number what an evolved interface actually is. Section 7.3 is a two-minute read every agent-benchmark practitioner should internalize.