# DeskForge
### Dense Supervision from Desktop Environments for Computer-Use Agents
[A. Said Gurbuz](https://saidgurbuz.github.io/)
1,2 ·
[Ahmed Nassar](https://research.ibm.com/people/ahmed-nassar)
2 ·
[Sunghwan Hong](https://sunghwanhong.github.io/)
1 ·
[Marc Pollefeys](https://cvg.ethz.ch/team/Prof-Dr-Marc-Pollefeys)
1,3 ·
[Peter W. J. Staar](https://research.ibm.com/people/peter-staar)
2
1ETH Zurich ·
2IBM Research Zurich ·
3Microsoft
[**Project page**](https://saidgurbuz.github.io/deskforge/) · [**Paper**](https://arxiv.org/abs/2610.02320) · [**DeskForge-1M**](https://huggingface.co/datasets/docling-project/DeskForge-1M) · [**DeskForge-Qwen3.5-4B**](https://huggingface.co/docling-project/DeskForge-Qwen3.5-4B) · [**DeskForge-Gemma4-E4B**](https://huggingface.co/docling-project/DeskForge-Gemma4-E4B)
DeskForge **generates desktops instead of recording them.** It composes real
Linux applications into controlled multi-window scenes, varies their state,
content, layout, appearance and resolution, and fuses screenshots,
accessibility trees and window geometry into dense annotations of *every
visible element*. Each executed click is recorded with the screen before and
after it.
This repository contains the environment and the full generation pipeline used
to build **DeskForge-1M**: 1.21M annotated desktop observations, 159.7M element
instances and 917K recorded click transitions.
Controllable scenes Applications, initial states, staged content, window layout and stacking, appearance presets and display resolution are all set by a seeded scene specification. |
Dense, occlusion-aware labels Every visible element with type, text, geometry, hierarchy and window ownership; partly covered controls keep only their exposed region. |
Recorded interactions Clicks inside visible regions, each stored as a (St, at, St+1) transition with what changed. |
## Demo
https://github.com/user-attachments/assets/2f4c5406-7ca3-48d3-8215-5df6f703c540
*The same planner drives InternVL3.5-8B before (left) and after (right)
fine-tuning on DeskForge-1M, on a WebArena-Infinity GitLab task. The full demo
is on the [project page](https://saidgurbuz.github.io/deskforge/).*
## Contents
- [Installation](#installation)
- [Quick start](#quick-start)
- [What a capture contains](#what-a-capture-contains)
- [Configuring scenes](#configuring-scenes)
- [Generating at scale](#generating-at-scale)
- [Quality checks and inspection](#quality-checks-and-inspection)
- [Repository layout](#repository-layout)
- [Citation](#citation)
## Installation
**Requirements.** An x86_64 Linux machine with `dnf` (developed and run on
RHEL 9) and the system Python 3 (≥ 3.9) with PyGObject, which capture needs to
talk to the accessibility bus. No root access, desktop session or physical
display is needed: every scene runs in its own headless Xvfb session.
```bash
git clone https://github.com/Saidgurbuz/deskforge.git
cd deskforge
# Python dependencies for the system interpreter (PyGObject is python3-gobject).
python3 -m pip install --user pyyaml pillow numpy tqdm
# Download and extract Xvfb, D-Bus, xdotool, Xfce and the desktop applications
# into ./tools (userland only, nothing is installed system-wide), then the
# theme, icon and dock packs used by the appearance presets.
bash scripts/setup_tools.sh
export PYTHONPATH=$PWD/src
alias deskforge="python3 -m deskshot.cli"
deskforge install-styles
# Check that a headless session starts and the accessibility bus answers,
# then that every application launches on this machine.
deskforge validate
deskforge preflight
```
The package's working name is `deskshot`. With pip ≥ 21.3, `pip install -e .`
installs the same CLI as `deskforge` (and `dsd`).
## Quick start
**1. Compose a scene without running it.** A seed fully determines the scene:
applications, their states and content, layout, appearance and resolution.
```bash
deskforge scene --seed 820000 --describe-only
```
**2. Capture it.** One headless desktop is started, the applications are
launched and arranged, and the screen is annotated.
```bash
deskforge scene --seed 820000 --include-chrome --output runs/first_scene
```
**3. Record an interaction episode.** After the first observation, DeskForge
clicks sampled actionable elements inside their visible regions and captures the
screen after every step.
```bash
deskforge scene-episode --seed 820001 --steps 5 --output runs/first_episode
```
**4. Look at the result.** Render boxes over a capture, or browse a whole run in
the local inspector (boxes, per-sample statistics and audit flags).
```bash
python3 scripts/render_annotations.py runs/first_scene --out runs/first_scene_viz
python3 scripts/inspect_annotations.py # http://localhost:8000
```
## What a capture contains
Every observation is written as a set of files sharing one stem:
| File | Content |
| --- | --- |
| `