kasonye/browser-pilot
Developer ToolsA native CDP/Firefox BiDi browser automation engine and lean MCP server that lets AI coding agents run interactive QA loops.
What it does
Browser-Pilot is a browser automation and QA verification engine that AI coding agents drive through a CLI (bp) or a six-tool MCP server (bp-mcp). It talks to Chromium browsers over CDP (via --remote-debugging-pipe or WebSocket) and to Firefox over W3C WebDriver BiDi, without Playwright, Puppeteer, or geckodriver in the stack.
The design targets a recurring failure mode of script-based QA: the agent guesses a selector, the script breaks, and the loop restarts from step one. Instead, the agent uses a persistent Observe -> Act -> Verify cycle: read a fused page snapshot (DOMSnapshot paint orders, accessibility tree, React/Vue framework probes, optional Set-of-Mark badges), perform a single physical action, then receive a receipt that flags no-op clicks, HTTP errors, console errors, JSON soft errors, and UI anomalies.
It is aimed at developers who want an AI agent to exercise a real web app interactively: filling forms, resolving custom dropdowns, verifying async flows, mocking network faults, and producing a report or a Playwright regression spec.
Setup and first run
Prerequisites: Node.js 20.19 or newer, plus a local Chrome, Edge, or Chromium install.
git clone https://github.com/kasonye/browser-pilot.git
cd browser-pilot
npm install
npm run build
npm link
After linking, bp and bp-mcp are available globally. Open a page with a managed profile:
bp open http://localhost:3000 --role reviewer
Then observe and act. Observations emit refs like e12 that actions consume:
bp obs
bp act click e12
bp act fill e5 "ORD-2026-0042" --submit
For multi-field forms, chain operations in one call with bp batch '[{"op":"fill","ref":"e3","value":"alice"},{"op":"click","ref":"e5"}]'. To wire the MCP server into an agent automatically, run bp install-skills --global --with-rules --with-mcp, or add the bp-mcp stdio server manually to the agent's MCP config.
Connecting to an existing browser
Besides the default managed profile, two attach paths avoid a fresh login: bp attach --chrome for Chrome 144+ after enabling remote debugging at chrome://inspect/#remote-debugging, and bp attach --ext after loading the unpacked MV3 extension from ./extension and toggling the toolbar icon. Managed profiles persist cookies and storage under ~/.browser-pilot/profiles/<role>.
Limits and operational notes
- Requires Node.js 20.19+ and a locally installed Chromium-family browser; Firefox support needs Firefox 129+ (or Gecko 141+).
- The benchmark numbers in the README (scan, IPC, and per-step latencies) come from a Chromium 158 torture-test arena and should be read as the author's measurements, not a guarantee for your app.
- The human-like pointer and typing choreography apply in headed mode with pacing defaults; headless runs skip the animation.
- The repository is MIT licensed, and
npm testruns unit tests plus Chromium CDP and Firefox BiDi scenario suites.
HotRepo's take
HotRepo recorded this repository on the TypeScript new-project list for 2026-12-03, with 108 stars and no forks in a roughly 24-hour window starting 2026-12-02. That is a first-day signal on a new list, not a GitHub all-language daily rank. The interesting technical point is the lean MCP surface: narrowing to six primitives and moving perception and verification into the engine is a concrete attempt at context bloat and false-positive clicks, the two pain points that make agent-driven browser testing unreliable.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- garrytan/gstackA Claude Code skill pack that applies CEO, design, release and QA reviews to a solo developer's coding workflow.
- mozilla-firefox/firefoxThe official Firefox source repository, for developers who want to read, build or contribute to a major browser engine.
- uxpilot-ai/frontend-design-skillAn agent skill that designs UI screens on UX Pilot's canvas and then builds the chosen screens in your own stack.
- github/github-mcp-serverConnects AI coding agents to GitHub repositories, issues, PRs and Actions through the Model Context Protocol.
- figma/mcp-server-guideConnect AI coding agents to Figma files so they can generate code from designs and write back to the canvas.