Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

Webwright: Microsoft Research’s Open-Source Agent Framework Replaces Browser Clicks with Code

Microsoft’s open-source Webwright reimagines how AI agents navigate the web beyond single clicks.

MarkTechPost 2 min read

Webwright: Microsoft Research’s Open-Source Agent Framework Replaces Browser Clicks with Code

Microsoft Research’s AI Frontiers lab has released Webwright, an open-source framework that reimagines how AI agents interact with the web. Instead of predicting a single click or scroll at a time — the conventional approach — Webwright gives the agent a terminal, enabling it to write and execute Playwright code, run bash commands, and iterate on scripts to complete tasks.

The framework is built around three core components: a Runner, a Model Endpoint, and a terminal Environment. In each loop, the Runner sends context to the language model, which returns a thinking block and a shell command. The command runs in the Environment, returning logs, screenshots, or error messages, and the process repeats. This eliminates the need for step-by-step browser control, allowing agents to naturally express multi-step interactions — like filling out a form or selecting a date — as compact programs.

Benchmark Performance

On the Online-Mind2Web benchmark (300 tasks across 136 sites), Webwright powered by GPT-5.4 achieved 86.67% overall accuracy, the highest among open-source harness recipes. On the Odysseys benchmark, which evaluates long-horizon tasks spanning multiple websites, Webwright scored 60.1%, a 35.1% improvement over the previous state-of-the-art (44.5%) and a 79.4% improvement over the base GPT-5.4 performance of 33.5%.

Overcoming Challenges

Two key engineering challenges were addressed: premature completion and context explosion. To prevent the agent from falsely claiming success, a self-reflection gate was added, requiring it to run a final verification script and judge success before emitting a 'done' flag. For context length, historical data is compacted every 20 steps into a summary.

Cost and Small Model Support

Claude Opus 4.7 required fewer steps per task (mean 21.9 vs 26.3 for GPT-5.4), but its higher pricing made the average per-task cost higher ($6.09 vs $2.37). Smaller models like Qwen3.5-9B achieved 66.2% on hard tasks when paired with pre-built tool scripts, demonstrating viability for low-cost deployments.

Webwright is open-source and available on GitHub, with support for OpenAI, Anthropic, and OpenRouter backends.

React