browser-harness
БесплатноБез исполняемых скриптовНе проверенAutomates and verifies multi-step browser tasks through a clean Chrome CDP session; use when repeatable autonomous browser control is needed, not an…
от akillness★ 63 звезды на GitHubОб этом скилле
browser-harness - self-healing LLM browser automation
Keyword:
browser-harness·self-healing browser·llm browser automation·cdp agentDirect WebSocket connection between an LLM agent and Chrome via Chrome DevTools Protocol. The agent can inspect the page, write helper code, reuse domain skills, and verify the task without an extra browser abstraction layer.
Browser Harness is the canonical replacement for the removed agent-browser skill in this catalog. Use it for clean browser verification, autonomous browser tasks, and platform-portable CDP control across Claude Code, Codex, Antigravity, Gemini CLI, and OpenCode.
When to use this skill
- The user needs an LLM agent to complete a multi-step browser workflow: login, navigation, form fill, data extraction, download, or verification.
- The workflow needs a clean browser profile or repeatable CDP verification instead of the user's already-open browser state.
- The user is running from Codex CLI or Antigravity and needs a local browser harness the agent can operate with shell/Python commands.
- Claude reports image/screenshot/tool errors when browser screenshots are written, resized, or re-opened.
- The target DOM changes and the agent should add or repair helpers in
agent-workspace/agent_helpers.py. - The task benefits from site-specific domain skills in
agent-workspace/domain-skills/. - Browser Use Cloud is justified for concurrent browsers, proxies, or captcha solving on allowed targets.
Do not use this skill when
- The task is simple HTML extraction without browser state or JS interaction -> route to
scrapling. - The task is exact human UI annotation or pointing at a rendered issue -> route to
agentation. - The task must reuse the user's already-open authenticated Chrome profile -> route to
playwriter. - The task is React component source capture -> route to
react-grab. - The task is ordinary Playwright/Puppeteer script authoring without agent autonomy -> use that stack directly.
Instructions
Step 1: Choose the execution packet
Pick one primary packet before writing commands:
- local-cdp: local Chrome/Chromium with
--remote-debugging-port=9222. - codex-cdp: Codex CLI controls the same local checkout and CDP endpoint.
- antigravity-cdp: Antigravity (
agy) uses the same workspace and Chrome debugging endpoint. - claude-vision-safe: screenshot capture must use the safe image pipeline below.
- domain-skill: add or repair a site-specific helper in
agent-workspace/domain-skills/. - cloud-browser: Browser Use Cloud is needed and allowed.
Step 2: Install browser-harness
Browser Harness can be set up by an agent from any platform that can run shell commands:
git clone https://github.com/browser-use/browser-harness.git
cd browser-harness
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
Claude Code can also use the project-native setup prompt:
Set up https://github.com/browser-use/browser-harness for me
Requirements:
- Python 3.10+
- Chrome or Chromium
http://localhost:9222/jsonreachable from the agent runtime
Step 3: Enable Chrome remote debugging
Use a separate profile so the harness can safely create clean sessions:
# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug
# Linux
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug
# Windows PowerShell
& "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="$env:TEMP\chrome-debug"
Verify:
curl -s http://localhost:9222/json
Step 4: Platform-specific notes
| Platform | Use browser-harness when | Setup note |
|---|---|---|
| Claude Code | You need autonomous browser work or Claude-safe screenshots | Apply the screenshot patch before image-heavy work |
| Codex CLI | You need local CDP automation from a repo task | Keep .venv inside the checkout and run commands from that shell |
Antigravity (agy) |
You need the same browser harness from Antigravity workflows | Ensure agy can see the checkout and localhost:9222 |
| Gemini CLI / OpenCode | You need portable browser automation without platform-specific MCP wiring | Use the same local CDP and Python workspace |
For Codex and Antigravity, do not assume Claude Code plugin commands exist. Prefer explicit local commands:
cd ~/browser-harness
source .venv/bin/activate
python -c "import browser_harness; print('browser-harness OK')"
curl -s http://localhost:9222/json
Step 5: Apply the Claude-safe screenshot patch
If Claude throws image recognition, image upload, PNG read, or tool errors around screenshots, patch src/browser_harness/helpers.py so screenshots are decoded and resized in memory, and PIL file handles are closed before saving overlays.
Required changes:
d
Установить browser-harness в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepWebFetchFAQ
Что делает скилл browser-harness?
Automates and verifies multi-step browser tasks through a clean Chrome CDP session; use when repeatable autonomous browser control is needed, not an already-open authenticated profile.
Как установить скилл browser-harness?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл browser-harness запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic