NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ProgramDistill: From Interactive Web Apps to Verifiable Reference-Guided SWE Tasks

Jeonghye Kim, Minseon Kim, Young Jin Kim, Matheus Pereira, Marc-Alexandre Côté, Alessandro Sordoni, Xingdi Yuan, Zhengyan ShiarXiv 2026

TL;DR

ProgramDistill introduces a novel software engineering benchmark that evaluates AI coding agents on their ability to infer desired application behavior by interacting with a working "reference" web app and implementing it in an incomplete codebase. Using an automated, multi-agent pipeline called mine-craft-patch, the authors generated 4,063 verifiable tasks across 26 applications, revealing that even frontier models struggle significantly as the complexity and depth of behavioral dependencies increase.

What Problem Does This Paper Address?

Most state-of-the-art coding benchmarks (like SWE-bench) evaluate AI agents by giving them explicit textual instructions, issue descriptions, or pre-written unit tests. However, real-world software engineering is rarely that straightforward. Developers frequently have to figure out how a feature should work by interacting with a prototype, a legacy version, or a competitor's product—a paradigm known as reference-guided development.

To bridge this gap, the authors address the challenge of evaluating coding agents in a "behavior-to-code" setting. This requires an agent to interactively probe a hidden reference application, deduce its stateful logic and user interface (UI) requirements, modify an incomplete codebase to replicate that behavior, and validate its own solution.

Figure 1: ProgramDistill evaluates reference-guided software engineering for interactive web applications. A coding agent is given a working reference application whose source implementation is hidden and an editable current application with missing functionality. The agent interacts with the reference to infer the intended behavior, restores that behavior by modifying the current implementation, and validates the result against the reference.

Methods

The authors developed ProgramDistill using a fully automated framework called the mine–craft–patch pipeline, which avoids human-annotation bottlenecks:

  1. Mine: An LLM agent explores a live web application to discover reproducible behaviors, recording them as replayable browser-interaction traces (clicks, text inputs, etc.) along with expected outcome signals. These are organized into a tree of prerequisite lineages (e.g., you must log in before creating a cart).
  2. Craft: The framework automatically "factorizes" the application by masking (deleting) the source code responsible for specific mined behaviors. It creates atomic tasks (masking a single feature) and cumulative tasks (masking multiple dependent features along a lineage path). It validates these tasks by ensuring that prerequisites still work but the target feature fails.
  3. Patch: Coding agents are given the masked repository and a high-level problem statement. They must use a browser CLI tool to interact with the hidden reference app and their own live-reloading current app to implement a fix.

The benchmark evaluates agents under two settings: partial-application reconstruction (fixing the masked code) and full-application reconstruction (rebuilding the app from a minimal scaffold).

Figure 2: Overview of the mine–craft–patch pipeline. Mining discovers replayable behaviors and organizes them into a prerequisite trace tree by extending previously verified traces. Crafting constructs atomic repair tasks by masking one behavior, or combines masks along a lineage to construct progressively deeper cumulative repair tasks. Patching asks a coding agent to restore the masked functionality from a working reference, then replays the corresponding lineage traces to measure how much of the behavior chain has been recovered.

Datasets

The benchmark consists of 4,063 verifiable tasks derived from 1,975 unique behaviors across 26 interactive web applications. The application corpus includes:

  • 18 OSWorld-derived applications: Controlled, diverse environments covering tools like AWS Console, MailHub, and BudgetWise.
  • 8 Real-world open-source projects/SaaS clones: Larger, complex codebases with heterogeneous architectures, including clones of Trello, Jira, Baserow, and Calendly.

Key Insights and Ideas

  • The Compositional Challenge (Restoration Depth): The difficulty of a task scales sharply with its "restoration depth"—the number of broken dependent features along a workflow. While agents are highly proficient at fixing isolated bugs, they struggle to chain multiple fixes together without breaking existing prerequisites.
  • The Effort Allocation Paradox: As tasks become deeper and more complex, the lines of code required to fix them grow exponentially. Paradoxically, the authors found that agents spend less effort per target behavior on observation and validation as the task deepens, leading to cascading failures.
  • Observation-Intensive Strategy Wins: The top-performing model (GPT-6 Astra) succeeded not by writing code faster, but by adopting an observation-intensive, edit-light workflow. It spent significantly more steps verifying its own implementation through browser checks and made highly selective, precise code edits.

Key Results

The authors evaluated nine frontier LLM models on a stratified 300-task suite (ProgramDistill-300):

  • Full-Application Reconstruction: GPT-6 Astra achieved the highest workflow recovery at 49.2%, followed by Claude Opus 5 at 28.8% and GPT-5.6 Sol at 21.1%.
  • Partial-Application Reconstruction: While GPT-6 Astra solved 100% of atomic (depth-1) tasks, its success fell to 64.0% at depth-8. Claude Opus 5 dropped even more severely, from 96% at depth-1 down to 32% at depth-8.
  • Validation Blindspots: A qualitative analysis showed that agents frequently failed because their self-validation was superficial (e.g., checking if a page loads or passes syntax checks rather than re-testing the exact interactive workflow they just modified).

Limitations and Future Work

  • Lack of Multimodal Vision: Currently, agents only receive structured text-based browser observations (accessibility trees, visible text, element IDs). Integrating actual screenshot inputs would allow agents to reason about visual fidelity and layout bugs.
  • Environment Constraints: The benchmark is currently limited to self-contained web applications. Future iterations could expand to open-ended settings involving external APIs, non-deterministic states, or mobile/desktop native applications.

Summary updated

BibTeX
@misc{kim2026programdistill,
  author = {Jeonghye Kim and Minseon Kim and Young Jin Kim and Matheus Pereira and Marc-Alexandre Côté and Alessandro Sordoni and Xingdi Yuan and Zhengyan Shi},
  title = {{ProgramDistill: From Interactive Web Apps to Verifiable Reference-Guided SWE Tasks}},
  year = {2026},
  eprint = {2609.18805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.18805},
}
Figure