kasonye/browser-pilot
Native CDP and BiDi browser QA for coding agents that observe, act, and verify
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Browser-Pilot is a local TypeScript browser control engine rather than a model runtime. Coding agents call either the bp CLI or bp-mcp over stdio. Both route requests to a persistent daemon through a Unix domain socket or Windows named pipe, letting the agent observe a page, act on it, and inspect the result in the same browser session. The MCP surface groups operations into six tools spanning sessions, observation, actions, assertions, telemetry, and reports.
The package declares ws as its only runtime dependency. Chromium is driven through CDP over a debugging pipe or WebSocket; Firefox connects directly to its built-in WebDriver BiDi Remote Agent without geckodriver. Chromium also has an MV3 extension bridge under extension/. Playwright is an export target, not an intermediate browser driver.
Key Capabilities & Differentiators
On Chromium, observation combines CDP DOM snapshots and paint order with the accessibility tree and in-page React/Vue hints. This helps surface custom controls with missing ARIA metadata. Table folding and incremental snapshots reduce what the agent has to reread, while optional [eN] screenshot markings tie element references to the rendered page. Five-point hit testing helps avoid obscured click targets, and guarded batches can re-resolve references after a component remounts.
After an action, the engine looks for observable effects such as DOM, value, focus, or URL changes and outbound requests. It reports NO_EFFECT after a hydration retry if none are detected. Its settling logic excludes long-lived SSE and WebSocket connections, and telemetry can surface HTTP failures, console errors, and business errors inside HTTP 200 JSON. Assertions, screenshot baselines, HTML reports, and Playwright test export provide separate ways to verify and preserve the result.
Trade-offs & Limitations
Browser-Pilot is a better fit for exploratory QA than for replacing a scripted Playwright suite. Its persistent session and compact observations help an agent work through changing UI states without rewriting a script on each turn. Playwright is the stronger default for a versioned CI gate with explicit assertions, fixtures, and controlled state. An exported spec is a useful starting point, not proof that the exploratory run is repeatable.
DOM and framework probes can reveal controls an accessibility-only tool would miss, but framework internals and protocol differences add compatibility risk. Do not assume that Chromium-specific perception features behave identically on Firefox. A detected effect is not business success: pair action receipts with explicit assertions. Live attach also gives the agent access to the privileges of an already authenticated browser, so prefer scoped test accounts and dedicated profiles.
Hardware & Deployment Guide
Run it on a machine with Node.js 20.19.0 or later and a compatible browser. A source install uses npm install, npm run build, and npm link to expose bp and bp-mcp. Configure the latter as a stdio server, or use bp install-skills at the project or global level. The daemon and browser are local; whether page data leaves the machine depends in part on the connected agent.
Dedicated Chromium profiles persist cookies and storage by role, making them preferable to a personal browser profile for routine QA. Existing sessions can be reached through Chrome 144+ native attach with remote debugging enabled, or through the unpacked MV3 extension. Verify Firefox version and feature coverage before standardizing on it. No GitHub release is listed, so pin a tested source revision if reproducibility matters.
Teams using coding agents to inspect and verify dynamic web apps in persistent browser sessions, then turn confirmed findings into regression tests.
You mainly need deterministic CI gates, identical feature behavior across Chromium and Firefox, or isolated test execution that must never share a logged-in browser session.
Quick Start & Installation
git clone https://github.com/kasonye/browser-pilot.git cd browser-pilot npm install npm run build npm link
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| browser-pilot ★ | 159 | +10 | TypeScript | MIT | Native CDP and BiDi browser QA for coding agents that observe, act, and verify |
| chrome-devtools-mcp | 60.4k | +801 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| agent-browser | 55.4k | +1.1k | Rust | Apache-2.0 | Rust CLI and stdio MCP for agents that read and act on live web pages |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/kasonye/browser-pilot.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about browser-pilot
How does an MCP client reach the browser?
Do I need a GPU, and what determines runtime overhead?
Can a company self-host it, and what should it review before rollout?
When should I choose Browser-Pilot over Playwright?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy