SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.13909 · ICLR · 2025

Efficient Agent Training for Computer Use

Pengfei Liu, Yanheng He, Jiahe Jin

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.13909.json · badge: /api/ran/2505.13909.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
GAIR-NLP/PC-Agent-E canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
clean_fail_and_error Ran
ran, violated the contract we drafted
GAIR-NLP/PC-Agent-E/postprocess/refinement.py
code served (permissive licence) · get_code("4250070126900a96")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import json
import tempfile
import shutil

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a test JSONL file with valid entries
jsonl_file = os.path.join(temp_dir, 'test_record.jsonl')
with open(jsonl_file, 'w', encoding='utf-8') as f:
    f.write(json.dumps({'action': 'click', 'screenshot': 'screenshot_1.png'}) + '\n')
    f.write(json.dumps({'action': 'type', 'screenshot': 'screenshot_2.png'}) + '\n')

# Create corresponding markdown file
md_file = os.path.join(temp_dir, 'test_record.md')
with open(md_file, 'w', encoding='utf-8') as f:
    f.write('# Test Markdown\n')

# Create dummy screenshot files
screenshot_1 = os.path.join(temp_dir, 'screenshot_1.png')
screenshot_2 = os.path.join(temp_dir, 'screenshot_2.png')
with open(screenshot_1, 'w') as f:
    f.write('dummy')
with open(screenshot_2, 'w') as f:
    f.write('dummy')

# Define a mock remove_screenshot function
def remove_screenshot(path):
    if os.path.exists(path):
        os.remove(path)

# Make remove_screenshot available in the global scope for the function
import builtins
builtins.remove_screenshot = remove_screenshot

ARGS = {
    'file_path': jsonl_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
clean_tracker_interface Ran
ran, honoured the contract we drafted
GAIR-NLP/PC-Agent-E/postprocess/refinement.py
code served (permissive licence) · get_code("c357e4535b022512")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import json
import tempfile
import numpy as np
from PIL import Image

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a valid tracker screenshot (small, with light gray background)
def create_tracker_screenshot(path):
    """Create a minimal valid tracker screenshot with #f0f0f0 background"""
    width, height = 200, 200
    bg_color = (240, 240, 240)  # #f0f0f0 in RGB
    img = Image.new('RGB', (width, height), bg_color)
    img.save(path)

# Create a non-tracker screenshot (different background)
def create_non_tracker_screenshot(path):
    """Create a screenshot that doesn't match tracker interface"""
    width, height = 200, 200
    bg_color = (100, 100, 100)  # Different color
    img = Image.new('RGB', (width, height), bg_color)
    img.save(path)

# Create test screenshots
tracker_screenshot_path = os.path.join(temp_dir, "tracker_screen.png")
non_tracker_screenshot_path = os.path.join(temp_dir, "non_tracker_screen.png")
create_tracker_screenshot(tracker_screenshot_path)
create_non_tracker_screenshot(non_tracker_screenshot_path)

# Create a test JSONL file with entries
jsonl_file_path = os.path.join(temp_dir, "test_data.jsonl")
with open(jsonl_file_path, 'w', encoding='utf-8') as f:
    # Write some valid entries
    entry1 = {
        "screenshot": "non_tracker_screen.png",
        "action": "click",
        "element": "button",
        "rect": [10, 20, 100, 50]
    }
    entry2 = {
        "screenshot": "tracker_screen.png",
        "action": "type",
        "element": "input",
        "rect": [10, 20, 100, 50]
    }
    entry3 = {
        "screenshot": "non_tracker_screen.png",
        "action": "scroll",
        "element": None,
        "rect": None
    }
    json.dump(entry1, f, ensure_ascii=False)
    f.write('\n')
    json.dump(entry2, f, ensure_ascii=False)
    f.write('\n')
    json.dump(entry3, f, ensure_ascii=False)
    f.write('\n')

# Create markdown file (required for cleanup)
md_file_path = jsonl_file_path.replace('.jsonl', '.md')
with open(md_file_path, 'w', encoding='utf-8') as f:
    f.write("# Test Markdown\n")

# Define helper functions that the main function depends on
def get_file_size_kb(file_path):
    """Get file size in KB"""
    return os.path.getsize(file_path) / 1024

def remove_screenshot(screenshot_path):
    """Remove a screenshot file"""
    if os.path.exists(screenshot_path):
        os.remove(screenshot_path)

# Make these available in the global scope for the function
import builtins
builtins.get_file_size_kb = get_file_size_kb
builtins.remove_screenshot = remove_screenshot

ARGS = {
    "file_path": jsonl_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
screenshot_of_tracker Ran
ran, violated the contract we drafted
GAIR-NLP/PC-Agent-E/postprocess/refinement.py
code served (permissive licence) · get_code("4e3517904e50135f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from PIL import Image
import io

# Create a minimal valid tracker screenshot in memory
def create_tracker_screenshot():
    """Create a small screenshot with the expected background color."""
    width, height = 100, 100
    # Create image with background color #f0f0f0 (240, 240, 240)
    bg_color = (240, 240, 240)
    img = Image.new('RGB', (width, height), bg_color)
    
    # Save to bytes buffer
    buffer = io.BytesIO()
    img.save(buffer, format='PNG')
    buffer.seek(0)
    return buffer

# Create a temporary file-like object
screenshot_buffer = create_tracker_screenshot()

# Mock the get_file_size_kb function that's called in screenshot_of_tracker
def get_file_size_kb(path):
    """Mock function to return file size in KB."""
    if hasattr(path, 'seek') and hasattr(path, 'tell'):
        current_pos = path.tell()
        path.seek(0, 2)
        size = path.tell()
        path.seek(current_pos)
        return size / 1024
    return 50

# Inject the mock function into the module namespace
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'get_file_size_kb', get_file_size_kb)

# Create a real temporary file for the function to use
import tempfile
with tempfile.NamedTemporaryFile(suffix='.png', delete=False) as tmp:
    screenshot_buffer.seek(0)
    tmp.write(screenshot_buffer.read())
    tmp_path = tmp.name

ARGS = {
    'screenshot_path': tmp_path,
    'sample_size': 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (fixture:KeyError)
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
screenshot_of_tracker 1 other paper
1 dated earlier
2412.17589 (2024-12)
PC Agent: While You Sleep, AI Works -- A Cognitive Journey into Digital World

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Scaling up high-quality trajectory data has long been a critical bottleneck for developing human-like computer use agents. We introduce PC Agent-E, an efficient agent training framework that significantly reduces reliance on large-scale human demonstrations. Starting with just 312 human-annotated computer use trajectories, we further augment them by synthesizing diverse alternative action decisions with Claude 3.7 Sonnet. Trained on these enriched trajectories, our PC Agent-E model achieved a remarkable 141% relative improvement, and even surpassed the Claude 3.7 Sonnet by 10% in relative terms on WindowsAgentArena-V2, an improved benchmark we also released. By integrating robust human computer use skills with automated AI data synthesis capabilities, our method not only brought substantial improvements over training on human trajectories alone, but also significantly surpassed direct distillation from Claude 3.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.13909")
get_code_for_paper("2505.13909")
have("2505.13909")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.13909.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.13909.svg)](https://syntology.ai/paper/2505.13909)

Connect an agent — have() is free.