
Agent browser
Lets an agent drive a browser via the agent-browser CLI for UI checks and forms
Agent browser is an open-source agent skill for browser automation. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 3.2K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Agent browser
This skill gives the agent a workflow for controlling a web browser through the agent-browser command-line tool. The usual pattern is to open a page, take a compact snapshot that lists interactive elements with reference IDs, then click, fill or read elements by those references, and finally confirm the result with another snapshot, a URL check or a screenshot.
The instructions cover checking whether agent-browser is installed before use, with installation only when the user explicitly asks for it. They also list common commands for navigation, waiting, reading text or HTML, console and error output, element highlighting, and named sessions for handling several tabs or logins at once. Headless mode is the default, and a headed mode is available for debugging.
The skill is meant for explicit use. It tells the agent to prefer a browser route the user names, and otherwise to fall back to Browser Use or Playwright rather than assuming agent-browser is present. It expects a shell environment with the agent-browser CLI and Node.js for the npm install path, and it points to two reference files for deeper browser automation and snapshot guidance.
When your agent uses it
Browser automation through the repo agent-browser CLI. Explicit helper for navigation, forms, screenshots, scraping, and web-app checks. Prefer Browser Use or Playwright when available. Do NOT load for: sharing URLs, embedding links, or editing screenshot files.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 3 files (18 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the harness plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Chachamaru127/claude-code-harness
/plugin install harness@claude-code-harness-marketplaceOr copy only this skill to ~/.claude/skills/agent-browser:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-browser &&
cp -R "$tmp/opencode/skills/agent-browser" ~/.claude/skills/agent-browser &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/agent-browser inside it instead.
Copy the skill folder to ~/.agents/skills/agent-browser to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-browser &&
cp -R "$tmp/opencode/skills/agent-browser" ~/.agents/skills/agent-browser &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/agent-browser inside it instead.
Copy the skill folder to ~/.cursor/skills/agent-browser to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-browser &&
cp -R "$tmp/opencode/skills/agent-browser" ~/.cursor/skills/agent-browser &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/agent-browser inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Chachamaru127/claude-code-harness.git --path opencode/skills/agent-browserOr copy the folder to ~/.gemini/skills/agent-browser yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/agent-browser:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-browser &&
cp -R "$tmp/opencode/skills/agent-browser" ~/.copilot/skills/agent-browser &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/agent-browser inside it instead.
Get the folder:
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.gitThen copy claude-code-harness/opencode/skills/agent-browser into your agent's skills folder as agent-browser. Agents that support SKILL.md read one folder per skill.
What it does
- Page navigation
- Opens URLs, moves back and forward, reloads, and reads the current URL or title.
- Snapshot-based interaction
- Captures a compact list of interactive elements with reference IDs to target clicks and inputs.
- Form filling
- Fills text fields, types into inputs, and presses keys on the page.
- Screenshots and checks
- Saves screenshots and confirms page state after each action.
- Debugging output
- Shows the browser window, prints console logs and page errors, and highlights elements.
- Parallel sessions
- Keeps separate named browser sessions open for different accounts or tabs.
Good for
- Open a staging page and confirm a login form renders correctly
- Fill out a signup form on a web app and check the confirmation message
- Take a screenshot of a page for a visual review
- Scrape text from a list of elements on a site
- Debug a page by running it headed and reading console errors
Agent browser FAQ
What does Agent browser need to run?
It needs the agent-browser CLI installed. The skill checks for it first and only installs it with npm if the user explicitly asks.
When should the agent load Agent browser?
Only when agent-browser is explicitly requested. It is not meant for sharing URLs, embedding links or editing screenshot files.
Which browser does Agent browser use by default?
It runs in headless mode by default, and a headed option is available to show the browser window.
Does Agent browser replace Playwright or Browser Use?
No. The skill advises using the browser route the user names, otherwise Browser Use or Playwright when available.
How do I install Agent browser in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/agent-browser to use it in all your projects, or to .claude/skills/agent-browser in one project. Or install the harness plugin, which includes it: /plugin marketplace add Chachamaru127/claude-code-harness, then /plugin install harness@claude-code-harness-marketplace.
Does Agent browser run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Agent browser?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Agent browser?
The closest alternatives to Agent browser are Webapp testing, Puppeteer skill, Chrome devtools, Webapp testing and Playwright.
Where this comes from
- Description: from the skill's own SKILL.md.
More from Chachamaru127/claude-code-harness

Guards upstream Claude and Codex update reviews against docs-only feature additions
- Open source
- 3.2K GitHub stars
- Developer tools

Diagnoses failing CI pipelines and proposes fixes for build and test errors
- Open source
- 3.2K GitHub stars
- Developer tools

Gets a read-only second opinion from Cursor's Composer agent on questions and designs
- Open source
- 3.2K GitHub stars
- Developer tools

Hands one write task to Cursor Composer in an isolated worktree, then reviews
- Open source
- 3.2K GitHub stars
- Developer tools

Gets an advisory second-opinion review of a diff from Cursor Composer, read-only
- Open source
- 3.2K GitHub stars
- Developer tools

Sets up and checks the Cursor backend for Claude Code Harness
- Open source
- 3.2K GitHub stars
- Developer tools






