earakely-scale's picture
REA computer-use environment, v0.1.0
15fe97e verified
|
Raw History Blame Contribute Delete
4.6 kB
metadata
license: apache-2.0
pretty_name: Inkscape computer-use environment (REA)
tags:
  - computer-use
  - cua
  - gui-agent
  - rl-environment
  - agentenv
  - desktop
  - linux
  - rea
  - vector-graphics
  - svg
  - design

Inkscape: a computer-use environment

An agent solving the task in Inkscape

The real Inkscape 1.2 vector graphics 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.

Inkscape opens a bake sale poster. The agent has to change the headline from Spring to Summer with Inkscape's text tool and save the drawing. It sees only the screen and acts only with the mouse and keyboard.

Watch

  • Agent runs (Claude Code with Claude Sonnet 5.5): run 1, run 2, run 3
  • Scripted witness, which proves the task can be done through the computer: witness.mp4

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

The task

In the bake sale poster open in Inkscape, change the headline from "Spring Bake Sale" to "Summer Bake Sale", then save the poster.

bundle/artifacts/summer-headline-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
headline value_equals Documents/poster.svg
price-kept value_equals Documents/poster.svg
date-kept value_equals Documents/poster.svg

The checks read the saved SVG as XML. They find the text by its layer label and id, never by position. The headline must read "Summer Bake Sale" exactly, and the price and date lines must be unchanged.

Results

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

Run Outcome Turns Cost Video
1 passed 10 $0.66 video
2 passed 10 $0.41 video
3 passed 10 $0.17 video

Run it

You need Docker. agentenv-framework builds the computer: Ubuntu 24.04 with the app installed from Ubuntu's archive (inkscape 1.2.2).

pip install agentenv-framework==0.9.1431
hf download earakely-scale/InkscapeComputerEnv-REA --repo-type dataset --local-dir inkscape
agent-env run inkscape/bundle --task summer-headline --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 Inkscape 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 fresh computer, and the verifier failed before, passed after and failed again after data/reset. 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

  • The checks expect each line of text to stay one tspan inside its text element, in the layer labelled Layer 1. A correct-looking poster whose text was moved to another layer, ungrouped or split over two lines fails.
  • The headline must match exactly, so a stray double space fails.
  • The computer uses the inkscape version in Ubuntu 24.04's archive at build time; it is not pinned.
  • Three runs is a small sample: the solve rate shows the task is solvable, not how hard it is.

Licences

The bundle code, the task and the synthetic seed files are Apache-2.0. Inkscape itself is not included: the computer installs it from Ubuntu's archive (inkscape 1.2.2) at build time, under its own licence (GNU GPL).