earakely-scale's picture
REA computer-use environment, v0.1.0
35fa020 verified
|
Raw History Blame Contribute Delete
4 kB
metadata
license: apache-2.0
pretty_name: Mousepad computer-use environment (REA)
tags:
  - computer-use
  - cua
  - gui-agent
  - rl-environment
  - agentenv
  - desktop
  - linux
  - rea
  - text-editor

Mousepad: a computer-use environment

An agent solving the task in Mousepad

The real Mousepad 0.6 text editor running on an Ubuntu 24.04 desktop, as an agentenv computer environment. An agent completes the task only through screenshots, mouse and keyboard, and a verifier grades the saved files with no model.

Mousepad opens a shopping list. The agent has to add a new line, buy milk, at the end and save the file, without disturbing the rest of the list. It sees only the screen and acts only with the mouse and keyboard.

Watch

Each video is the computer's own screen recording at 10 frames per second.

The task

Add buy milk as a new line at the end of the to-do list open in Mousepad, then save it.

bundle/artifacts/add-milk-check/verify.py reads the app's files through the computer's data/get view and passes only if every check holds:

Check Kind File
milk lines_present Documents/todo.txt
bread lines_present Documents/todo.txt
one-milk line_count Documents/todo.txt

The checks read the saved list: buy milk is there exactly once, and buy bread is still there.

Results

3 of 3 runs passed, about $0.56 per run.

Run Outcome Cost Video
1 passed $0.91 video
2 passed $0.39 video
3 passed $0.39 video

Run it

You need Docker. agentenv-framework builds the computer: Ubuntu 24.04 with the app installed from Ubuntu's archive (mousepad 0.6.1-1build2).

pip install agentenv-framework==0.9.1431
hf download earakely-scale/MousepadComputerEnv-REA --repo-type dataset --local-dir mousepad
agent-env run mousepad/bundle --task add-milk --agent claude-code --model <model>

The agent needs a model provider configured for agentenv. --task smoke only boots the computer, with no agent. bundle/README.md describes the bundle in detail.

How it was made

REA built this environment from a real session with the app:

  1. Capture. REA launched Mousepad on a Linux desktop and recorded its package, windows and opened files while a scripted user made the edit. It also recorded the app's state folders before and after.
  2. Export. REA turned the capture into an agentenv computer_app. It installs the app, seeds the starting files, starts the app, and waits for its main window. It also serves typed views of the app's files for verifiers.
  3. Task. The task's checks were validated against the capture: they fail on the starting state and pass on the captured end state.
  4. Witness and runs. Scripted computer actions solved the task in a kept computer, and the verifier failed before and passed after. Then an agent solved it 3 times, each run recorded.

What's inside

bundle/      the agentenv bundle: envs/ (app module, seed files), tasks/, artifacts/ (verifier), evals/
media/       witness and agent-run recordings (MP4) with short GIF previews
results.json the runs above, with each check's result

Limits

  • A simple task: it shows the environment working end to end rather than testing a strong agent.
  • The computer uses the mousepad version in Ubuntu 24.04's archive at build time; it is not pinned.
  • Three runs is a small sample.

Licences

The bundle code, the task and the synthetic seed files are Apache-2.0. Mousepad itself is not included: the computer installs it from Ubuntu's archive (mousepad 0.6.1-1build2) at build time, under its own licence (GPL-2.0-or-later).