SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.17589 · 2024

PC Agent: While You Sleep, AI Works -- A Cognitive Journey into Digital World

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/2412.17589.json · badge: /api/ran/2412.17589.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 canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
clean_fail_and_error Ran
ran, violated the contract we drafted
GAIR-NLP/PC-Agent/postprocess/refinement.py
code served (permissive licence) · get_code("c248f8780840fec5")
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
test_dir = tempfile.mkdtemp()

# Create a test .jsonl file with valid entries
jsonl_file = os.path.join(test_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(test_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(test_dir, 'screenshot_1.png')
screenshot_2 = os.path.join(test_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 helper function that the code calls
def remove_screenshot(path):
    if os.path.exists(path):
        os.remove(path)

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/postprocess/refinement.py
code served (permissive licence) · get_code("aa5fd1d8b762e020")
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; 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 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 screenshot that looks like a Tracker interface
# (light gray background #f0f0f0)
def create_tracker_screenshot(path):
    """Create a screenshot with the expected Tracker interface background color."""
    width, height = 400, 300
    bg_color_rgb = (240, 240, 240)  # #f0f0f0
    img = Image.new('RGB', (width, height), bg_color_rgb)
    img.save(path)

# Create a non-tracker screenshot (different background)
def create_non_tracker_screenshot(path):
    """Create a screenshot with a different background color."""
    width, height = 400, 300
    bg_color_rgb = (200, 200, 200)  # Different color
    img = Image.new('RGB', (width, height), bg_color_rgb)
    img.save(path)

# Create test screenshots
screenshot1_path = os.path.join(temp_dir, "screenshot_1.png")
screenshot2_path = os.path.join(temp_dir, "screenshot_2.png")
screenshot3_path = os.path.join(temp_dir, "screenshot_3.png")

create_tracker_screenshot(screenshot1_path)
create_non_tracker_screenshot(screenshot2_path)
create_tracker_screenshot(screenshot3_path)

# Create a test JSONL file with entries
jsonl_file_path = os.path.join(temp_dir, "test_data.jsonl")
markdown_file_path = os.path.join(temp_dir, "test_data.md")

# Create markdown file (required by the function)
with open(markdown_file_path, 'w') as f:
    f.write("# Test\n")

# Create JSONL file with valid entries
entries = [
    {
        "screenshot": "screenshot_1.png",
        "action": "click",
        "element": "button",
        "rect": [10, 10, 50, 50]
    },
    {
        "screenshot": "screenshot_2.png",
        "action": "type",
        "element": "input",
        "rect": [20, 20, 100, 40]
    },
    {
        "screenshot": "screenshot_3.png",
        "action": "scroll",
        "element": None,
        "rect": None
    }
]

with open(jsonl_file_path, 'w', encoding='utf-8') as f:
    for entry in entries:
        json.dump(entry, f, ensure_ascii=False)
        f.write('\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 functions available in the module scope
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'get_file_size_kb', get_file_size_kb)
setattr(current_module, '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 — 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
screenshot_of_tracker Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from GAIR-NLP/PC-Agent-E
pointer only · get_code("4e3517904e50135f")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

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 (0 with at least one paper dated earlier, 0 the same month, 1 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 later
2505.13909 (2025-05)
Efficient Agent Training for Computer Use

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

Imagine a world where AI can handle your work while you sleep - organizing your research materials, drafting a report, or creating a presentation you need for tomorrow. However, while current digital agents can perform simple tasks, they are far from capable of handling the complex real-world work that humans routinely perform. We present PC Agent, an AI system that demonstrates a crucial step toward this vision through human cognition transfer. Our key insight is that the path from executing simple "tasks" to handling complex "work" lies in efficiently capturing and learning from human cognitive processes during computer use. To validate this hypothesis, we introduce three key innovations: (1) PC Tracker, a lightweight infrastructure that efficiently collects high-quality human-computer interaction trajectories with complete cognitive context; (2) a two-stage cognition completion pipeline that transforms raw interaction data into rich cognitive trajectories by completing action semantics and thought processes; and (3) a multi-agent system combining a planning agent for decision-making with a grounding agent for robust visual grounding. Our preliminary experiments in PowerPoint presentation creation reveal that complex digital work capabilities can be achieved with a small amount of high-quality cognitive data - PC Agent, trained on just 133 cognitive trajectories, can handle sophisticated work scenarios involving up to 50 steps across multiple applications. This demonstrates the data efficiency of our approach, highlighting that the key to training capable digital agents lies in collecting human cognitive data. By open-sourcing our complete framework, including the data collection infrastructure and cognition completion methods, we aim to lower the barriers for the research community to develop truly capable digital agents.

For agents

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

get_harvested_code_for_paper("2412.17589")
get_code_for_paper("2412.17589")
have("2412.17589")

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

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

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

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

Connect an agent — have() is free.