LiveWorkspace: Externalizing Visual Understanding as Persistent Shared State for Screenshot-to-Code Agents
Shijun Xiao, Zonghui Yang, Xinrong Chen, Hao Liu, Wensheng Zhang, Yongqiang Tang
Key points
From the paper's conclusion- These findings support treating visual understanding as a persistent shared working state throughout code generation, execution, and modification.
Abstract
Screenshot-to-Code requires coding agents to sustain visual understanding across code generation, execution, and revision. We introduce LiveWorkspace, a visual coding harness that externalizes this understanding as Shared Visual State (Shared VS), an implementation-independent representation of visual hierarchy, node attributes, and layout relations. LiveWorkspace constructs and retains \textit{Target} from screenshots and recovers \textit{Current} from browser execution in the same schema. Structured Diff and implementation bindings guide code modifications; user edits update \textit{Target} and reuse the alignment loop. Using GPT-5.2 for both methods, LiveWorkspace improves end-to-end Avg by 1.8 points on Design2Code and 2.0 on ScreenBench over a control with matched model-call counts and stagewise budget limits. Further experiments demonstrate reuse of constructed Shared VS across coders and improvements in iterative repair. LiveWorkspace also achieves 93.0\% edit success across 100 controlled editing cases. These findings support treating visual understanding as a persistent shared working state throughout code generation, execution, and modification.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Repository-Context-Guided Image Understanding for Agentic Software DevelopmentarXiv · 2026
- A Survey of Image-to-Code Generation for Software EngineeringarXiv · 2026
- RefCraft: Benchmarking Visual-Reference-Conditioned Agentic Generation through Web DevelopmentarXiv · 2026
- Vision-as-a-Tool: Visual Harness for Multimodal Agentic CodingarXiv · 2026
- WebVibe: Multimodal Interactive Website Generation via Reverse Synthesis and Visual Self-DistillationarXiv · 2026
- InterWebCoder: Learning Interactive Webpage Generation from Executable Tests via Reinforcement LearningarXiv · 2026