Skip to main content
Glama
Computer Use Lite

Computer Use Lite

by mohgomaa-art
WARNING

Experimental Research Preview — Not Production Ready (v0.1.0a2): This release adds canonical benchmark data, reproducible TypeScript/SVG visual figures, official branding, Windows MCP setup tooling, and security documentation over runtime baseline 0d19a9e. Core runtime engine bugs remain NOT FIXED in this release — including cross-frame overlay click-through (Critical), sensitive-field redaction gaps (High), cursor-overlay false opaque_canvas detection (High), DNS fail-open / TOCTOU (Medium), and unauthenticated loopback CDP (CUL_MCP_DIRECT_WS enabled by default). Do not deploy against untrusted hosts or arbitrary public browsing. See docs/SECURITY_AND_LIMITATIONS.md and SECURITY.md.


1. Overview & Status

Computer Use Lite (computer-use-lite) reduces repetitive per-step screenshot capture on structured UIs by discovering interactive elements directly from Chromium DevTools Protocol (DOMSnapshot.captureSnapshot + Accessibility.getFullAXTree) and scoped Windows UI Automation (CUIAutomation8 COM MTA), binding actions to short eN identifiers validated against monotonic REV:N revisions and bounds stability checks before dispatching input, and invoking cropped PNG screenshots (blindN) only for unmapped <canvas> or sparse-UIA (low_uia) surfaces.


Related MCP server: win-pilot

2. Architecture Overview (FIG-08)

FIG-08 CUL Architecture

Source TSX: Fig08Architecture.tsx · Deep Dive: docs/ARCHITECTURE.md


3. Browser Agent Benchmark Comparison (FIG-01 – FIG-04)

Evaluated across 72 randomized runs (12 synthetic local HTML tasks × 3 repetitions × 2 arms, seed 2040777688, Codex CLI 0.166.0, requested model gpt-6-luna) comparing @playwright/mcp@0.0.86 against CUL Browser MCP at commit fdc92d9 (CUL_MCP_BROWSER_ONLY=1). This is a semantic-vs-semantic browser MCP comparison, NOT Native OpenAI Computer Use (@oai/sky) vs CUL.

Metric

Playwright MCP (n=36)

CUL Browser MCP (fdc92d9, n=36)

Delta / Caveat

Successful runs

31/36 (86.11%)

36/36 (100.0%)

+5 CUL wins on b08 (0/3 -> 3/3) & b12 (1/3 -> 3/3); b11 shared prompt leaked filter_query

Median total tokens

126,087

176,506

CUL +40.0% higher (7 wins / 29 losses)

Median steps

3.0

4.5

CUL +50.0% more tool calls (152 vs 116 total)

Median wall time

26.48s

26.87s

CUL +1.5% slower median (26,869.85 ms vs 26,480.53 ms)

FIG-01 Source TSX: Fig01BrowserSuccess.tsx · Methodology: docs/BENCHMARK_METHODOLOGY.md

FIG-02 Source TSX: Fig02WallTime.tsx · Methodology: docs/BENCHMARK_METHODOLOGY.md

FIG-03 Source TSX: Fig03TokenEstimates.tsx · Methodology: docs/BENCHMARK_METHODOLOGY.md

FIG-04 Source TSX: Fig04InteractionSteps.tsx · Full Breakdown: docs/BENCHMARK_COMPARISON.md

NOTE

Disclosed Confounds: (1) b11_dense_90_grid_filter shared goal text exposed CUL's filter_query parameter name to both arms; (2) Playwright MCP invoked browser_run_code_unsafe once on b12_opaque_canvas_click run 1; (3) CUL Browser MCP ran on benchmark worktree commit fdc92d9; (4) tasks were synthetic local fixtures and do not establish general CUL superiority.


4. Observation-Size Proxy Comparison (FIG-05)

FIG-05 Source TSX: Fig05ObservationSize.tsx · Methodology: docs/BENCHMARK_METHODOLOGY.md

CAUTION

