---
title: "Browser Harness | Self-healing harness for LLM tasks"
url: https://stacklist.com/card/57a75a17-e1b0-4cac-bcaa-efc4b0fe29ed
source_url: "https://github.com/browser-use/browser-harness?mcp_token=eyJwaWQiOjQ3NTE2ODksInNpZCI6MTExNzk1MTAxMSwiYXgiOiI1NjcxODVhODYzMWNkNTRmYzkyODkwNTBhMGMyYTE5MiIsInRzIjoxNzgyNzg5OTk5LCJleHAiOjE3ODUyMDkxOTl9.k55AbI0vZXbk91TY_saPHP9tSxaG6LJHz-crFPK6q0c&fbclid=PAVERTVgSwFx5leHRuA2FlbQIxMABzcnRjBmFwcF9pZA81NjcwNjczNDMzNTI0MjcAAaf8kNqQWh2xktqS_NNX7zXUxB3pnF5flF4U9bNxf9o2ehdLW1gVnoarrvDK0g_aem_NVCemVPsOfCQ9xt28v9vig"
stack: https://stacklist.com/stack/adf42802-57ae-4bec-810c-7ec6565a3b86
summary: "Browser Harness is a tool that connects Large Language Models directly to real browsers via Chrome DevTools Protocol for automated browser testing and task execution. The system enables agents to write and improve helper code and domain-specific skills during execution, with support for both local deployment and Browser Use Cloud infrastructure."
tags: "browser-automation, llm-integration, cdp-harness, agent-skills, web-automation, testing-tool"
key_entities: "Browser Harness (technology), Chrome DevTools Protocol (CDP) (technology), Browser Use Cloud (technology), Claude Code (technology), Python (technology), domain-skills (concept), Browser Use (organization), cloud.browser-use.com (location)"
classification: "reference"
content_hash: "sha256:62bee7f8b13fd16ba2d6124378ea9f4863aa412ece2605fcdae7a98c9b77f86a"
acp_version: "0.2"
token_counts_approximate: 921
visibility: public
agent_accessible: true
status: "final"
---

# Browser Harness | Self-healing harness for LLM tasks

Browser Harness ♞ Connect an LLM directly to your real browser with a thin, editable CDP harness. For browser tasks where you need complete freedom . One websocket to Chrome, nothing between. The agent writes what's missing during execution. The harness improves itself every run. Try browser-harness in Browser Use Cloud or paste the setup prompt into your coding agent. ● agent: wants to upload a file │ ● agent-workspace/agent_helpers.py → helper missing │ ● agent writes it agent_helpers.py │ + custom helper ✓ file uploaded You will never use the browser again. Setup prompt Paste into Claude Code or Codex: Install or upgrade browser-harness to the latest stable version with uv using Python 3.12, register the skill from `browser-harness skill`, and connect it to my browser. Follow https://github.com/browser-use/browser-harness/blob/main/install.md if setup or connection fails. The agent will open chrome://inspect/#remote-debugging . Tick the checkbox so the agent can connect to your browser: Click Allow when the per-attach popup appears (Chrome 144+): See agent-workspace/domain-skills/ for example tasks. Free Browser Use Cloud browsers Stealth, sub-agents, or headless deployment. Browser Use Cloud free tier: 3 concurrent browsers, proxies, captcha solving, and more. No card required. Grab a key at cloud.browser-use.com/new-api-key Or let the agent sign up itself via docs.browser-use.com/llms.txt (setup flow + challenge context included). Architecture (~1k lines across 4 core files) install.md — first-time install and browser bootstrap SKILL.md — day-to-day usage src/browser_harness/ — protected core package ${XDG_CONFIG_HOME:-~/.config}/browser-harness/agent-workspace/agent_helpers.py — helper code the agent edits ${XDG_CONFIG_HOME:-~/.config}/browser-harness/agent-workspace/domain-skills/ — reusable site-specific skills the agent edits Plain browser-harness helper calls attach to the running Chrome/Chromium CDP endpoint. For isolated automation, launch Chrome yourself with --remote-debugging-port and pass BU_CDP_URL , or use a Browser Use cloud browser. Development From a checkout, use ./browser-harness to run the current working tree without activating a virtualenv or depending on the globally installed command: ./browser-harness &lt;&lt; ' PY ' print(page_info()) PY Normal agent-facing docs should keep using browser-harness ; the ./browser-harness launcher is only for local repo testing. Contributing PRs and improvements welcome. The best way to help: contribute a new domain skill under agent-workspace/domain-skills/ for a site or task you use often (LinkedIn outreach, ordering on Amazon, filing expenses, etc.). Each skill teaches the agent the selectors, flows, and edge cases it would otherwise have to rediscover. Skills are written by the harness, not by you. Just run your task with the agent — when it figures something non-obvious out, it files the skill itself (see SKILL.md ). Please don't hand-author skill files; agent-generated ones reflect what actually works in the browser. Open a PR with the generated domain-skills/&lt;site&gt;/ folder copied into this repo's agent-workspace/domain-skills/ examples — small and focused is great. Bug fixes, docs tweaks, and helper improvements are equally welcome. Browse existing skills ( github/ , linkedin/ , amazon/ , ...) to see the shape. If you're not sure where to start, open an issue and we'll point you somewhere useful. Domain skills Set BH_DOMAIN_SKILLS=1 to enable domain skills from the agent workspace. This repo's agent-workspace/domain-skills/ directory contains examples to contribute via PR. The Bitter Lesson of Agent Harnesses · Web Agents That Actually Learn
