video video 19.9 122 |
|---|
LibreOffice Impress: a computer-use environment built from a one-line request
The real LibreOffice Impress 24.2 presentation app 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.
Claude Code built this environment from a one-line request in about 39 minutes, with only REA's build skill and MCP tools; How it was made has the request and the steps. LibreOffice Impress opens a three-slide presentation for a community garden meeting, Documents/garden-meeting.odp, at launch. Its second slide, Planting Schedule, lists three planting dates. The agent has to change that slide's title to Spring Planting Calendar and save, leaving its bullets alone. 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
- 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 presentation Documents/garden-meeting.odp, change the title of the second slide from Planting Schedule to Spring Planting Calendar, and save it.
bundle/artifacts/change-slide-title-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 |
|---|---|---|
new-title |
text_equals |
Documents/garden-meeting.odp |
bullets-kept |
text_equals |
Documents/garden-meeting.odp |
three-slides |
member_count |
Documents/garden-meeting.odp |
An .odp file is a zip, and REA reads content.xml inside it. The checks find the second slide by its name, Schedule (draw:name), and its frames by presentation:class, the role a placeholder plays, never by position or by LibreOffice's automatic style names: the title frame must read "Spring Planting Calendar" exactly, the outline frame's bullets must still read "Tomatoes: April 14", "Beans: April 28" and "Squash: May 5", and the presentation must keep its three slides (member_count). REA's draft on the first capture suggested all three, but picked the title and outline frames by their automatic style names, and every slide's title shares pr1; Claude Code switched both to the placeholder class. The second capture's draft, made after the presentation had been reopened from disk, suggested ten checks, nine of them on formatting LibreOffice rewrites when it saves a reloaded document; Claude Code discarded those.
Results
3 of 3 runs passed, about $0.82 per run.
| Run | Outcome | Turns | Cost | Video |
|---|---|---|---|---|
| 1 | passed | 14 | $1.34 | video |
| 2 | passed | 14 | $0.78 | video |
| 3 | passed | 14 | $0.33 | video |
Run it
You need Docker. agentenv-framework builds the computer: Ubuntu 24.04 with the app installed from Ubuntu's archive (libreoffice-impress 24.2.7).
pip install agentenv-framework==0.9.1431
hf download earakely-scale/LibreOfficeImpressFromRequestComputerEnv-REA --repo-type dataset --local-dir impress-request
agent-env run impress-request/bundle --task change-slide-title --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
Claude Code built this environment from a one-line request, given only REA's build skill and REA's MCP tools:
Build me a LibreOffice Impress environment where the agent changes a slide's title in a small presentation and saves it.
It asked only the skill's upfront questions, wrote no app-specific scripts, and finished in about 39 minutes.
It took a second capture. The first bundle never booted: its seeded LibreOffice profile still listed the presentation for document recovery, so LibreOffice opened its recovery screen instead of the presentation. Claude Code captured again, closing the presentation before the seed was saved and reopening it from the recent documents list. The steps were REA's usual ones:
- Capture. REA launched LibreOffice Impress on a Linux desktop and recorded its package, windows and opened files while the edit was made. It also recorded the app's state folders before and after.
- 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. - Task. The task's checks were validated against the capture: they fail on the starting state and pass on the captured end state.
- Witness. In a fresh computer, the edit was made through computer actions alone, and the checks were read at four stages. They held on the first try:
| Stage | Checks |
|---|---|
seed |
fail, as expected: the title reads Planting Schedule; the bullets and slide-count checks pass |
after_edit |
pass |
near_miss |
fail, as expected: the title was retyped as "Spring Planting Calender" |
after_reset |
fail, as expected: data/reset restored the seed |
The agent runs came after the build: Claude Code with Claude Sonnet 5.5 (--model anthropic/claude-sonnet-5-5 --no-emulate, on an amd64 host) solved the task 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 find the slide by its name, Schedule, which LibreOffice keeps in the file (Slide > Rename Slide shows it), and the title by its placeholder. Renaming the slide, or typing the new title into a new text box instead of the title placeholder, fails.
- The bullets are compared exactly, so any change to them fails.
- The seed holds LibreOffice's user profile as the capture left it, including its icon cache (
~/.config/libreoffice/4/cache, 600 files), with its document-recovery list cleared. LibreOffice started cleanly from it in the witness and in every run. - The computer installs whatever
libreoffice-impressUbuntu 24.04's archive holds at build time (24.2.7 for these runs); 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. LibreOffice Impress itself is not included: the computer installs it from Ubuntu's archive (libreoffice-impress 24.2.7) at build time, under its own licence (MPL-2.0).
- Downloads last month
- 76
