rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
Reliable browser automation inside the Chrome session you already use.
Project Map · Tool Reference · Client Config · Chinese (zh-CN) · AGPL-3.0 license · Releases
BrowserPaw runs as a Chrome MV3 extension plus a local Native Messaging bridge. It uses the browser profile you already have instead of copying profile data or starting a separate automation browser. MCP clients can inspect pages, act with bounded tools, and verify results without making a remote service the owner of your browser session.
The project separates three things that are often mixed together:
BrowserPaw is a Chrome extension and local MCP server. Its canonical tool names
start with chrome_*, while each client may add its own namespace around them.
The default core tool profile keeps discovery small; use
CHROME_MCP_TOOL_PROFILE=full or chrome_tool_docs when a task needs the wider
surface.
Two execution paths are available:
chrome_act_toward_goal for a bounded local perception-action loop when
an on-page goal is easier to describe than to decompose into every step.The persistent browserpaw repl exposes the same execution service as small
task, page, locator, skill, and help interfaces for multi-step code workflows.
It is a documented BrowserPaw subset, not a claim of full Playwright
compatibility.
chrome_read_dom assigns document-scoped
references and reports action budgets, frame coverage, omitted regions, and
truncation. A fast snapshot prioritizes the viewport and interactive targets.flattenCards collapses repetitive feed cards into one-line summaries; virtualizeViewport folds off-screen list items into count placeholders.chrome_dismiss_overlay closes marketing popups, cookie banners, and modals in one step, without dumping the DOM.isTrusted: true), so React/Vue/Angular and Shadow DOM handlers fire normally.chrome_computer provide a documented visual path.savePng writes a full physical-resolution PNG.
Screenshot output is PNG/JPEG only, never WebP.chrome_request_human_intervention dims the page, shows a banner, and parks the cursor so the user can complete 2FA or captchas; automation resumes afterward.┌─ Macro Planner (your reasoning LLM) ───────────────────┐
│ Task decomposition, cross-page strategy, recovery │
└───────────────────────────┬────────────────────────────┘
│ MCP (low frequency)
▼
┌─ Semantic Micro-Loop (Native Server) ──────────────────┐
│ chrome_act_toward_goal: │
│ perceive → decide (enabled model) → act → verify │
│ No MCP round-trip per step │
└───────────────────────────┬────────────────────────────┘
│ Native Messaging
▼
┌─ Chrome MV3 Extension ─────────────────────────────────┐
│ canonical tools · CDP events · in-page engine │
└────────────────────────────────────────────────────────┘
Routing guideline:
chrome_batch_actions, chrome_form_pipeline).chrome_act_toward_goal.Ordinary click, fill and named-target tools resolve targets deterministically first. Supported non-exact text, label and named-role misses may use one bounded semantic decision when a model is enabled. Exact selectors, explicit references, coordinates, frame boundaries and actionability remain strict. Input values stay separate from target descriptions.
The optional micro-loop remains bounded (default 10, maximum 60 steps). It selects complete action-target candidates, stops on uncertain delivery, and requires independent read-only verification before reporting completion. Automatic submission is limited to explicitly requested searches on identified search controls. External writes return to the calling agent.
Model modes:
TYPESAFE_API_KEY or configure the Native service through the popup. Candidate descriptions and relevant context go to that endpoint; do not put secrets in locator descriptions.See semantic interaction and bounded goals for limits, verification, recovery and learned-skill boundaries.
git clone https://github.com/GoldenLoaf24h/browserpaw.git
cd browserpaw
pnpm install
pnpm build
node app/native-server/dist/scripts/register-dev.js
Open chrome://extensions, enable Developer mode, and load
app/chrome-extension/.output/chrome-mv3. A prebuilt extension, release
installation, Windows details, Jev configuration, and troubleshooting are
covered in INSTALL.md.
| Client | Supported integration |
|---|---|
| Generic MCP client | Stdio mcp-chrome-stdio, or authenticated loopback HTTP |
| ChatGPT/Codex | Portable plugin in plugins/browserpaw through .agents/plugins/marketplace.json |
| Hermes Agent | Native plugin in plugins/browserpaw-hermes |
| Claude Code | Plugin marketplace in .claude-plugin/marketplace.json |
| DeepSeek Harness | Cordis bundle in plugins/browserpaw-dsh |
Every client ultimately talks to the same local BrowserPaw Native service and therefore shares tasks, page ownership, and verified site skills.
For an ordinary Agent Skills client, install the packaged, client-neutral skill:
browserpaw skill install
The default destination is ~/.agents/skills/browserpaw. --target names a
different skills root, so the final directory is always
<target>/browserpaw. --force only replaces an existing BrowserPaw install
that carries its ownership marker.
browserpaw doctor
node skills/browserpaw/scripts/doctor.mjs
BrowserPaw also ships a Claude Code plugin that bundles the operating skill and the stdio MCP server. With Chrome and the extension already running:
/plugin marketplace add GoldenLoaf24h/browserpaw
/plugin install browserpaw@browserpaw
Choose user, project or local scope in the /plugin panel. The tools appear as
mcp__plugin_browserpaw_browserpaw__chrome_*; /browserpaw loads the operating
guide. The plugin runs mcp-chrome-stdio from PATH, so install the bridge
globally if the shim is missing:
npm install -g ./app/native-server
See INSTALL.md for shell installation, local checkouts and troubleshooting.
The canonical chrome_* tools cover task/page ownership, navigation, DOM
observation, strict indexed actions, batch and form pipelines, keyboard, uploads,
downloads, dialogs, screenshots, visual fallback, network capture, storage,
history, bookmarks, performance traces, and bridge health. The live core
profile avoids announcing the entire surface to every session.
Use docs/TOOLS.md for generated schemas or call
chrome_tool_docs for the exact version in the running Native service. Client
prefixes differ: DSH exposes mcp__browserpaw__chrome_*, Claude Code exposes
mcp__plugin_browserpaw_browserpaw__chrome_*, and Hermes intentionally exposes a
curated browserpaw_* wrapper set.
BrowserPaw keeps reusable knowledge in three separate layers:
| Layer | Location | Purpose |
|---|---|---|
| Canonical Agent Skill | skills/browserpaw/ |
Client-neutral operating instructions, references/, diagnostics, and packaged site recipes |
| Installed static skill | <skills-root>/browserpaw/ (default ~/.agents/skills/browserpaw) |
Read-only copy installed from the Native package |
| Learned Native skills | $BROWSERPAW_HOME/skills (default ~/.browserpaw/skills) |
Parameterized site skills learned from successful tasks and enabled only after independent verification |
The canonical skill is distributed to the ChatGPT/Codex, Claude Code, and DSH
plugins unchanged. Hermes uses its own skill template because its public tool
surface consists of browserpaw_* wrappers rather than the full
chrome_*/MCP namespace. Learned skills are never copied into client plugin
directories; every client reads them through the shared Native service.
The references/ files contain durable operational knowledge such as tool
selection, action outcomes, visual fallback, task and skill lifecycle, and
troubleshooting. They must not contain temporary element references, tab,
document, or session IDs, coordinates, credentials, cookies, or user input.
Packaged recipes under assets/recipes/ are copied into the Native distribution
and remain read-only site guidance.
AI Client (any MCP-capable agent)
│ MCP over Stdio (recommended zero-config) or HTTP/SSE on 127.0.0.1:12306
▼
Native Messaging Bridge (Fastify + Stdio Host)
├── Fast Decision Engine (Jev micro-loop)
└── Passthrough for extension-executed canonical tools
│ Chrome Native Messaging
▼
Chrome MV3 Extension (Service Worker)
├── In-Page Engine (1-based DOM indexing)
├── CDP Session Manager
└── Agent Cursor Overlay
For details, see docs/ARCHITECTURE.md.
This project is licensed under the AGPL-3.0 license (GNU Affero General Public License v3.0 or later).
Under the terms of AGPLv3, any modifications, forks, or derivative works—including those hosted remotely as a network service, cloud gateway, or SaaS platform interacting with users over a computer network—must make their complete corresponding source code freely available under the same AGPL-3.0 license.
This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, account suspensions, data loss, or other liability arising from, out of, or in connection with the software or the use or other dealings in the software.
Users are solely responsible for ensuring that their automated browser workflows comply with all applicable local laws, regulations, and the Terms of Service (ToS) or robots.txt policies of any third-party websites or services accessed.
Google Chrome is a trademark of Google LLC. Microsoft Edge is a trademark of Microsoft Corporation. OpenAI and ChatGPT are trademarks of OpenAI, Inc. TypeSafe is a trademark of TypeSafe, Inc. BrowserPaw is an independent open-source project and is not sponsored, endorsed, or affiliated with any of these entities. Third-party software attributions and licenses are documented in NOTICE.
Development acceptance gates, build/deployment verification, and runtime identity standards are defined in docs/QUALITY.md.
Run pnpm verify to execute full static quality and build audits.
Version 4.1.2 is the latest published reliability release. It converges observation scope, explicit interaction outcomes and form-step boundaries so that deterministic tools, batch execution, REPL and Jev return the same facts. Its complete gate, real-browser acceptance, production deployment, Linux/Windows CI and release assets are recorded. The 4.1.2 release also adds explicit delayed-page recovery, fast-observation fail-closed behavior, unified expected-page restriction handling and error-page injection recovery. See the 4.1.2 release record and current development work. The reproduced Native idle protocol failure in 4.1.0 was repaired and verified on an unchanged connection for more than eleven minutes; that bounded evidence is not a guarantee for every long-running workload. The 320-run M7 comparison has stopped; its historical evidence remains available. The planned 95% task success and 20%/30%/50% efficiency thresholds are unproven. Report performance only from matched, versioned runs.
The Jev interaction integration is not yet runtime-qualified. Real Jev 1.14.0 evaluation safely refused two clear targets in an independent Chinese-language holdout, below the acceptance target. Deterministic tools remain the default; do not lower confidence thresholds or infer production accuracy from unit tests. See the development ledger.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、model-context-protocol、deepseek-harness。