browser-tester

browser-tester is an agent for Claude Code from ByeongminLee/nextjs-claude-code. It costs 62 tokens per session (2,398 once invoked), scanned B, original, MIT.

An AI browser-testing agent that controls a real browser through Playwright. It checks pages by observing accessible elements, performing actions, and verifying the results with multiple signals.

In plain words
What is it for?
Use it for specification-based, basic, visual, or accessibility testing, including navigation, interactions, state changes, negative cases, and related browser flows.
Why use it?
It helps test real user flows and catch functional, visual, console, and accessibility problems without relying on guessed selectors.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the nextjs-claude-code plugin — 9 skills, 49 agents shipped together

Good fit Use it for specification-based, basic, visual, or accessibility testing, including navigation, interactions, state changes, negative cases, and related browser flows.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/byeongminlee/nextjs-claude-code/browser-tester
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ByeongminLee/nextjs-claude-code

Made for: Claude Code.

Or install nextjs-claude-code, the plugin that ships this one along with the rest of its 9 skills, 49 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for browser-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/byeongminlee/nextjs-claude-code/browser-tester/github.svg)](https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/browser-tester)
Your own site
<a href="https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/browser-tester"><img src="https://agentmods.dev/badge/agents/byeongminlee/nextjs-claude-code/browser-tester/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for browser-tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/browser-tester"><img src="https://agentmods.dev/badge/agents/byeongminlee/nextjs-claude-code/browser-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,398 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.02398
Opus 5.5 $0.00025 $0.00959
Sonnet 5.5 $0.00012 $0.00480
Haiku 4.5 $0.00006 $0.00240

Measured 1mo ago against content hash a22a5b46e0b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

browser-tester scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

Check: cat .mcp.json — should have "playwright" entry.
template/.claude/agents/browser-tester.md · 267 lines

How it starts

The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an autonomous browser testing agent. You drive a REAL browser through Playwright MCP tools — snapshot the page, interact with confirmed elements, verify state changes with structured evidence. You NEVER guess selectors.

Mode detection

Check the HANDOFF prompt for MODE: field:

  • MODE: spec-driven → Spec-driven testing (full workflow below)
  • MODE: basic or no MODE → Basic verification (navigate, snapshot, console check)
  • MODE: visual → Visual regression
  • MODE: a11y → Accessibility audit

Check for SCOPE: field (controls testing depth):

  • commit → primary flow + 2-4 adjacent flows
  • working-tree → primary flow + 2-3 related + edge cases
  • branch (default) → 5-8 flows + negative cases + adversarial

Step 0 — Detect MCP capability tier

  1. Try browser_snapshot(). If it works → Tier B (standard @playwright/mcp).
  2. If not, try screenshot({ mode: 'snapshot' }). If works → check if playwright tool exists → Tier A (expect-style).
  3. If neither → output BROWSER_MCP_NOT_FOUND and STOP:
BROWSER_MCP_NOT_FOUND
Playwright MCP server is not responding. NCC installs it by default in .mcp.json.
Check: cat .mcp.json — should have "playwright" entry.
If missing: npx nextjs-claude-code --force (re-installs MCP config)
Manual setup: add to .mcp.json: { "mcpServers": { "playwright": { "command": "npx", "args": ["@playwright/mcp@latest", "--headless"] } } }

If Tier B AND a playwright code execution tool also exists → upgrade to Tier A.

Capability Tier A (batched) Tier B (individual)
Snapshot screenshot({ mode: 'snapshot' }) browser_snapshot()
Navigate open({ url }) browser_navigate({ url })
Interact playwright({ code }) — batch multiple browser_click / browser_type — one per call
Console console_logs({ type: 'error' }) browser_console_messages()
Screenshot screenshot() browser_screenshot()

Use the detected tier for ALL subsequent steps. Do not mix tiers.

Read the full file on GitHub · 267 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 267 lines · 62 tokens per session scan B a22a5b46e0b4

Subscribe to this mod's changes

browser-tester is an agent published in the GitHub repository ByeongminLee/nextjs-claude-code (3 stars, last pushed 6mo ago), licensed MIT. It adds 62 tokens to every session and 2,398 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

e2e-runner

End-to-end testing specialist using Playwright. Use PROACTIVELY for generating, maintaining, and running E2E tests. Manages test journeys, quarantines flaky tests, uploads artifacts (screenshots, videos, traces), and ensures critical user flows work.

galyarderlabs/galyarder-framework · 59 tokens

qa-tester

The QA Tester of the aSPARK team. Use in the Review phase (/demo-day) to test the running application hands-on in a real browser: verify every acceptance criterion from the spec, explore beyond the happy path, check console and network, and file reproducible bugs. Requires a browser integration (Claude in Chrome…

a-lottes/aSPARK · 79 tokens

qa-automation-engineer

E2E Testing and Browser Automation specialist. Use this agent to verify user flows, catch regressions, and audit UI alignment using the BrowserOS MCP. It ensures that the product is bug-free and mathematically aligned in a live environment.

galyarderlabs/galyarder-framework · 54 tokens

browser-tester

A browser-based end-to-end tester for checking user interfaces with Playwright, a tool that controls a real web browser. It starts the app, captures desktop and mobile screenshots, and reads what appears on screen.

andrewcigan/vibe-dev-plugin · 76 tokens

browser-verifier

Uses Playwright MCP to smoke-test the running application in a browser. Dispatched by /ship for pass/fail verification.

Houseofmvps/ultraship · 29 tokens

e2e-runner

Specialized agent that runs the full Playwright e2e suite in the project's Dockerized Chromium environment (docker-compose.e2e.yml) and reports pass/fail. Use before pushing to GitHub to guarantee e2e never regresses on main. Trigger on "run e2e", "e2e before push", "playwright check", or invoked by the pre-push git…

KaelSensei/MagicAIBuilder · 87 tokens