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.
npx agentmods add instructions/ardaraz/playwright-my-chrome/agents-mdgit clone --depth 1 https://github.com/arDaraz/playwright-my-chromeWrote 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.
[](https://agentmods.dev/instructions/ardaraz/playwright-my-chrome/agents-md)<a href="https://agentmods.dev/instructions/ardaraz/playwright-my-chrome/agents-md"><img src="https://agentmods.dev/badge/instructions/ardaraz/playwright-my-chrome/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01248 | $0.01248 |
| Opus 5 | $0.00624 | $0.00624 |
| Sonnet 5 | $0.00250 | $0.00250 |
| Haiku 4.5 | $0.00125 | $0.00125 |
Grade A, and why
playwright-my-chrome AGENTS.md 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 5d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to coding agents working with code in this
repository. It is the single source of truth; CLAUDE.md is a symlink to it.
What this repository is
One published Agent Skill, skills/playwright-my-chrome/, that lets an agent
drive the Chrome the user already has open and signed in. Everything shipped to
users lives in that directory; the repository root only holds docs, tests, and
CI. macOS and Google Chrome only.
Commit and push
Never commit or push to the main branch. Work on a branch and open a pull
request.
Commands
npm run lint # shellcheck + bash -n on every .sh, then tests/validate_skill.py
npm test # tests/run.sh, the 21 behavior tests (about 12s)
npm run verify # both
npx [email protected] install . --list # third release check, Skills CLI discovery
npm run lint needs shellcheck on PATH (brew install shellcheck).
tests/run.sh has no filter flag. It is fast enough to run whole; to isolate one
case, comment out the other calls in the invocation list at the bottom of the
file.
Before any manual check against real Chrome, reinstall first. npx skills install copies the skill directory instead of linking it, so an installed copy
goes stale as soon as scripts/ changes and would silently test old code:
npx skills install . --skill playwright-my-chrome --global \
--agent codex --agent claude-code
Then run the wrapper from the installed path, not from this repository.
Architecture
scripts/playwright-my-chrome.sh (about 1800 lines of bash) is the product. It
is a fail-closed wrapper around an already-installed @playwright/cli, not a
library. Reading it top to bottom gives the whole design:
- Preamble resolves the CLI and Node from fixed absolute locations (nvm,
Volta, Homebrew,
/usr/local), never through callerPATH, then resetsPATHto system directories so nothing secret-bearing can be shimmed. - Runtime directory under the user's Caches folder must be private, mode
0700, non-symlink, and carry a claim file. The wrapper
cds there for every CLI call, which is how one shared session namedmychromestays the same from any repository: Playwright CLI picks its daemon session from the nearest.playwrightfolder. - Attachment (
attach_session) is the security core. It requires exactly one normal Chrome main process already running, reads the Keychain token only at that point, writes it to the child as an environment variable, and compares the full Chrome PID set immediately before and after. A changed PID set, or a Chrome command line still carrying the token, detaches and demands token rotation. - Cleanup paths (
scrub_known_output,finalize_sanitation,remove_known_output) delete only what private, mode-0600, non-symlink metadata files name, and refuse traversal-shaped paths. - Dispatch at the bottom is an allowlist.
open, rawattach,show,install,close-all, andkill-allare rejected locally. Unknown commands go throughensure_sessionand are forwarded with the session flag and token redaction.
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.
- 5d ago First seen · 112 lines · 1,248 tokens per session scan A 4243e8f1c2f1
playwright-my-chrome AGENTS.md is an instructions file published in the GitHub repository arDaraz/playwright-my-chrome (2 stars, last pushed 24d ago), licensed MIT. It adds 1,248 tokens to every session, about $0.0062 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-08-31.
Other instructions, from other repositories
playwright CLAUDE.md
Claude Code instructions for microsoft/playwright, covering monorepo packages, browser packages, tooling packages, key directories and build.
playwright copilot-instructions.md
Copilot instructions for microsoft/playwright, a project described as: Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
playwright-cli CLAUDE.md
Claude Code instructions for microsoft/playwright-cli, covering commit convention, ... make changes .. and summary.
playwriter AGENTS.md
Instructions for remorses/playwriter, covering backward compatibility, architecture, development, running mcp locally and running cli locally.
moli AGENTS.md
AGENTS.md instructions for lexmount/moli: Before committing changes that modify Rust source code or Rust build metadata (such as Cargo.toml, Cargo.lock, or rust-toolchain), run all of the following from the repository root and ensure they pass.
grok-register-panel AGENTS.md
AGENTS.md instructions for lij768423-svg/grok-register-panel, covering agents.md, project scope, architecture and ownership, runtime flows and setup and run.