agent-browser
Skill by hoadh
Automates browser sessions for AI agents using a snapshot and refs workflow. Built for long autonomous runs, self-verifying build loops, video recording, and cloud browser testing on Browserbase.
Install agent-browser
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hoadh/antigravity-workflow-skills /tmp/antigravity-workflow-skills && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-workflow-skills/.agent/skills/agent-browser ~/.claude/skills/agent-browserRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/hoadh/antigravity-workflow-skills /tmp/antigravity-workflow-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/antigravity-workflow-skills/.agent/skills/agent-browser ~/.gemini/antigravity-cli/skills/agent-browserAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
agent-browser is a browser automation CLI built for AI agents. It uses a snapshot and refs workflow: a snapshot lists interactive elements with refs such as @e1, and the agent acts on those refs. The source says this uses 93% less context than Playwright MCP, at about 280 characters per snapshot against 8K or more for Playwright MCP. Commands cover navigation, form input, screenshots and storage.
The skill is aimed at long autonomous sessions, context-constrained workflows, video recording for debugging, self-verifying build loops, and cloud testing through Browserbase. It supports named sessions for parallel testing, saved auth state, and a cloud provider flag (-p browserbase) for CI/CD or machines without a local browser. The source compares it with chrome-devtools, recommending that tool for quick one-off screenshots and custom Puppeteer scripts. It is licensed under Apache-2.0.
Written from the project's SKILL.md and checked against it.
What it can do
- Snapshot with refsLists interactive page elements with refs like @e1 for the agent to act on.
- Element interactionClicks, fills, types, checks, selects, scrolls, drags and uploads files using refs.
- Information retrievalReads text, HTML, values, attributes, page title, URL and bounding boxes.
- Screenshots and PDFCaptures viewport or full-page screenshots and exports pages as PDF.
- Video recordingStarts, stops and restarts browser video recording for debugging.
- Wait conditionsWaits for elements, text, URL patterns, page load, network idle or JS conditions.
- Network controlBlocks, mocks and lists network requests.
- Storage and auth stateReads and sets cookies and storage, and saves or loads browser state.
- Parallel sessionsRuns named sessions with the --session option for parallel testing.
- Browserbase cloud browsersRuns automation on Browserbase cloud browsers using the -p browserbase option.
What you need
- npm to install the agent-browser package
- Chromium, downloaded once with agent-browser install
- Browserbase API key and project ID for cloud browsers
- Linux system dependencies, installed with --with-deps where needed
Try asking
- Open example.com, snapshot the page and fill the login form with my test account.
- Record a video of this checkout flow so I can debug it later.
- Run this test on a Browserbase cloud browser and report the result.
Good to know
- Refs go stale after page changes, so a new snapshot is needed.
- Cloud browsers require BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agent/skills/agent-browser/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to agent-browser
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
agent-browser: common questions
How does agent-browser reduce context use?
It uses a snapshot and refs approach. The source says a snapshot is about 280 characters versus 8K or more for Playwright MCP, and 93% less context overall.
When should I use agent-browser instead of chrome-devtools?
The source recommends agent-browser for long autonomous sessions, context-limited workflows, video recording and Browserbase cloud browsers. It recommends chrome-devtools for quick one-off screenshots and custom Puppeteer scripts.
Can agent-browser run tests in the cloud?
Yes. Using the -p browserbase option with a Browserbase API key and project ID runs the browser on Browserbase.
How do I install agent-browser?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is agent-browser free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is agent-browser safe to use?
It scores 49 of 100. Grades: maintenance D, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to agent-browser?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
