browser-harness
Skill by sickn33
Drives an existing browser through CDP for logged-in, visual, or interactive web automation. Intended for agents that need a real browser instead of static page fetches.
Install browser-harness
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/browser-harness ~/.claude/skills/browser-harnessRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/browser-harness ~/.gemini/antigravity-cli/skills/browser-harnessAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
browser-harness is an agent skill that controls a real browser through the Chrome DevTools Protocol (CDP). It connects to the user's running Chrome or Brave rather than launching its own browser, so existing logins and sessions are available. Scripts run through a browser-harness -c command with helper functions pre-imported, and a daemon starts automatically.
The skill is aimed at tasks that need clicks, forms, logins, JS-heavy pages, or visual checks. It recommends screenshots before and after actions, coordinate clicks that pass through iframes and shadow DOM, and raw CDP calls for anything the helpers do not cover. It also covers remote cloud browsers, interaction playbooks, and optional per-site domain skills.
Written from the project's SKILL.md and checked against it.
What it can do
- new_tab(url)Opens a URL in a new tab so the user's active tab is not changed.
- capture_screenshot()Takes a screenshot to find visible targets and verify that an action worked.
- click_at_xy(x, y)Clicks at pixel coordinates, passing through iframes, shadow DOM, and cross-origin frames.
- js(...)Runs JavaScript on the page for DOM inspection and text extraction.
- http_get(url)Fetches static pages over HTTP without a browser, usable with a thread pool for bulk requests.
- start_remote_daemon(name)Starts a remote cloud browser, for parallel sub-agents or headless servers.
- cdp("Domain.method", params)Sends raw CDP commands for anything the helper functions do not cover.
- ensure_real_tab()Re-attaches to a real page when the current tab is stale or internal.
What you need
- Chrome or Brave with remote debugging enabled
- An installed browser-harness executable
- BROWSER_USE_API_KEY for remote browsers
- Python for the -c scripts
Try asking
- Open the docs page in a new tab and tell me what the page says.
- Take a screenshot of the current page and find the Login button.
- Click the Submit button in the open form and confirm it worked.
Good to know
- Auth walls stop the flow and ask the user, so credentials are not typed from screenshots.
- Remote daemons keep billing until their timeout.
- Domain skills are off by default and need BH_DOMAIN_SKILLS=1.
- innerText may miss virtualized, collapsed, paginated, or lazy content.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/browser-harness/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB -
references/install.md10 KB
Alternatives to browser-harness
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
browser-harness: common questions
Does browser-harness launch its own browser?
No. The source says it connects to the user's running Chrome and does not launch its own browser.
Why does the skill use new_tab instead of goto_url?
The source says goto_url runs in the user's active tab and can overwrite their work, so the first navigation should use new_tab(url).
Can it read pages that need a login?
Yes, the source says it uses the user's existing browser session for login-walled sites such as X/Twitter articles and LinkedIn.
How do I install browser-harness?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is browser-harness free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is browser-harness safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to browser-harness?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
