REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Let Claude Code, Codex or Cursor use your real Chrome, logged in as you. One prompt to set up. Open source, MIT.
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/skills/browser-use-browser-harness)同じ作業で AI をサービスにつなぐ MCP
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.
MCP server for terminal commands, file operations, and process management
同じ種類の作業。Skill 一覧と同じ並び
| これ browser-harness | rea | andrej-karpathy-skills | graphify | MoneyPrinterTurbo | |
|---|---|---|---|---|---|
| 作者 | browser-use | morluto | multica-ai | Graphify-Labs | harry0703 |
| Skill 数 | 1 | 1 | 1 | 1 | 1 |
| GitHub スター | 19,098 | 463,670 | 233,682 | 148,887 | 143,987 |
| 最終コード更新 | 2026年11月16日 | 2026年11月17日 | 2026年4月20日 | 2026年11月17日 | 2026年11月16日 |
| ライセンス | MIT | MIT | – | Apache-2.0 | MIT |
browser-use による 1 個の Skill(指示セット)。AI が読んでそのとおりに作業します · MCP server ではありません
MCP = 手
AI を外部のサービスやデータにつなぎます(例:Notion を読む、請求書を作る)。プログラムやサーバーが動いている必要があります。
Skill = 手順書
作業のやり方を AI に教えるテキストファイル。どのサービスにもつながりません。
重なる部分もあります。ツールを呼ぶスクリプト付きの Skill や、知識だけを渡す MCP もあります。やりたい作業から選んでください。
Claude CodeCodexCursorGemini CLIGitHub Copilot
提供元の README と repo のフォルダから判断
GitHub account browser-use (organization), 1 years old
★ 19,098 stars · code last changed 2026年11月16日
36 scripts that can run on a computer: browser-harness, agent-workspace/agent_helpers.py, agent-workspace/domain-skills/browser-use-cloud/cleanup-zombies.py, src/browser_harness/__init__.py and 32 more
Scripts that go online: tests/unit/test_skill.py, tests/unit/test_brave_origin.py
No hooks or writes to machine settings found
Checked automatically from the repo files at commit 1894799 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
まず:どの AI を使っていますか
使っているアプリを選ぶと、そのアプリでのインストール方法だけが表示されます
Files are byte-for-byte the same as on GitHub at commit 1894799 · View on GitHub ↗
36 scripts
Once uploaded it runs on Claude’s systems, not on your computer. No need to unzip
All 241 files · 4.5 MB
.claude-plugin/marketplace.json1 KB.claude-plugin/plugin.json1 KB.env.example1 KBAGENTS.md2 KBCONTRIBUTING.md1 KBLICENSE1 KBREADME.md9 KBSKILL.md14 KBagent-workspace/agent_helpers.py1 KBagent-workspace/domain-skills/BOSS-zhipin/chat.md13 KBagent-workspace/domain-skills/BOSS-zhipin/job-search.md13 KBagent-workspace/domain-skills/BOSS-zhipin/navigation.md3 KBagent-workspace/domain-skills/admin/microsoft-365.md1 KBagent-workspace/domain-skills/agentlist/discovery.md6 KBagent-workspace/domain-skills/alaska/checkout.md6 KBagent-workspace/domain-skills/ap/namecheap.md1 KBagent-workspace/domain-skills/apollo/search-and-lists.md5 KBagent-workspace/domain-skills/app/apollo.md1 KBagent-workspace/domain-skills/app/smartlead.md1 KBagent-workspace/domain-skills/archive-org/scraping.md15 KBagent-workspace/domain-skills/art-institute-chicago/scraping.md15 KBagent-workspace/domain-skills/articulate-rise/code-blocks.md9 KBagent-workspace/domain-skills/arxiv-bulk/scraping.md14 KBagent-workspace/domain-skills/arxiv/scraping.md13 KBagent-workspace/domain-skills/atlas/overview.md3 KBagent-workspace/domain-skills/aviationweather/scraping.md30 KBagent-workspace/domain-skills/bank-of-canada/scraping.md32 KBagent-workspace/domain-skills/bbb/scraping.md24 KBagent-workspace/domain-skills/bible-api/scraping.md13 KBagent-workspace/domain-skills/bigbang-hr/checkout.md5 KBagent-workspace/domain-skills/bilbasen/search.md4 KBagent-workspace/domain-skills/bilibili/navigation.md11 KBagent-workspace/domain-skills/bluesky/scraping.md35 KBagent-workspace/domain-skills/booking-com/scraping.md22 KBagent-workspace/domain-skills/booking/frontier-checkout.md1 KBagent-workspace/domain-skills/browser-use-cloud/cleanup-zombies.py6 KBagent-workspace/domain-skills/browser-use-cloud/cloud.md9 KBagent-workspace/domain-skills/capterra/scraping.md18 KBagent-workspace/domain-skills/carbon-intensity/scraping.md25 KBagent-workspace/domain-skills/centilebrain/generate-estimates.md5 KBagent-workspace/domain-skills/clinicaltrials-gov/scraping.md29 KBagent-workspace/domain-skills/coingecko/scraping.md14 KBagent-workspace/domain-skills/coinmarketcap/scraping.md17 KBagent-workspace/domain-skills/costco/scraping.md25 KBagent-workspace/domain-skills/craigslist/scraping.md15 KBagent-workspace/domain-skills/crossref/scraping.md23 KBagent-workspace/domain-skills/ctrip/hotels.md10 KBagent-workspace/domain-skills/dashboard/stripe.md1 KBagent-workspace/domain-skills/defillama/scraping.md33 KBagent-workspace/domain-skills/dev-to/scraping.md13 KBagent-workspace/domain-skills/dexscreener/scraping.md45 KBagent-workspace/domain-skills/docker-hub/scraping.md33 KBagent-workspace/domain-skills/docs/google-sheets.md1 KBagent-workspace/domain-skills/duckduckgo/scraping.md15 KBagent-workspace/domain-skills/eurostat/scraping.md31 KBagent-workspace/domain-skills/eventbrite/scraping.md15 KBagent-workspace/domain-skills/expedia/api.md3 KBagent-workspace/domain-skills/expedia/automation.md5 KBagent-workspace/domain-skills/expedia/flights-search.md10 KBagent-workspace/domain-skills/federal-register/scraping.md24 KBagent-workspace/domain-skills/feishu/docx-scraping.md5 KBagent-workspace/domain-skills/finviz/scraping.md21 KBagent-workspace/domain-skills/flighthub/flights-search.md7 KBagent-workspace/domain-skills/flightradar24/scraping.md20 KBagent-workspace/domain-skills/flipkart/shopping.md10 KBagent-workspace/domain-skills/flyfrontier/checkout.md1 KBagent-workspace/domain-skills/fotmob/scraping.md21 KBagent-workspace/domain-skills/framer/editor.md7 KBagent-workspace/domain-skills/frankfurter/scraping.md23 KBagent-workspace/domain-skills/free-dictionary/scraping.md15 KBagent-workspace/domain-skills/frontier/checkout.md7 KBagent-workspace/domain-skills/gbif/scraping.md35 KBagent-workspace/domain-skills/gemini/spark-skills.md2 KBagent-workspace/domain-skills/github/repo-actions.md3 KBagent-workspace/domain-skills/github/scraping.md8 KBagent-workspace/domain-skills/gmail/compose.md5 KBagent-workspace/domain-skills/goodreads/scraping.md19 KBagent-workspace/domain-skills/google-maps/scraping.md21 KBagent-workspace/domain-skills/google-patents/scraping.md27 KBagent-workspace/domain-skills/google-play/scraping.md32 KBagent-workspace/domain-skills/google-sheets/writing-cells.md3 KBagent-workspace/domain-skills/google-trends/scraping.md21 KBagent-workspace/domain-skills/google/flights-multi-city.md5 KBagent-workspace/domain-skills/hackernews/scraping.md8 KBagent-workspace/domain-skills/home-depot/scraping.md43 KBagent-workspace/domain-skills/hubspot/private-app-webhooks.md6 KBagent-workspace/domain-skills/huggingface/scraping.md32 KBagent-workspace/domain-skills/iherb/product-labels.md3 KBagent-workspace/domain-skills/imdb/scraping.md12 KBagent-workspace/domain-skills/itch-io/scraping.md17 KBagent-workspace/domain-skills/jetblue/checkout.md8 KBagent-workspace/domain-skills/lichess/scraping.md18 KBagent-workspace/domain-skills/loom/folder-enumeration.md9 KBagent-workspace/domain-skills/loom/read-recording.md5 KBagent-workspace/domain-skills/lulu/account-currency.md2 KBagent-workspace/domain-skills/manus/tasks.md12 KBagent-workspace/domain-skills/mercari/scraping.md25 KBagent-workspace/domain-skills/mermaid/render.md3 KBagent-workspace/domain-skills/met-museum/scraping.md16 KBagent-workspace/domain-skills/microsoft-365/domain-setup.md2 KBagent-workspace/domain-skills/musicbrainz/scraping.md19 KBagent-workspace/domain-skills/namecheap/advanced-dns.md2 KBagent-workspace/domain-skills/nasa/scraping.md12 KBagent-workspace/domain-skills/nhtsa/scraping.md23 KBagent-workspace/domain-skills/noaa/scraping.md17 KBagent-workspace/domain-skills/nobel-prize/scraping.md21 KBagent-workspace/domain-skills/nvd/scraping.md25 KBagent-workspace/domain-skills/ods/fact-sheets.md2 KBagent-workspace/domain-skills/oecd/scraping.md30 KBagent-workspace/domain-skills/open-library/scraping.md19 KBagent-workspace/domain-skills/open-trivia/scraping.md21 KBagent-workspace/domain-skills/openalex/scraping.md18 KBagent-workspace/domain-skills/openfda/scraping.md27 KBagent-workspace/domain-skills/openstreetmap/scraping.md20 KBagent-workspace/domain-skills/ourworldindata/scraping.md28 KBagent-workspace/domain-skills/outlook/webmail-compose.md2 KBagent-workspace/domain-skills/package-registries/npm-pypi.md16 KBagent-workspace/domain-skills/partsouq/vin-lookup.md2 KBagent-workspace/domain-skills/perplexity/computer.md16 KBagent-workspace/domain-skills/pokeapi/scraping.md31 KBagent-workspace/domain-skills/police-uk/scraping.md26 KBagent-workspace/domain-skills/polymarket/scraping.md13 KBagent-workspace/domain-skills/poshmark/scraping.md25 KBagent-workspace/domain-skills/producthunt/scraping.md11 KBagent-workspace/domain-skills/pubmed/scraping.md18 KBagent-workspace/domain-skills/qbo/report-export.md6 KBagent-workspace/domain-skills/reddit/scraping.md8 KBagent-workspace/domain-skills/redfin/scraping.md33 KBagent-workspace/domain-skills/rest-countries/scraping.md10 KBagent-workspace/domain-skills/rightmove/scraping.md33 KBagent-workspace/domain-skills/scryfall/scraping.md30 KBagent-workspace/domain-skills/sec-edgar/scraping.md16 KBagent-workspace/domain-skills/shopify-admin/README.md2 KBagent-workspace/domain-skills/shopify-admin/embedded-apps.md3 KBagent-workspace/domain-skills/shopify-admin/forms-app.md2 KBagent-workspace/domain-skills/shopify-admin/knowledge-base.md4 KBagent-workspace/domain-skills/shopify-admin/polaris-inputs.md5 KBagent-workspace/domain-skills/shopify-storefronts/scraping.md25 KBagent-workspace/domain-skills/slack/files.md3 KBagent-workspace/domain-skills/sleeper/scraping.md38 KBagent-workspace/domain-skills/smartlead/mailbox-warmup.md3 KBagent-workspace/domain-skills/sofascore/scraping.md25 KBagent-workspace/domain-skills/steam/scraping.md22 KBagent-workspace/domain-skills/stripe/account-sandboxes.md2 KBagent-workspace/domain-skills/substack/scraping.md12 KBagent-workspace/domain-skills/supabase/dashboard.md3 KBagent-workspace/domain-skills/swapi/scraping.md16 KBagent-workspace/domain-skills/swiss-transport/scraping.md30 KBagent-workspace/domain-skills/tasksquad-ai/agents.md3 KBagent-workspace/domain-skills/tasksquad-ai/auth.md3 KBagent-workspace/domain-skills/tasksquad-ai/tasks.md6 KBagent-workspace/domain-skills/tcgplayer/scraping.md23 KBagent-workspace/domain-skills/tfl/scraping.md30 KBagent-workspace/domain-skills/thetechgeeks/pricing.md3 KBagent-workspace/domain-skills/thorne/product-labels.md2 KBagent-workspace/domain-skills/ticketmaster/scraping.md22 KBagent-workspace/domain-skills/treasury-fiscal-data/scraping.md46 KBagent-workspace/domain-skills/trello/boards-and-lists.md4 KBagent-workspace/domain-skills/trulia/scraping.md25 KBagent-workspace/domain-skills/tvmaze/scraping.md40 KBagent-workspace/domain-skills/twitch/scraping.md41 KBagent-workspace/domain-skills/uniprot/scraping.md34 KBagent-workspace/domain-skills/upwork/scraping.md19 KBagent-workspace/domain-skills/usgs-earthquake/scraping.md22 KBagent-workspace/domain-skills/vercel/archive-and-audit.md3 KBagent-workspace/domain-skills/vercel/observability.md2 KBagent-workspace/domain-skills/vercel/vercel.md7 KBagent-workspace/domain-skills/wayback-machine/scraping.md11 KBagent-workspace/domain-skills/weather/scraping.md17 KBagent-workspace/domain-skills/wehotel/hotels.md10 KBagent-workspace/domain-skills/wellfound/scraping.md21 KBagent-workspace/domain-skills/weread/read.md9 KBagent-workspace/domain-skills/wikidata/scraping.md40 KBagent-workspace/domain-skills/wikipedia/scraping.md28 KBagent-workspace/domain-skills/world-bank/scraping.md12 KBagent-workspace/domain-skills/x/article-source-recovery.md2 KBagent-workspace/domain-skills/x/posting.md3 KBagent-workspace/domain-skills/xiaohongshu/scraping.md6 KBagent-workspace/domain-skills/youtube/playback.md4 KBagent-workspace/domain-skills/youtube/scraping.md18 KBbrowser-harness1 KBdocs/MCP.md2 KBdocs/allow-remote-debugging.png188 KBdocs/download-latest-20-x-videos.gif1.3 MBdocs/setup-remote-debugging.png50 KBdocs/snap-linux-headless.md2 KBinstall.md4 KBinteraction-skills/connection.md2 KBinteraction-skills/cookies.md1 KBinteraction-skills/cross-origin-iframes.md1 KBinteraction-skills/dialogs.md2 KBinteraction-skills/downloads.md1 KBinteraction-skills/drag-and-drop.md1 KBinteraction-skills/dropdowns.md1 KBinteraction-skills/iframes.md1 KBinteraction-skills/make-video.md4 KBinteraction-skills/network-requests.md1 KBinteraction-skills/print-as-pdf.md1 KBinteraction-skills/profile-sync.md5 KBinteraction-skills/screenshots.md1 KBinteraction-skills/scrolling.md1 KBinteraction-skills/shadow-dom.md1 KBinteraction-skills/tabs.md2 KBinteraction-skills/uploads.md1 KBinteraction-skills/viewport.md1 KBpyproject.toml1 KBskills/browser-harness/references/install.md3 KBsrc/browser_harness/__init__.py1 KBsrc/browser_harness/_ipc.py9 KBsrc/browser_harness/admin.py65 KBsrc/browser_harness/auth.py18 KBsrc/browser_harness/daemon.py40 KBsrc/browser_harness/helpers.py27 KBsrc/browser_harness/macos.py4 KBsrc/browser_harness/mcp_cli.py1 KBsrc/browser_harness/paths.py1 KBsrc/browser_harness/recorder.py12 KBsrc/browser_harness/run.py14 KBsrc/browser_harness/telemetry.py9 KBsrc/browser_harness/video-template.html69 KBsrc/browser_harness/video.py29 KBsrc/browser_harness/video_render.py20 KBsrc/mcp_server.py8 KBtests/__init__.py1 KBtests/conftest.py1 KBtests/integration/__init__.py1 KBtests/integration/test_js.py6 KBtests/unit/__init__.py1 KBtests/unit/test_admin.py60 KBtests/unit/test_auth.py1 KBtests/unit/test_brave_origin.py3 KBtests/unit/test_daemon.py31 KBtests/unit/test_helpers.py28 KBtests/unit/test_ipc.py5 KBtests/unit/test_macos.py4 KBtests/unit/test_mcp_cli.py1 KBtests/unit/test_mcp_server.py1 KBtests/unit/test_recorder.py3 KBtests/unit/test_run.py14 KBtests/unit/test_skill.py1 KBtests/unit/test_video_render.py1 KB+Create skillUpload a skillpick browser-harness.zip
SettingsCapabilitiesCode execution and file creation
Turn on Code execution and file creation first (newer menus: Create and edit files) · personal plans: Settings → Capabilities · Team/Enterprise: an admin turns it on under Organization settings → Plugins & skills · every plan, including Free
Upload once; it works in claude.ai and Claude Desktop, and in recent Claude Code signed in with a Claude account (not with an API key)
Cowork and cloud sessions use the skills turned on in your claude.ai account, not ~/.claude/skills on your computer (Claude Desktop scheduled tasks run locally and still load it)
Checked against official docs 2026年11月12日 · Source: support.claude.com, support.claude.com, code.claude.com
この文をコピーして Claude Code のチャットに貼り付けます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Claude Code を開き直し、/browser-harness と入力するか関連する作業を頼むと Claude が自動で使います
Checked against official docs 2026年11月12日 · Source: code.claude.com
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/browser-use/browser-harness.git /tmp/popnx-skill-browser-use-browser-harness-1894799 && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-browser-use-browser-harness-1894799/.' ~/.claude/skills/browser-harnessChatGPT デスクトップアプリには Codex が組み込まれていて、Codex は ~/.agents/skills フォルダから Skill を読み込みます
ChatGPT デスクトップアプリで Codex を開き、この文をチャットに貼り付けます
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
browser-harness フォルダを ~/.agents/skills/browser-harness に置きます
~ はホームフォルダ($HOME)です
ターミナルを使わない場合:ZIP をダウンロードして展開し、browser-harness フォルダを ~/.agents/skills に移動します
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/browser-use/browser-harness.git /tmp/popnx-skill-browser-use-browser-harness-1894799 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-browser-use-browser-harness-1894799/.' ~/.agents/skills/browser-harnessChecked against official docs 2026年11月15日 · Source: learn.chatgpt.com
自分でインストールした Skill は使えません。ディレクトリのプラグインに含まれる Skill だけが使えます
この Skill を ChatGPT で使うには、上の方法で ChatGPT デスクトップアプリを使ってください
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
この文をコピーして Codex のチャットに貼り付けます · ChatGPT デスクトップアプリ内の Codex、Codex CLI、IDE 拡張機能で使えます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex は新しくインストールした Skill を自動で見つけます。表示されない場合は Codex を再起動してください · 使い方:ChatGPT では @ を入力して Skill を選びます · Codex CLI や IDE 拡張機能では /skills を実行するか、$ に続けて Skill 名を入力します
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/browser-use/browser-harness.git /tmp/popnx-skill-browser-use-browser-harness-1894799 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-browser-use-browser-harness-1894799/.' ~/.agents/skills/browser-harnessこの文をコピーして Cursor のチャットに貼り付けます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Cursor の Agent チャットで / を入力し browser-harness を選ぶ
Checked against official docs 2026年11月12日 · Source: cursor.com
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/browser-use/browser-harness.git /tmp/popnx-skill-browser-use-browser-harness-1894799 && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-browser-use-browser-harness-1894799/.' ~/.cursor/skills/browser-harnessSkill を読めるほかのアプリ向けです。この文には Claude Code、Codex、Cursor のパスが入っていて、AI が使っているアプリに合わせて選びます · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com
Gemini CLI や GitHub Copilot など Agent Skills 対応の他のアプリはフォルダが違います。そのアプリのガイドを見て、SKILL.md のあるフォルダをコピーしてください。
2026年11月11日 に Claude Code、Codex、Cursor の公式ガイドで skill フォルダを確認
✓ コマンド確認済み 2026年11月16日
以下は提供元の repo の文章で、PopNx MCP の指示ではありません
最初の 8,000 文字を表示 · GitHub で全文を開く
---
name: browser-harness
description: "Control a real browser via CDP: clicking, typing, navigation, logged-in sessions, JS-rendered or bot-protected pages. Not for plain HTTP fetches of public content - use curl for those."
---
# browser-harness
Direct browser control via CDP. For task-specific edits, use `agent-workspace/agent_helpers.py`. For setup, install, or connection problems, read https://github.com/browser-use/browser-harness/blob/main/install.md.
## When Not to Use
A basic fetch of public information needs no browser. If a plain HTTP request can read it — a public page, an API, docs — use `curl` or your fetch tool, and leave the browser alone. Use browser-harness when the task needs interaction (click, type, navigate), the user's logged-in session, JS rendering, or a bot-protected page. If a direct fetch fails or returns a shell page, then escalate to the browser.
Domain skills are off by default. Set `BH_DOMAIN_SKILLS=1` to enable them; see the bottom section.
**If `BH_DOMAIN_SKILLS=1` and the task is site-specific, read every file in the matching `$BH_AGENT_WORKSPACE/domain-skills/<site>/` directory before inventing an approach.**
## Usage
```bash
browser-harness <<'PY'
print(page_info())
PY
```
- Invoke as `browser-harness`. Use heredocs for multi-line commands.
- Helpers are pre-imported. `run.py` calls `ensure_daemon()` before `exec`.
- First navigation for a task is `new_tab(url)`, not `goto_url(url)`. The daemon
preserves the attached tab across separate CLI invocations, so do not call
`new_tab()` again in every script.
- Keep one working tab per task/site. Before opening another, inspect
`current_tab()` and `list_tabs()` and use `switch_tab()` to reuse a matching
tab. Do not leave duplicate tabs on the same URL or close tabs you did not
create.
- At task completion, close tabs created for the task that are no longer needed.
Keep a tab open if the user needs to see it, it is needed for a known follow-up,
or closing it could discard unsaved work or other important state.
- `new_tab()` and `switch_tab()` attach and move the horse marker without
changing Chrome's visible tab. Screenshots and normal CDP input work in the
background. Never call `activate_tab(target)` automatically: it brings Chrome
to the foreground. Call it only when the user explicitly asks to see or
visibly switch to that tab. Do not pair `switch_tab()` with `activate_tab()`.
- A local daemon is a connection to the whole Chrome instance, not to one site,
task, card, or agent. Omit `BU_NAME` and reuse the default daemon for normal
sequential local work across websites, tabs, screenshots, and Codex turns.
Do not invent per-job names such as `gmail1375` or `slack1371`: every new
local daemon opens another browser-level CDP connection and Chrome may show
another Allow prompt.
- Set `BH_TAB_MARKER=0` before starting the daemon to leave page titles unchanged.
The horse marker remains enabled by default.
- A timeout or page that pauses while hidden is not permission to foreground
Chrome. Keep using background CDP operations. For a focus-gated page,
temporarily call `cdp("Emulation.setFocusEmulationEnabled", enabled=True)`,
perform and verify the operation, then disable it in a `finally` block. If
background control still cannot work, report that limitation instead of
activating the tab. Do not invent a `Runtime.evaluate` scroll replacement or
a cross-frame JS walker.
- The normal local flow attaches to the running Chrome/Chromium CDP endpoint. No browser ids or local profile selection.
## Local Chrome
The default daemon can keep many tabs and visit many sites; browser-harness has
no per-site, screenshot, or result-count limit that requires a new daemon.
Chrome memory and page complexity are the practical limits. Reuse matching tabs
with `list_tabs()` and `switch_tab()`.
One daemon has one mutable attached/current tab. Many agents can share it when
their browser operations are serialized: treat local Chrome as one shared
browser lane while non-browser work continues in parallel. Sequential tab
switching, input, and screenshot capture are safe. Do not create another local
daemon merely because several agents exist.
Two agents that switch tabs and act simultaneously can race, causing one to act
on or capture the other's tab. For truly simultaneous interactive work, use
separate remote browsers when Browser Use Cloud authentication is already
available. Otherwise serialize browser operations through the default local
daemon. A named local daemon is a last resort when simultaneous isolation is
required, remote auth is unavailable or unsuitable, and the extra Chrome
approval prompt is acceptable. It creates another controller and dedicated tab
in the same local Chrome profile, not another Chrome profile or process.
If the default daemon becomes stale, use its built-in reattachment/recovery
first. A command timeout, truncated output, site change, closed tab, or new task
is not a reason to create another daemon. Run `browser-harness --doctor` and
restart or replace the default daemon only when it is actually dead or cannot
recover.
If the daemon cannot connect, run diagnostics:
```bash
browser-harness --doctor
```
If Chrome is not running at all, the harness launches it automatically and retries.
If Chrome is running but remote debugging is not enabled, the harness opens:
```text
chrome://inspect/#remote-debugging
```
On macOS, when local Chrome asks for remote-debugging permission, keep the
original browser command running and call `mac-approve` in another shell/tool
call. Preserve the exact daemon name: if the waiting command used
`BU_NAME=r7k2`, run:
```text
BU_NAME=r7k2 browser-harness mac-approve
```
For the default daemon, omit the `BU_NAME` prefix. The original command resumes
when the helper returns `ready`; do not rerun it. If the helper reports
`accessibility-required`, ask the user once to grant the app launching
browser-harness (for example Terminal, iTerm, or Codex) access in System
Settings > Privacy & Security > Accessibility, then call `mac-approve` once
again. This is only for local Chrome; do not call it for `BU_CDP_URL`,
`BU_CDP_WS`, or Browser Use Cloud.
When the shell tool can yield a still-running process, use a short 3-5 second
initial yield for the first local command, not a 30-second wait. If the command
yields with the Allow hint, leave that exact process running, immediately call
`browser-harness mac-approve` in a second tool call, then resume or poll the
original process. With a named daemon, preserve its exact `BU_NAME` for the
helper. Never start the browser command again. If the user clicks Allow first,
the same handshake completes and the original command returning successfully
is the agent's feedback; `mac-approve` also returns `ready` when the daemon is
already connected.
`mac-approve` is macOS-only. On Linux or Windows, keep the original browser
command running and ask the user to click Allow if Chrome presents the approval
dialog. Their click completes the same handshake, so resume or poll the original
process for success; do not rerun it or create a replacement daemon. If that
Chrome build presents no approval dialog, the original command simply connects.
## Remote Browsers
Use Browser Use cloud for headless servers, parallel sub-agents, or isolated work.
Remote browsers require Browser Use Cloud authentication. Check
`browser-harness auth status` before depending on them. `browser-harness auth
login` stores authentication for later processes, so an API key does not need to
be passed to every agent process; without stored authentication or an available
`BROWSER_USE_API_KEY`, serialize work through the default local daemon instead.
Cloud browsers are managed Chrome instances hosted by Browser Use. Each one is a fresh, isolated browser. Proactively suggest one (briefly explain why) when:
- **The user wants multiple concurrent tasks.** Local Chrome is one shared browser; p質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。