browser-reset

browser-reset is a skill for Claude Code, Codex from jmagly/aiwg. It costs 55 tokens per session (929 once invoked), scanned A, original, MIT.

A browser-control repair tool for changing the browser connection, replacing its access token, or removing the connection. It guides you through the browser extension steps and asks for approval before destructive changes.

In plain words
What is it for?
Use it to rotate a Playwright browser-extension token, switch between browsers such as Chrome and Edge, or fully remove the browser-control setup.
Why use it?
It helps recover browser automation after a token, browser choice, or connection setup becomes invalid. It also reduces the risk of accidentally removing the connection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

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.

agentmods
npx agentmods add skills/jmagly/aiwg/browser-reset
Any agent
npx skills add jmagly/aiwg --skill browser-reset
Clone the repo
git clone --depth 1 https://github.com/jmagly/aiwg

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmagly/aiwg/browser-reset.svg)](https://agentmods.dev/skills/jmagly/aiwg/browser-reset)
Your own site
<a href="https://agentmods.dev/skills/jmagly/aiwg/browser-reset"><img src="https://agentmods.dev/badge/skills/jmagly/aiwg/browser-reset.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 929 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00055 $0.00929
Opus 5 $0.00028 $0.00464
Sonnet 5 $0.00011 $0.00186
Haiku 4.5 $0.00006 $0.00093

Measured today against content hash 965bf8fb92d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

browser-reset 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.

agentic/code/addons/browser-control/skills/browser-reset/SKILL.md · 95 lines

How it starts

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

Browser Reset Skill (DRAFT)

Status: DRAFT — scaffolded from PoC. Implementation pending Inception outputs.

Purpose

Recover from misconfiguration, rotate the per-install token, switch browsers, or fully tear down. Every destructive operation gated by human-authorization.

When This Skill Applies

  • User regenerated the token in the extension UI
  • User switching from Chrome to Edge (or vice versa)
  • User wants to fully uninstall browser-control wiring
  • browser-doctor reports irrecoverable state

Modes

Mode 1: Rotate token

  1. Show current setup (browser, token-file path, registry entry — token redacted)
  2. Confirm intent (AskUserQuestion)
  3. Walk user through extension regeneration:
    • Click extension icon in target browser
    • Click "Regenerate token" (UI label may vary by extension version)
    • Copy new token
  4. Capture new token via interactive prompt
  5. Atomic write to ~/.config/playwright-mcp/token (mode preserved)
  6. Update AIWG MCP registry env block: aiwg mcp update playwright --env "PLAYWRIGHT_MCP_EXTENSION_TOKEN=<new>"
  7. Re-inject: aiwg mcp inject --provider <p> --servers playwright
  8. Probe verify; report pass/fail

Mode 2: Switch browser

  1. Show current browser
  2. Detect alternatives (same logic as browser-setup)
  3. Confirm switch (AskUserQuestion)
  4. Walk user through extension install in new browser (if not already installed there)
  5. Capture token from the new browser's extension
  6. Update token file
  7. Update AIWG MCP registry (no path changes, just env)
  8. Re-inject
  9. Probe verify

Note: this mode does not remove the old browser's extension or token. User can do that manually; we don't touch user's other browsers without explicit authorization.

Mode 3: Tear down

  1. Show what will be removed (registry entry, provider injection, token file path)
  2. Explicit human-authorization gate (destructive)
  3. aiwg mcp remove playwright
  4. Provider config: remove playwright from mcpServers (we wrote it, we own removal)
  5. Optionally delete ~/.config/playwright-mcp/token (prompt)
  6. Optionally delete .aiwg/browser-allowlist.yaml (prompt)
  7. Note: AIWG never uninstalls the browser extension itself — that's a user action in the browser UI

Read the full file on GitHub · 95 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 First seen · 95 lines · 55 tokens per session scan A 965bf8fb92d3

Subscribe to this mod's changes

browser-reset is a skill published in the GitHub repository jmagly/aiwg (209 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 929 once invoked, about $0.0003 per session on Opus 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-09-05.

Related

Other skills, from other repositories

agent-browser

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

coleam00/dark-factory-experiment · 51 tokens

hive.browser-automation

Required before any hive-browser CLI command. The browser is driven from the terminal by running hive-browser ... --json via terminalexec — not via MCP tools. Teaches the browser lifecycle rules (the bridge attaches to the USER'S running Chrome — never kill or launch browser processes; timeouts are transport issues…

aden-hive/hive · 142 tokens

browser_visible

以可见模式启动真实浏览器窗口,适用于演示、调试或需要人工参与的场景。控制 headed/cdpPort 等启动参数。.

mateaix/mateclaw · 37 tokens

browser-cdp

Native CDP browser automation reference. Headless/headed Chrome control, screenshots, JS evaluation. (/browser-cdp, browser automation, cdp, scraping).

adolfousier/opencrabs · 36 tokens

agent-browser

Headless browser automation CLI. Open, browse, interact with, and screenshot web pages. Use when: opening websites, browser-based login, web app testing, taking screenshots, UI verification.

xuiltul/animaworks · 41 tokens

skeptical-triage

Reusable 3-round self-challenge + arbiter pattern for filtering false positives from findings/verdicts. Use when the cost of a false-positive gate block exceeds the cost of 4 extra LLM turns.

avelikiy/great_cto · 49 tokens