dym-browser-use-repl

dym-browser-use-repl is a skill for Claude Code from Rheinmir/setup. It costs 105 tokens per session (1,553 once invoked), scanned A, original, MIT.

A command-line browser session that keeps the same tab and login state between actions. It lets you inspect the page after each step instead of writing and rerunning one complete script.

In plain words
What is it for?
Use it for multi-step checks such as logging in, navigating, filling forms, and verifying the resulting page.
Why use it?
It is useful when later actions depend on what happened earlier or when an automated browser script keeps missing elements. Keeping state avoids restarting a multi-step flow from the beginning.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it for multi-step checks such as logging in, navigating, filling forms, and verifying the resulting page.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rheinmir/setup/dym-browser-use-repl
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.

Any agent
npx skills add Rheinmir/setup --skill dym-browser-use-repl
Clone the repo
git clone --depth 1 https://github.com/Rheinmir/setup

Made for: Claude Code.

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 dym-browser-use-repl

README.md
[![agentmods](https://agentmods.dev/badge/skills/rheinmir/setup/dym-browser-use-repl/github.svg)](https://agentmods.dev/skills/rheinmir/setup/dym-browser-use-repl)
Your own site
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-browser-use-repl"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-browser-use-repl/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 dym-browser-use-repl

Your own site · 80×15
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-browser-use-repl"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-browser-use-repl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,553 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.00105 $0.01553
Opus 5.5 $0.00042 $0.00621
Sonnet 5.5 $0.00021 $0.00311
Haiku 4.5 $0.00011 $0.00155

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

Security

Grade A, and why

dym-browser-use-repl 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 yesterday.

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.

.overstack/doyourmagic/browser-use/skills/dym-browser-use-repl/SKILL.md · 89 lines

How it starts

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

dym-browser-use-repl

When to use

  • Việc cần nhiều bước có điều kiện — bước sau phụ thuộc thứ nhìn thấy ở bước trước. Script Playwright buộc phải viết mù toàn bộ kịch bản trước khi chạy; sai một chỗ là chạy lại từ đầu, mất cả login lẫn state.
  • Đã viết .mjs verify 2–3 lần mà vẫn trượt phần tử → đổi sang REPL, xem trang thật rồi mới quyết.
  • Cần chạm file:// hoặc localhost (claude-in-chrome chặn 2 scheme này).

KHÔNG dùng khi: chỉ cần chụp một ảnh, hoặc chỉ đọc console một lần. Đó là việc của /playwright-verify — một file .mjs, một lần chạy, xong vứt. Rẻ hơn.

Số đo (máy user, 09/09/2026, cùng một trang file://)

cách thời gian một lượt state giữa các lượt
Playwright script (chromium.launch() → goto → title → close) 1.1–1.9s (đo 3 lần; lần đầu cold-cache 3.38s) mất sạch
browser-harness lượt đầu (khởi daemon + new_tab + screenshot) ~2s —
browser-harness lượt sau 0.138s tab + cookie + scroll giữ nguyên

Steps

  1. Cài một lần (yêu cầu Python ≥ 3.11 — python3 mặc định của macOS là 3.9.6, sẽ trượt):
    python3.13 -m venv ~/.bh-venv && ~/.bh-venv/bin/pip install \
      "git+https://github.com/browser-use/browser-harness"
    ~/.bh-venv/bin/browser-harness --version   # 0.1.13 (đo 09/2026)
    
  2. Chuẩn bị một Chrome có CDP — KHÔNG mượn Chrome của user (macOS sẽ bật hộp thoại xin phép remote-debugging và chiếm tab đang làm việc). Dựng riêng một Chrome for Testing:
    CH="$HOME/Library/Caches/ms-playwright/chromium-1243/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing"
    "$CH" --remote-debugging-port=9333 --user-data-dir=/tmp/bh-prof --headless=new --no-first-run about:blank &
    
    Chưa có binary → npx playwright install chromium (dùng chung cache ~/Library/Caches/ms-playwright).
  3. Mỗi hành động = một heredoc. Helper đã import sẵn, daemon tự bám vào tab cũ:
    export BH="HOME=/tmp/bhh BU_CDP_URL=http://localhost:9333 $HOME/.bh-venv/bin/browser-harness"
    
    env $BH <<'PY'
    new_tab("http://localhost:3000/checkout")   # lượt ĐẦU dùng new_tab, không phải goto_url
    wait_for_load()
    print(page_info())
    PY
    
    env $BH <<'PY'
    print(js("[...document.querySelectorAll('button')].map(b=>b.innerText)"))
    PY
    
  4. Bấm bằng toạ độ đọc từ DOM, không từ pixel ảnh đã co:
    r = js("document.querySelector('#submit').getBoundingClientRect()")
    click_at_xy(r["x"] + r["width"]/2, r["y"] + r["height"]/2)
    
  5. Sau mỗi bước, moi lỗi ảnh chụp không thấy:
    errs = [e for e in drain_events() if e["method"] == "Runtime.exceptionThrown"
            or (e["method"] == "Runtime.consoleAPICalled" and e["params"].get("type") == "error")
            or e["method"] == "Network.loadingFailed"
            or (e["method"] == "Network.responseReceived" and e["params"]["response"]["status"] >= 400)]
    
  6. Dọn: pkill -f "remote-debugging-port=9333".

Read the full file on GitHub · 89 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. yesterday First seen · 89 lines · 105 tokens per session scan A 0255f9e80860

Subscribe to this mod's changes

dym-browser-use-repl is a skill published in the GitHub repository Rheinmir/setup (11 stars, last pushed 20d ago), licensed MIT. It adds 105 tokens to every session and 1,553 once invoked, about $0.0004 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-11-07.

Related

dym-browser-use-repl compared with skills from other repositories

dym-browser-use-repl next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dym-browser-use-replRheinmir/setupSkill1120d agoMITA105Claude Code
cua-driverdavidondrej/skillsSkill4.3k2d agoMITA68Claude Code, Codex
create-verification-skillget-bb/bbSkill5.1ktodayMITA57Claude Code, Codex
webapp-testinganthropics/skillsSkill189kyesterdaynoneA35Claude Code
browser-qahashgraph-online/awesome-codex-pluginsSkill1.5kyesterdayApache-2.0A58Claude Code, Codex
test-electron-appPostHog/posthog-fossSkill728todayMITA112Claude Code
smoke-testSkyvern-AI/skyvernSkill23ktodayAGPL-3.0A50Claude Code, Codex