Gym-Anything: Turn any Software into an Agent Environment
Organizations: CMU
Abstract
Computer-use agents hold the promise of assisting in a wide range of digital economic activities. However, current research has largely focused on short-horizon tasks over a limited set of software with limited economic value, such as basic e-commerce and OS-configuration tasks. A key reason is that creating environments for complex software requires significant time and human effort, and therefore does not scale. To address this, we introduce Gym-Anything, a framework for converting any software into an interactive computer-use environment. We frame environment creation itself as a multi-agent task: a coding agent writes setup scripts, downloads real-world data, and configures the software, while producing evidence of correct setup. An independent audit agent then verifies evidence for the environment setup against a quality checklist. Using a taxonomy of economically valuable occupations grounded in U.S. GDP data, we apply this pipeline to 200 software applications with broad occupational coverage. The result is CUA-World, a collection of over 10K long-horizon tasks spanning domains from medical science and astronomy to engineering and enterprise systems, each configured with realistic data along with train and test splits. CUA-World also includes CUA-World-Long, a challenging long-horizon benchmark with tasks often requiring over 500 steps, far exceeding existing benchmarks. Distilling successful trajectories from the training split into a 2B vision-language model outperforms models 2 its size. We also apply the same auditing principle at test time: a separate VLM reviews completed trajectories and provides feedback on what remains, improving Gemini-3-Flash on CUA-World-Long from 11.5% to 14.0%. We release all code, infrastructure, and benchmark data to facilitate future research in realistic computer-use agents.
Figures & tables
| Software | Task Description | Privileged Information | VLM Checklist |
|---|---|---|---|
| AstroImageJ | Analyze the WASP-12 (RA: 06:30:32.79, Dec: +29:40:20.4) astronomical image sequence from January 5-6, 2016, to identify evidence of a planetary transit. If a transit is detected, determine the transit depth, mid-transit time (BJD_TDB or JD), and transit duration in hours. Using a host star radius of 1.599 solar radii, estimate the planet’s radius in Jupiter radii. Save your findings and uncertainties to ~/Documents/transit_analysis.txt . | Target: WASP-12b. Expected Transit Depth: ~1.4% (0.014 relative flux). Expected Duration: ~2.7 hours . Expected Planet Radius: ~1.79 Jupiter radii (calculation: sqrt(0.014) * 1.599 R_sun * conversion factors). The dataset is real ground-based imagery from Jan 5-6, 2016, so the light curve will have noise but the transit dip should be clearly visible. | 1. The agent loads the sequence of astronomical images into AstroImageJ. 2. The agent selects the target star (WASP-12) and appropriate comparison stars for differential photometry. 3. The agent generates and displays a light curve plot showing the star’s flux over time. 4. The agent fits a model or trend line to the data to characterize the transit. 5. The agent reports the measured transit depth, mid-transit time, and duration. 6. The agent calculates and reports the planet’s radius in Jupiter radii. |
| Apache OpenOffice Writer | You are a Clinical Research Associate (CRA) performing an Interim Monitoring Visit (IMV) for Protocol ZN-994 at Site 142. Using the visit data in /home/ga/Documents/visit_notes.json , create a formal IMV Report in Apache OpenOffice Writer saved as /home/ga/Documents/IMV_Report_Site_142.odt . The report must include a document header with the Protocol and Site numbers, page numbers in the footer, and sections using ‘Heading 1’ style for ‘Visit Details’, ‘Subject Enrollment’, ‘Protocol Deviations’, and ‘Action Items’. […] | Protocol Number: ZN-994 . Site Number: 142 . Enrollment counts from the input file: Screened=18, Randomized=14, Completed=3, Discontinued=2 . The calculated ‘Active’ count must be exactly 9 (14 - 3 - 2 = 9). The Action Items table contains items AI-02 and AI-03 which have an ‘Open’ status and must be formatted with yellow highlight or red text. The four required sections are ‘Visit Details’, ‘Subject Enrollment’, ‘Protocol Deviations’, and ‘Action Items’. | 1. Verify the document has a header with Protocol and Site numbers, and a footer with page numbers. 2. Verify the four required sections are present and use the ‘Heading 1’ style. 3. Verify the Subject Enrollment section contains a table with the correct base counts. 4. Verify the ‘Active’ count in the Subject Enrollment table is correctly calculated. 5. Verify the Protocol Deviations list and Action Items table structure. 6. Verify that Action Items with an ‘Open’ status are conditionally formatted. |
| Aerobridge | Calculate the total flight duration in minutes for all flight plans belonging to the operator ‘SkyHigh Surveyors’ that occurred in October 2023. Save the total number of minutes to /home/ga/Documents/utilization_report.txt . | The correct total flight duration for ‘SkyHigh Surveyors’ in October 2023 is 135 minutes (acceptable tolerance: 133-137 minutes). This is calculated from two flights: Flight 1 on Oct 5 (10:00-10:45, 45 mins) and Flight 2 on Oct 12 (14:00-15:30, 90 mins). Distractor flights (wrong operator or wrong month) must be excluded. | 1. Locate flight plans belonging to the operator ‘SkyHigh Surveyors’. 2. Identify the flight plans that occurred in October 2023. 3. View the details or times of the relevant flights to calculate duration. 4. Open or create the utilization report file. 5. Save the correct total flight duration to the report file. |
| Liverpool Cancer iChart | Using the Liverpool Cancer iChart Archive app, determine the drug-drug interaction between Dabrafenib and Ketoconazole (located in the Antifungal agents category). Leave the application on the screen displaying the interaction result. | Dabrafenib is a cancer drug (BRAF inhibitor) and Ketoconazole is an antifungal agent. The interaction between them is clinically significant due to potent CYP3A4 inhibition by ketoconazole, which increases dabrafenib AUC by 71% and Cmax by 33% . The VLM should look for an interaction result indicating a severe/red warning or mentioning CYP3A4 inhibition. | 1. The Liverpool Cancer iChart Archive application is opened. 2. Dabrafenib is selected as the cancer drug. 3. The Antifungal agents category is accessed. 4. Ketoconazole is selected as the comedication. 5. The interaction result between Dabrafenib and Ketoconazole is displayed on the screen. |
| Environment | Scale | Task Properties | Infrastructure | ||||||
| Benchmark | Agent | Interactive | Platform | # SW | # Tasks | Long-Horizon ⋆ | Econ. Cov. § | Auto-Create | Train Split |
| Static Datasets | |||||||||
| Mind2Web Deng et al. (2023) | Web | Web | 137 | 2,350 | — | 7/22 | |||
| AITW Rawles et al. (2023) | CUA | Android | 357+ | 715K | — | 4/22 | |||
| AndroidControl Li et al. (2024) | CUA | Android | 833 | 15,283 | — | 7/22 | |||
| OmniACT Kapoor et al. (2024) | CUA | Lin / Win / macOS / Web | 65 | 9,802 | — | 6/22 | |||
| Model | Avg. Score | Pass Rate |
|---|---|---|
| Large Models | ||
| Gemini 3 Flash | 50.1 | 22.6 |
| Kimi-K 2.5 | 37.1 | 12.8 |
| Small Models | ||
| Qwen3-VL-2B | 12.7 | 1.6 |
| Qwen3-VL-4B | 19.3 | 3.9 |
| Model | Avg. Score | Pass Rate |
|---|---|---|
| Max 500 steps, $5 cost cap | ||
| Gemini 3 Flash | 36.2 | 7.5 |
| GPT-5.4 | 22.7 | 3.0 |
| Sonnet 4.6 | 20.5 | 6.0 |
| Kimi-K 2.5 | 33.9 | 5.5 |
| Max 2000 steps, no cost cap | ||
| Teacher | Student Score | ||
|---|---|---|---|
| Teacher | Score | Q3-VL-2B | Q2.5-3B |
| Opus 4.5 | 53.5 | 19.3 | 8.5 |
| Sonnet 4.5 | 45.5 | 17.5 | 9.8 |
| Gemini 3 Flash | 44.0 | 16.3 | 8.3 |
| Kimi-K 2.5 | 39.8 | 25.3 | 15.8 |
| Gemini 3 Pro | 39.3 | 15.8 | 7.0 |
| Train | GIMP | G. Earth | OpenEMR | Slicer 3D | Avg. |
|---|---|---|---|---|---|
| 200 steps | 60.1 | 13.4 | 18.2 | 3.3 | 23.8 |
| 50 steps | 64.2 | 13.4 | 8.5 | 4.5 | 22.7 |
| No distillation | |||||
| Q3-VL-2B | 47.0 | 7.2 | 0.0 | 0.0 | 13.6 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Tier | Budget | Strategy |
|---|---|---|
| k1 (Economic Core) | 100 | Highest GDP products overall |
| k2.1 (Strategic) | 100 | Healthcare, Education, Protective Services, Transportation—20 per domain |
| k2.2 (STEM) | 100 | Architecture/Engineering, Computer/Math, Life/Physical/Social Science |
| k3 (Domain Diversity) | 116 | Round-robin across all 22 SOC major groups ( 5 per group) |
| k4 (Niche) | 44 | Products unique to single occupations or domains |
| k5 (Category Fill) | 40 | Uncovered software categories, largest GDP first |
| Metric | Value |
|---|---|
| Occupations covered | 894 |
| Software categories | 1,400 |
| Products in catalog | 16,600 |
| Products passing all filters | 3,400 |
| Products selected | 488 |
| Substitutions made | 429 |
| Runner | Use case |
|---|---|
| DockerRunner | Single-machine development; requires Docker daemon |
| QemuApptainerRunner | HPC/SLURM clusters; runs QEMU VMs inside rootless Apptainer containers |
| QemuNativeRunner | Bare-metal Linux or macOS; supports Apple Silicon via HVF |
| AVFRunner | macOS on Apple Silicon; uses Apple Virtualization Framework with Rosetta 2 |
| AVDApptainerRunner | Android apps; wraps Android emulator in Apptainer |
| AVDNativeRunner | Android apps; runs emulator directly on host (macOS HVF or Linux KVM) |
| # | Check | Criterion |
|---|---|---|
| 1 | Software running | Application is visible and in the correct starting state |
| 2 | Data files valid | All project/data files exist with non-zero sizes |
| 3 | Permissions correct | Output directories are writable by the agent user |
| 4 | Stale outputs cleared | No leftover result files from prior runs |
| 5 | Timestamp recorded | /tmp/task_start_timestamp exists |
| 6 | Data elements present | All precondition data (bugs, records, assets) verified |
| Environment | Round 1 Finding | Round 2 Outcome | Checklist |
|---|---|---|---|
| PEBL | Task description specifies wrong response keys; task is uncompletable | Description rewritten; correct keys are now inferred from on-screen instructions | (a) |
| SeisComP | evidence_docs/ is completely empty; zero screenshots | Full screenshot evidence produced; real USGS earthquake data verified | (e) |
| Graphite | Task 2 description is a step-by-step UI walkthrough | Description rewritten to state only the objective | (a) |
| Score | Label | Description |
|---|---|---|
| 1 | Not Similar | Completely unrelated tasks (different goals, different domains). |
| 2 | Somewhat Similar | Minor thematic overlap but fundamentally different tasks. |
| 3 | Some Steps Similar | Tasks share some common substeps (e.g., both navigate to a location) but have distinctly different end goals. This is common and acceptable. |
| 4 | Very Similar | Tasks are extremely similar—knowing how to do one would directly help with the other. Nearly interchangeable. |
| 5 | Same Rephrased | Essentially the same task with different wording. |
| 6 | Duplicate | Identical or near-identical tasks. |
| Metric | Value |
|---|---|
| Total pairwise comparisons | 434,699 |
| Flagged pairs (score ) | 2,847 (0.65%) |
| Score distribution | |
| Score 1–2 (not similar) | 1.1% |
| Score 3 (some steps similar) | 98.2% |
| Score (contaminating) | 0.65% |
| Pipeline Stage | Model | Harness | Section |
| GDP-Grounded Software Selection | |||
| Category extraction | GPT-5-High | – | § 2.2 |
| Category deduplication | Gemini-3-Flash-Preview | – | § 2.2 |
| Product enumeration | GPT-5-High | – | § 2.2 |
| Access-barrier evaluation | Gemini-3-Pro-Preview | – | § 2.2 |
| GDP attribution | GPT-5-High | – | § 2.2 |
Computer-Use Agents
Computer-use agents perceive and operate graphical interfaces and software tools to complete tasks across websites, apps, and desktops.
See all 153 papers