← Back to Leaderboard
Wbrowser-use

browser-use/windows-harness

A persistent Python CLI for agents that work across the Windows desktop and browser

View on GitHub ↗
Engineering Health (Methodology)
A · 84/100
Maintenance Activity
● Updated 4d ago
Latest Release
v0.2.2
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption12/25
Release Cadence17/20
License Clarity20/20
CLI
Total Stars
★ 85
24h Growth
+0
7d Growth
+0
Forks
10

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

browser-use/windows-harness Star History (2026-08-23 - 2026-12-03) ALL-TIME STAR HISTORY (2026-08 – 2026-12) +84 in 102d · avg +1/day 90 45 0 2026-08-23: ★ 12026-09-05: ★ 632026-09-12: ★ 672026-09-19: ★ 702026-09-26: ★ 732026-10-03: ★ 732026-10-10: ★ 742026-10-17: ★ 752026-10-24: ★ 782026-10-31: ★ 792026-11-07: ★ 802026-11-14: ★ 802026-11-21: ★ 832026-11-28: ★ 852026-12-03: ★ 85 ★ 85 08-23 10-13 12-03

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Windows Harness is a Python CLI execution layer for an external agent. A single persistent Python process exposes three paths: win for the Windows desktop, the lazily resolved browser object for Browser Harness, and ordinary Path and subprocess access for files and shell processes. An agent can inspect a window, keep the result in session state, and write the next operation in Python rather than depend on an application-specific tool catalog.

The desktop layer combines PrintWindow capture, UI Automation, and an input delivery matrix. The browser layer is separate from desktop input: Browser Harness uses Playwright and browser-use with the actual Chrome session. Packaging uses Hatchling (hatchling>=1.27) and declares Python 3.11 or newer. The extension point is ordinary Python in the running session: this is an execution layer, not a model runtime or a workflow engine.

Key Capabilities & Differentiators

The desktop API combines window screenshots, keyboard and pointer input, clipboard paste, UI Automation lookup, and PowerShell through win.script. Capture targets background, occluded, and minimized windows without raising them. Input is a separate choice: the default foreground mode raises the target, uses SendInput first, and can fall back to pen or message delivery when SendInput is filtered. The target stays foreground until win.release() so focus-sensitive menus, suggestion popups, and IME candidates can survive a sequence of actions.

Opt-in background input never raises the target and uses synthetic pen events or PostMessage. It is not equivalent to foreground input: the compatibility matrix uses window class names and locally observed event drops to reject known incompatible cases with BackgroundUnavailable. Native, Electron, and UWP apps are in scope, but reliable capture does not establish that a given app accepts background input; CEF and XAML focus requirements are concrete reasons to test both paths.

Trade-offs & Limitations

Compared with Playwright alone, the harness is useful when a task crosses from a web page into native dialogs, desktop apps, files, or PowerShell. A browser-only workflow does not need the added focus and input-delivery concerns. Compared with a fixed Windows automation script, an agent that writes Python at runtime can handle tasks that were not scripted in advance, but makes execution paths and failure recovery less predictable.

The foreground default favors actual input delivery over sharing the desktop unobtrusively. Background input is worth using only after testing the target app and workflow. The more consequential boundary is access: one process can operate the signed-in browser, touch files, and start subprocesses under its Windows identity. For production pilots, use a dedicated desktop session and narrowly scoped accounts. Validate focus handoff, elevated-window behavior, and recovery from partial actions before giving the agent access to business data.

Hardware & Deployment Guide

Run it locally on Windows 10 1809 or later or Windows 11, with Python 3.11 or later and a logged-in, interactive desktop. A Session 0 service is not a substitute. The PyPI installation path supports uv, with Python 3.12 used in the onboarding example. windows-harness install-skill registers the skill for agent clients; --target <dir> confines installation to one skills directory. Run windows-harness doctor, then verify a background capture against an already open window before testing input separately.

Routine use does not require administrator rights, but Windows UIPI restricts injection into higher-integrity applications. Anonymous CLI telemetry is on by default and can be disabled with windows-harness telemetry disable. No GPU requirement is specified for the harness itself; size the host for its desktop apps and browser, and account separately for any model runtime. The package is MIT-licensed and marked alpha; v0.2.2 is the first public release.

Execution: One persistent Python process exposes desktop, browser, filesystem, and subprocess operations.
Capture and inspection: PrintWindow targets windows without raising them; UI Automation supports element lookup at screen coordinates.
Foreground input: SendInput is the primary transport, with pen or message fallbacks; focus is held until win.release().
Background input: Synthetic pen events or PostMessage never raise the window; known incompatible targets return BackgroundUnavailable.
Browser integration: The lazy browser object connects Browser Harness to the existing signed-in browser session.
Operational checks: windows-harness doctor checks runtime requirements, including an interactive desktop and Python dependencies.
Best For

Developer-led agent workflows that need to move between Windows apps, local files, PowerShell, and a signed-in browser on an interactive desktop.

Skip If

You need Session 0 execution, guaranteed background input across apps, or a stable browser-only workflow that Playwright can cover on its own.

Reviewed on 2026-11-30 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
windows-harness <<'PY'
frame = win.see("Notepad")
win.key("ctrl+h", app="Notepad")
win.type("Alessia Cara", app="Notepad")
win.click(640, 420, app="Notepad")

item = win.ax.at(640, 420, app="Notepad")
win.script("(Get-Process notepad).Count")

print(list(Path.home().iterdir()))
print(browser.page_info())
PY

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
windows-harness ★85—PythonMITA persistent Python CLI for agents that work across the Windows desktop and brow
browser-use122.7k+477PythonMITPython REPL and CDP for adaptive browser automation
jev-ultrafast24.8k+73PythonMITA DOM-indexed browser agent that batches operation and target decisions.
langgraph45.8k+293PythonMITPython graph orchestration for stateful, resumable agents and workflows

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/browser-use/windows-harness.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

browser-use/windows-harness Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about windows-harness

How does an existing agent integrate with the harness?

Use the windows-harness CLI to run Python with win for desktop operations, Path and subprocess for files and processes, and the lazy browser object for browser access. Keep related operations in one running session when they need to share Python state. The harness is the execution layer, not a bundled model or planner.

How should I size the Windows host, and does it need a GPU?

No GPU or VRAM requirement is specified for the harness itself. Size the Windows host for the applications and browser it will run, and test with representative window captures and browser sessions. If the agent also runs a model locally, size that model separately.

Can we deploy it commercially on Windows machines we manage?

Yes. The MIT license permits commercial use and local deployment; retain the required copyright and license notices when redistributing the software. Anonymous CLI telemetry is enabled by default and can be disabled with windows-harness telemetry disable. Separately review any external model service and the permissions of the Windows and browser accounts used by the agent.

When would I choose this over Playwright or a fixed automation script?

Use Playwright alone when the workflow stays in browser pages. Consider Windows Harness when the same task must move among native dialogs, desktop apps, local files, PowerShell, and an existing browser session. For a stable workflow that must run unattended, a fixed script or application API is usually easier to validate than agent-generated UI actions.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining browser-use/windows-harness? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature browser-use/windows-harness on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare