WebCoder: Scaling General Frontend Development with
Artifact-Grounded Agentic Reinforcement Learning

Preprint · arXiv:2610.23104

Zijun Dou1,2*, Zhen Yang1,2*†, Xijun Liu2,3, Dongzhuoran Zhou4, Aohan Zeng1,2, Jie Tang1†

1Tsinghua University   2Zhipu AI   3Beihang University   4University of Oslo

* Core contributors  ·  † Corresponding authors
Work was done when ZD, ZY, XL, AZ interned at Zhipu AI.

Webdev-Bench requirement satisfaction
72.8
▲ 8.0 from 64.8 base
Vision2Web average score
62.4
▲ 21.3 from 41.1 base
Webdev-Bench average over VS, FS, IS
79.8
▲ 7.0 from 72.8 base
Panel (a) shows frontend reproduction, generation and modification studied as separate task categories. Panel (b) shows one user request composing those capabilities over a continuous, stateful development process with multi-turn multimodal refinement.
From isolated frontend tasks to general frontend development. (a) Existing work typically studies frontend reproduction, generation, and modification as separate task categories. (b) In real-world development, a single user request often requires multiple capabilities to be composed within a continuous, stateful, and iterative development process, followed by multi-turn and multimodal refinement over the evolving application state.

Video

WebCoder in two minutes. Every number is taken from the paper. The editor, terminal and browser footage come from a real Webdev-Bench deliverable: the agent's own source, rebuilt and driven in a browser. The Vision2Web pages are the official reference screenshots and the agent's rendered output. The credit-assignment panel is an illustration of the mechanism, and is labelled as such. Music: “Inspired” by Kevin MacLeod (incompetech.com), licensed under CC BY 4.0.

Abstract

Real-world frontend development requires agents to compose reproduction, generation, modification, and repair over an evolving application state. Learning a general policy for this process requires translating heterogeneous execution feedback into task-aligned rewards and effective credit assignment across long sequences of interdependent actions.

We introduce WebCoder, a general frontend development agent trained with artifact-grounded agentic reinforcement learning. Our key idea is to assess diverse development activities through their effects on a shared executable artifact and its satisfaction of task requirements. We build Webdev-World, an executable environment that integrates code editing, application execution, browser inspection, and on-demand skills while preserving project state across interactions. An independent verifier evaluates the final application against task requirements to provide terminal rewards, while changes in intermediate artifact progress redistribute the resulting rollout advantage across development segments. Context compaction and message-tree sample construction support training on trajectories beyond a single context window while avoiding repeated loss computation on shared generated history.

We further introduce Webdev-Bench to evaluate composed development requirements within a single project. On Webdev-Bench, WebCoder-27B raises requirement satisfaction from 64.8 for its Qwen3.8-27B base model to 72.8, exceeding Claude-Opus-4.8 (65.1) and GPT-5.4 (59.6); on Vision2Web, it improves the average visual and functional score from 41.1 to 62.4, on par with Claude-Opus-4.8. Ablation studies confirm the contributions of artifact-grounded credit assignment and long-horizon training.

Method

Overview of the artifact-grounded agentic reinforcement learning framework: the agent builds a runnable project in Webdev-World, a verifier scores the final application against a checklist, artifact potentials redistribute the rollout advantage, and an ownership mask assigns tokens to training samples.
Overview of our artifact-grounded agentic reinforcement learning framework. WebCoder builds and refines a runnable project in Webdev-World through development tools and on-demand skills; an independent verifier scores the final application against the task checklist, artifact-based potentials redistribute the GRPO rollout advantage across trajectory segments, and an ownership mask assigns each generated token to one training sample.

Webdev-World

An executable environment that integrates code editing, application execution, browser inspection, and on-demand skills, while preserving project state across interactions. The agent sees the consequences of its own edits the way a developer does, through build results and the rendered page.

Artifact-grounded reward and credit assignment

