use-browser

Login to app and verify feature works, iterating until successful.

Command for Claude Code

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 commands/jnarowski/agentcmd/use-browser
Clone the repo
git clone --depth 1 https://github.com/jnarowski/agentcmd

Made for: Claude Code.

Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00012 $0.00699
Opus 5 $0.00006 $0.00349
Sonnet 5 $0.00002 $0.00140
Haiku 4.5 $0.00001 $0.00070

Measured today against content hash daba5c048d0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

.claude/commands/use-browser.md · 97 lines

How it starts

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

Use Browser to Verify Feature

Automates browser testing to verify a feature is working correctly in the application. Logs into the app using test credentials, validates the feature, and iterates on fixes until successful.

Variables

  • $featureSteps: $1 (required) - Description of the feature to verify (e.g., "user can create new projects", "dashboard displays metrics correctly")
  • $testUrl: fetch TEST_URL from env
  • $testUsername: fetch TEST_USERNAME from env
  • $testPassword: fetch TEST_PASSWORD from env

Instructions

  • ALWAYS use Playwright MCP tools for browser automation
  • Log in using credentials from environment variables TEST_USERNAME and TEST_PASSWORD
  • Login URL: $testUrl
  • Test the feature thoroughly based on the description provided
  • If issues are found, fix them and re-test
  • DO NOT finish until the feature is verified as working
  • Take screenshots of failures to help with debugging
  • Report all issues found and fixes applied

Workflow

  1. Authenticate

    • Navigate to $testUrl from environment
    • Fill in username field with $testUsername from environment
    • Fill in password field with $testPassword from environment
    • Submit the login form
    • Verify successful login (check for redirect or dashboard)
  2. Test the Feature

    • Navigate to the relevant page/section for the feature
    • Perform the actions described in $featureSteps
    • Capture any errors, unexpected behavior, or visual issues
    • Take screenshots if verification fails
  3. Iterate on Issues

    • If issues found: a. Document the specific problem b. Identify the root cause (use code search, read relevant files) c. Implement fixes to the codebase d. Return to step 1 (re-authenticate and re-test)
    • Repeat until feature works correctly
  4. Final Verification

    • Run one complete end-to-end test of the feature
    • Verify no console errors or warnings
    • Confirm expected behavior matches requirements
    • Document the successful test result

Read the full file on GitHub · 97 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 · 97 lines · 12 tokens per session scan A daba5c048d0e

Subscribe to this mod's changes

use-browser is a command published in the GitHub repository jnarowski/agentcmd (18 stars, last pushed 8mo ago), licensed MIT. It adds 12 tokens to every session and 699 once invoked, about $0.0001 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-01.