WebCoder: Scaling General Frontend Development with Artifact-Grounded Agentic Reinforcement Learning
Zijun Dou, Zhen Yang, Xijun Liu, Dongzhuoran Zhou, Aohan Zeng, Jie Tang
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.
Create a lesson
Metadata
- Comments
- 50 pages, 22 figures, 11 tables. Project page: https://douzj-llm.github.io/WebCoder/
Related papers
Emotion-Aware and Context-Grounded Dialogue Agents for Personalized Video Game Interactions
Shared title terminologycs.AIMichael Adjeisah, Jin Zhang, Pierluigi Vito Amadori et al.
STRIDE: Strategy-to-Tactics Retrieval-Guided Skill Disclosure and Evolution for Agentic Reinforcement Learning
Shared title terminologycs.AIShixin Hong, Wanqing Cui, Yibo Hu et al.
SLICR: Strategy Logic-Guided Multi-Agent Reinforcement Learning
Shared title terminologycs.AIArshia Rafieioskouie, Matthew Lucas, Tzu-Han Hsu et al.
Learning Inside Types: Epistemic Typestates for Safe Multi-Agent Reinforcement Learning
Shared title terminologycs.AILorenzo Bacchiani, Mario Bravetti, Giovanni Pau et al.
Think, Compress, Answer: Reinforcement Learning for Multimodal Grounding via Reasoning Compression
Shared title terminologycs.AIJinbae Seo, Hyeongjun Kwon, Jiyoung Lee et al.
Learning Which Device to Call: Online Tool Grounding for LLM Agents in IoT
Shared title terminologycs.AIYichen Liu, Xiaochong Jiang, Haoran Yu et al.