# Ghost Semantic OS [![CI](https://github.com/zainmfjavaid/ghost-semantic-os/actions/workflows/ci.yml/badge.svg)](https://github.com/zainmfjavaid/ghost-semantic-os/actions/workflows/ci.yml) Ghost Semantic OS is a text-only computer-use runtime for a modified OSWorld Linux environment. Instead of giving a policy model screenshots, mouse coordinates, keyboard strings, browser JavaScript, or a shell, it exposes the current computer as a compact accessibility-oriented scene: ```text Surfaces [A] Chrome - United Airlines - Active [B] Files - Downloads Active Surface [A] - Chrome - United Airlines - Active [A1] link "Baggage fee calculator" click [A2] textbox "Search" type=replace value="" ``` The model receives exactly three computer tools: ```text read_computer(query?, within?, cursor?) computer_click(element) # A, A1, B10, ... computer_type(element, text) ``` Surface IDs are letters; elements are surface-qualified numbers. The model stops naturally after re-reading and verifying the requested state. There is no model-facing screenshot, raw coordinate, keyboard, JavaScript, Python, shell, critic, task card, hidden evaluator feedback, or completion tool in `semantic-simple-v1`. > **Benchmark disclosure:** this is not stock OSWorld's screenshot/pyautogui > action space. It is a modified Ghost semantic OS environment evaluated by > OSWorld after the policy loop ends. Scores from it must be labeled that way. ## What is packaged - A reproducible six-patch series over a pinned OSWorld commit. - An environment server that owns nested OSWorld desktop VMs. - A versioned guest semantic agent using CDP, AT-SPI, UNO, native app bridges, document parsers, and safe fallbacks. - The compact `read_computer` / `computer_click` / `computer_type` facade. - A text-only Pi policy harness supporting hosted or OpenAI-compatible local models. - Runtime hashing, image-policy counters, trace capture, result manifests, canaries, GCP warm-host orchestration, and evaluator-isolation tests. - Exact task pools and the model-free validation reports used during development. The exact Apache-licensed OSWorld base tree is included as a checksummed source archive and patched locally. Upstream no longer advertises the frozen commit, so this snapshot makes new installations reproducible rather than depending on mutable remote history. ## Requirements The full runtime is tested on: - Ubuntu 22.04 x86_64. - A VM or bare-metal host exposing `/dev/kvm`; nested virtualization is mandatory when the host is itself a VM. - Node.js 22+, Python 3.10+, Docker, and at least 150 GB free disk. - 16 vCPU / 32 GB RAM minimum; 32 vCPU / 64–128 GB RAM and a 400 GB SSD are recommended for parallel episodes. - Public internet access for the first OSWorld image download and task setup. The repository can be bootstrapped and tested on macOS with `--source-only`, but real OSWorld episodes require Linux KVM. ## Quick start on an existing Ubuntu VM ```bash git clone https://github.com/zainmfjavaid/ghost-semantic-os.git cd ghost-semantic-os ./semantic-os bootstrap # Log out/in once if the installer added you to the docker group. ./semantic-os doctor ``` Start the environment server: ```bash ./semantic-os serve ``` In a second shell, run a pool with a hosted model: ```bash export OPENROUTER_API_KEY='...' ./semantic-os run \ --tasks-file pools/semantic-simple-singleapp3.json \ --provider openrouter \ --model qwen/qwen3.6-27b \ --thinking medium \ --max-tool-calls 60 \ --concurrency 1 \ --label first-semantic-run ``` Results land under `results/_