An independent verifier scores the final application against the task's requirement checklist to produce the terminal reward. Changes in intermediate artifact progress then redistribute that rollout advantage across development segments, so a segment that actually moved the application forward is credited for it, while the token-weighted mean advantage set by the terminal reward is preserved.

Long-horizon training

Context compaction keeps long development sessions inside the context window, and message-tree sample construction lets a single trajectory train as several samples without computing the loss twice on shared generated history.

Webdev-Bench

Existing frontend benchmarks score one capability at a time. Webdev-Bench instead evaluates composed development requirements inside a single project: 40 tasks whose requirements arrive over several rounds, each with a hidden checklist, graded against the running application rather than against the source code.

Webdev-Bench overview: multi-round requirements over one project, evaluated on the running application against a hidden checklist.
Benchmark overview. Requirements accumulate over rounds within one project, and acceptance is judged on the running application.
Task statistics for Webdev-Bench, covering task tiers, starting conditions and requirement counts.
Task statistics. Tiers, starting conditions, and the distribution of requirements per task.

Results

Main results on Vision2Web and Webdev-Bench. Vision2Web (L2-frontend, 66 titles) reports the visual score (VS), functional score (FS), their average (Avg), and the delivery success rate (DSR). Webdev-Bench (40 tasks) reports requirement satisfaction (RS) together with its visual (VS), functional (FS), and interaction (IS) components, their average (Avg), and DSR. Undelivered tasks count as 0 in all score columns.
Model Vision2Web Webdev-Bench
VSFSAvgDSR RSVSFSISAvgDSR
Proprietary models
Claude-Opus-4.8 59.165.962.598.5% 65.175.070.784.173.7100.0%
GPT-5.4 51.364.457.997.0% 59.672.770.081.070.8100.0%
GPT-5 23.364.744.098.5% 53.564.065.874.664.5100.0%
Gemini-3-Pro 13.314.614.065.2% 48.065.858.568.560.2100.0%
Gemini-3-Flash 13.127.920.578.8% 56.665.864.885.068.195.0%
Seed-1.8 7.013.310.236.4% 52.666.563.871.563.6100.0%
Open-source models
Kimi-K2.5 35.161.048.192.4% 46.861.555.067.757.782.5%
MiMo-V2.5 38.266.552.487.9% 14.925.221.222.621.065.0%
Step-3.7-Flash 22.147.334.795.5% 10.820.014.019.015.960.0%
Qwen3.8-27B (our base model) 36.445.741.148.5% 64.877.968.879.872.895.0%
Qwen3.5-397B-A17B 35.667.151.4100.0% 28.739.031.936.534.080.0%
Qwen3.5-122B-A10B 20.239.029.687.9% 24.630.428.933.129.372.5%
Qwen3-VL-32B-Instruct 0.00.00.00.0% 2.56.35.44.44.650.0%
Qwen3-VL-8B-Instruct 0.00.00.00.0% 0.00.80.00.00.230.0%
WebCoder-27B 57.767.162.480.3% 72.881.973.890.879.8100.0%

Bold marks the best value in a column across all models; underline marks the second best.

Analysis

Training dynamics across reinforcement learning steps, showing reward and evaluation anchor scores.
Training dynamics. Reward and anchor scores over reinforcement learning steps.
Ablation study across all metrics, isolating artifact-grounded credit assignment and long-horizon training.
Ablations. Contributions of artifact-grounded credit assignment and long-horizon training.
Human evaluation results from pairwise comparisons between WebCoder and four opponent models.
Human evaluation. Pairwise preferences from annotators with frontend development experience.

BibTeX

@article{dou2026webcoder,
  title   = {WebCoder: Scaling General Frontend Development with
             Artifact-Grounded Agentic Reinforcement Learning},
  author  = {Dou, Zijun and Yang, Zhen and Liu, Xijun and
             Zhou, Dongzhuoran and Zeng, Aohan and Tang, Jie},
  journal = {arXiv preprint arXiv:2610.23104},
  year    = {2026}
}