AgentStudio: A Toolkit for Building General Virtual Agents

Longtao Zheng, Zhiyuan Huang, Zhenghai Xue, Xinrun Wang, Bo An, Shuicheng Yan

TL;DR

AgentStudio is an open-source toolkit designed to accelerate the development of general virtual agents capable of operating any software via unified GUI and API actions. By providing a lightweight interactive environment, task-customization tools, and a suite of specialized benchmarks, it allows researchers to rigorously evaluate and decompose core agent abilities like UI grounding, learning from video tutorials, and success detection.

Figure 1: AgentStudio focuses on three desiderata for general virtual agents. For general grounding in any software, it provides universal observation and action spaces, a GUI annotation tool, and the GroundUI dataset for enhancing and evaluating GUI grounding. To leverage digital knowledge, our tools enable recording human trajectories and annotating videos on real-world devices, which can be used to create datasets like IDMBench to evaluate agents’ abilities to learn from videos. To support open-ended learning, AgentStudio offers interactive environments with language feedback, tools for task creation, and CriticBench to benchmark the ability for success detection. The overall agent performance is measured through an online task suite developed using our task creation tool.

What Problem Does This Paper Address?

While large language models (LLMs) have driven massive progress in AI agents, building a general virtual agent—one that can seamlessly use any computer software to boost human productivity—remains an unsolved challenge.

Existing environments suffer from several critical limitations:

  1. Domain Specificity: Most are restricted to narrow domains (e.g., web browsing only) and cannot handle cross-application workflows.
  2. Simplified Modalities: They often ignore real-time video observations or fail to support both graphical user interface (GUI) and application programming interface (API) actions simultaneously.
  3. Coarse Evaluation: Current benchmarks typically rely solely on a binary "success rate." This makes it difficult to diagnose why an agent failed, obscuring fundamental flaws in sub-capabilities like precise mouse-clicking or self-correction.

Methods

AgentStudio introduces a "trinity" of an interactive environment, specialized tools, and comprehensive benchmarks:

  • Universal Observation and Action Spaces: Unlike web-only simulators, AgentStudio unifies text, images, and video recordings into its observation space. Agents can execute arbitrary Python code to interact with software internals via APIs, or fall back to low-level keyboard and mouse operations when APIs are unavailable.
  • Real-Time Interactive Environment: Operating either locally or via a lightweight Virtual Network Computing (VNC) remote desktop, the environment runs in real time. It provides binary rewards alongside natural language feedback explaining failure reasons, enabling agents to learn through trial and error.
Figure 2: Comparison of observation and action spaces between web browser environments and AgentStudio. AgentStudio provides the most generic observation and action spaces, which signifi- cantly expands the task space, allowing for developing and evaluating agents in real-world settings.
  • Human-in-the-Loop Tools: The toolkit includes a command-line trajectory recorder, a step-level GUI annotator, and a video refinement editor to easily record human demonstrations, trim video clips, and aggregate atomic actions into high-level steps.

Datasets

Using its integrated tools, the authors curated an extensive evaluation ecosystem:

  • Online Task Suite: 205 real-world tasks spanning applications like VS Code, Google Workspace, Office suites, and GIMP, split into Single-API, Single-GUI, and Compositional (cross-application) tasks.
  • GroundUI: An 18K single-step instruction-screenshot dataset (with a 1K subset for efficient evaluation) designed to test an agent's ability to locate precise pixel coordinates for UI elements.
  • IDMBench: A dataset containing 345 multi-step trajectories to evaluate Inverse Dynamics Modeling (IDM)—the ability of a model to correctly label actions within a video clip.
  • CriticBench: A dataset of 350 trajectories designed to evaluate success detection, testing whether a model can accurately determine if a task was completed successfully.
Figure 3: Task composition.

Key Insights and Ideas

  • The "Visual Distraction" Effect: Surprisingly, providing screenshot observations for tasks that can be solved purely via text/APIs can actually degrade model performance. Models often get distracted by the visual layout and attempt error-prone GUI actions instead of executing clean API calls.
  • Resolution vs. Grounding Accuracy: Current vision-language models (VLMs) perform better on mobile interfaces than on web or desktop screens. This is primarily because mobile screens have lower resolutions, meaning UI elements occupy a larger relative pixel area, making them easier to target accurately.
  • Catastrophic Error Accumulation: Even specialized grounding models struggle with precise pixel coordinates. In multi-step tasks, tiny coordinate inaccuracies compound over time, leading to rapid trajectory failures.

Key Results

  • The Human-Machine Gap: On the overall online task suite, humans achieve a 72.2% success rate, whereas state-of-the-art models like Claude 3.5 Sonnet and GPT-4o max out at 36.6% and 35.6%, respectively.
  • Professional Software Struggles: For complex creative applications like GIMP (image editing), all tested commercial and open-source models scored a 0% success rate, compared to 54.6% for humans.
  • Grounding Specialization Wins: On the GroundUI-1K benchmark, SeeClick (a specialized UI grounding model) achieved the highest overall accuracy at 61.1%, substantially outperforming general-purpose proprietary models like Gemini 1.5 Pro (35.2%) and GPT-4o (13.4%).
Figure 4: Accuracy of location/type match in the sample task.

Limitations and Future Work

The authors note that real-world complexity means automatic evaluators can occasionally return incorrect judgments. Additionally, the automated instruction-recaptioning pipeline (powered by GPT-4o) may still leave some ambiguous prompts in GroundUI. To ensure high reproducibility, the online benchmark tasks are currently evaluated within an Ubuntu Docker container, which represents a minor engineering tradeoff against the messy diversity of true, bare-metal operating systems. Future work will focus on improving general critic models to enable more robust self-correction.

Summary updated

BibTeX
@inproceedings{zheng2025agentstudio,
  author = {Longtao Zheng and Zhiyuan Huang and Zhenghai Xue and Xinrun Wang and Bo An and Shuicheng Yan},
  title = {{AgentStudio: A Toolkit for Building General Virtual Agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=axUf8BOjnH},
}
Figure