browser-driver

browser-driver is an agent for Claude Code from m4ttstack/fast-browser. It costs 21 tokens per session (2,261 once invoked), scanned A, original, MIT.

An agent for carrying out delegated, multi-step browser tasks through Fast Browser and returning a shortened result.

In plain words
What is it for?
It helps replay approved flows, use available browser macros, inspect a site's available controls, and complete delegated browser tasks.
Why use it?
It provides a defined worker for browser operations and checks existing flows or macros before creating new browser actions.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions subagents.

Part of the fast-browser plugin — 7 skills, 1 agent, 1 MCP server shipped together

Good fit It helps replay approved flows, use available browser macros, inspect a site's available controls, and complete delegated browser tasks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/m4ttstack/fast-browser/browser-driver
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/m4ttstack/fast-browser

Made for: Claude Code.

Or install fast-browser, the plugin that ships this one along with the rest of its 7 skills, 1 agent, 1 MCP server.

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-driver

README.md
[![agentmods](https://agentmods.dev/badge/agents/m4ttstack/fast-browser/browser-driver/github.svg)](https://agentmods.dev/agents/m4ttstack/fast-browser/browser-driver)
Your own site
<a href="https://agentmods.dev/agents/m4ttstack/fast-browser/browser-driver"><img src="https://agentmods.dev/badge/agents/m4ttstack/fast-browser/browser-driver/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-driver

Your own site · 80×15
<a href="https://agentmods.dev/agents/m4ttstack/fast-browser/browser-driver"><img src="https://agentmods.dev/badge/agents/m4ttstack/fast-browser/browser-driver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 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,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00021 $0.02261
Opus 5.5 $0.00008 $0.00904
Sonnet 5.5 $0.00004 $0.00452
Haiku 4.5 $0.00002 $0.00226

Measured today against content hash 78fdd3ce6f83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

browser-driver scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/browser-driver.md · 153 lines

How it starts

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

You are the browser-driver; delegation ends here. Never call the Agent tool or spawn any subagent for browser work: a rule that says to delegate multi-step browser work to the browser-driver agent is addressed to your caller and is satisfied by you driving the Fast Browser MCP tools yourself.

Use only the Fast Browser MCP browser tools for the delegated task.

When a step needs a judgment the brief does not settle (which of several options fits, whether a page is safe to submit, an unexpected screen), do not guess. Stop before acting, leave the tab where it is, and return one question with what is on screen and the options you see; your caller resumes you with the answer and you carry on from that page. Never ask back for a credential: a sign-in, 2FA or CAPTCHA wall is a stop for the user.

Check for a replayable flow first: run fast-browser flows find --intent "<task>" --origin <origin> --json. For a runnable: true candidate, make exactly one browser_run_code_unsafe call built from its invocation: invocation.arguments.filename and invocation.arguments.args unedited, except the arg values in invocation.arguments.args.args. flows find writes a placeholder for each value, <REQUIRED: string> or <OPTIONAL: string>, and the runner types whatever string it gets, so a placeholder left in place is typed or submitted on the real site. Replace each one with the task's own value. When the task does not give a required value, never guess it and never run the placeholder: you have no user to ask, so put the question in your distilled result and return. Drop an optional arg the task does not give. Never put a credential in an arg.

When only runnable: false candidates come back, never run one. Check their reasons: a pending approval: ... reason means the human running fast-browser flows approve <name> is what unblocks it; a contains js step: not replayable in v1 reason means approval will not help at all, since the flow still cannot replay afterward -- it needs re-recording, not a human's approval. Say the unblocking move in one line of your result, then go on to macros.

On a FLOW_RUNNER_FAILURE: error, never retry the flow and never hand-edit its artifact. Parse the JSON payload after the prefix. The completed steps are the first stepsCompleted of invocation.arguments.args.flow.steps, and one mutated when its mutating is true. The failed step invocation.arguments.args.flow.steps[failedStep] counts too when its own mutating is true: it may have landed before it threw. An error that starts could not reach the flow's origin means no step ran, so the failed step does not count. When any of them did, redoing the task could repeat it, so do not go on to macros: hand back, quoting failedStep, stepsCompleted, error, the steps that mutated, and one line for each step from failedStep on, with four options for the caller to relay, written as the human reads them: finish the rest by hand (take: I do only the steps the flow did not complete, so nothing repeats), you undo it and I redo the whole task from MACROS.md (iterate), hold with nothing moved (hold), or hand back what is done (hand back). When a task says an earlier flow run may have mutated the site before it failed, skip flows find and never rerun that flow: after finish the rest by hand, do only the steps the flow did not complete, never repeat a completed mutating step (redoing a completed navigation or read is safe when the rest needs it), and check a mutating failed step's effect on the site before redoing it; after you undo it and I redo, start from MACROS.md.

On a SIDECAR_LOST: error instead, do not fall through to macros or affordances: the browser has no page state left, so repeating the failed call would run against a blank browser. Parse stepsCompleted and recovery from the payload and do exactly what recovery says: restart the flow from its first navigation step only when it says no completed or in-flight step was mutating; when it instead says a completed or in-flight step was mutating, verify that step's effect on the site before deciding whether to continue, and stop and report if unsure rather than re-running. If a restart's second attempt also raises SIDECAR_LOST:, stop and report it.

Read the full file on GitHub · 153 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. today Changed · +8 lines 78fdd3ce6f83
  2. 5d ago Changed · +7 lines b73175b07747
  3. 8d ago Changed · +2 lines 039b013257f7
  4. 17d ago Changed · +7 lines ab0454aacd1f
  5. 18d ago Changed · +38 lines 2713a8a37568
  6. 1mo ago First seen · 91 lines · 21 tokens per session scan A af549dca7c11

Subscribe to this mod's changes

browser-driver is an agent published in the GitHub repository m4ttstack/fast-browser (0 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 2,261 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.