Estimated Observation Size — Not Actual API Token Usage: 112 estimated tokens (round(text_length / 4)) vs 1,196 28×28-patch tokens (1280×720) reflects single-step payload estimates on synthetic browser tasks, not provider BPE billing or a 10.7x reduction in total task cost (cf. FIG-03, where total multi-turn Codex tokens were +40% higher, and uncapped File Explorer UIA at 1,611.0 est. tokens).


5. Windows Automated Test Coverage (FIG-06)

FIG-06 Source TSX: Fig06WindowsTests.tsx · Provenance: benchmark_sources.json

Measured on Windows 11 Pro (10.0.26200) at commit 0d19a9e: 70 passed, 0 failed, 0 skipped in 197.50s (58 passed, 12 skipped in 86.66s with CUL_SKIP_DESKTOP=1). This measures deterministic suite health, not AI-agent success.


6. Desktop Pilot Status (FIG-07)

FIG-07 Source TSX: Fig07DesktopPilotStatus.tsx · Details: docs/BENCHMARK_COMPARISON.md

Supervised desktop benchmarking remains incomplete: CUL T1 passed 2/2 runs with SHA-256 fixture checks, CUL T2 remained incomplete, and the Native (@oai/sky) vs CUL head-to-head comparison was not completed.


7. Verified Security & Reliability Findings (FIG-09)

FIG-09 Source TSX: Fig09SecurityFindings.tsx · Full Security Dossier & Evidence Captures: docs/SECURITY_AND_LIMITATIONS.md

All runtime issues (F-01–F-08) verified on 0d19a9e remain unfixed in 0.1.0a2; the stale src/engine/ copy claim was REFUTED (16-line importlib aliases).


8. Installation & Quick Start

Requirements: Windows 10/11 (desktop_uia.py, snapshot.py, and desktop_cursor_overlay.py bind Windows Win32/COM libraries on import) and Python >=3.10.

Option A — Guided Windows MCP Setup (Codex, Antigravity, Claude Code)

For one-step setup using an isolated repository-local .venv, installing .[setup] (tomlkit), and safely merging the computer_use_lite stdio entry into Codex, Antigravity, and Claude Code configs with automatic timestamped backups, see docs/WINDOWS_MCP_SETUP.md or run from the repository root:

scripts\setup_mcp_windows.bat

Option B — Editable Developer & Benchmark Install

git clone https://github.com/mohgomaa-art/computer-use-lite.git
cd computer-use-lite

python -m pip install -e ".[dev,benchmarks]"
python -m playwright install chromium

Note: Installing extras .[dev] alone omits psutil needed by benchmark tests; use ".[dev,benchmarks]" for full benchmark/test execution or ".[setup]" when running scripts/configure_mcp.py.

Python API (Browser) & MCP Server (stdio)

from pathlib import Path
from computer_use_lite import Api, BrowserSession, __version__

print("computer-use-lite:", __version__)
with BrowserSession(url="https://example.com", headless=True, viewport=(1280, 720)) as session:
    api = Api(session, state_path=Path("./runtime/task_state.json"), crops_dir=Path("./runtime/crops"))
    print(api.discover_interactables(max_elements=60))
    print(api.execute_action("e1", "click", revision=1))

Launch the 13-tool MCP server (stdio):

computer-use-lite-mcp
# or:
python -u -m computer_use_lite.mcp_server

Run tests (CUL_SKIP_DESKTOP=1 matches CI; omit only on an interactive unlocked Windows desktop):

$env:CUL_SKIP_DESKTOP = "1"
pytest -v -rs --strict-markers -W error::pytest.PytestReturnNotNoneWarning

Reproduce TSX/SVG chart generation independently (requires Node >=20, zero Python runtime impact):

cd research_visuals/benchmark_report
npm install
npm run build
npm run export

9. Documentation, Version History & Citation

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Windows agents to control desktop applications and isolated Chromium sessions through a unified computer tool, supporting discovery, observation, input, window management, browser automation, and sequencing actions.
      1,040 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to drive Windows desktop automation — opening and interacting with applications, native UI controls, keyboard/mouse input, files, processes, clipboard, and Chrome/Edge browsing via UI Automation and CDP. All actions pass through a safety policy with human approval, emergency stop, and deterministic verification.
      1
      MIT