cloakbrowser-mcp AGENTS.md

cloakbrowser-mcp AGENTS.md is an instructions file for Codex, OpenCode from swimmwatch/cloakbrowser-mcp. It costs 2,582 tokens per session, scanned A, original, MIT.

An operating guide for CloakBrowser MCP, a small bridge that connects Playwright MCP browser tools to CloakBrowser's Chromium browser. MCP is a standard way for AI tools to communicate with software.

In plain words
What is it for?
Use it when developing, debugging, or reviewing this Node.js and TypeScript command-line bridge.
Why use it?
It explains the project structure, runtime rules, and limits that prevent agents from breaking the upstream browser-tool interface.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

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 instructions/swimmwatch/cloakbrowser-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/swimmwatch/cloakbrowser-mcp

Made for: Codex, OpenCode.

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 cloakbrowser-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/swimmwatch/cloakbrowser-mcp/agents-md.svg)](https://agentmods.dev/instructions/swimmwatch/cloakbrowser-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/swimmwatch/cloakbrowser-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/swimmwatch/cloakbrowser-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,582 This file is loaded in full into every session.
When invoked 2,582 The same file — it is already loaded in full.
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.02582 $0.02582
Opus 5 $0.01291 $0.01291
Sonnet 5 $0.00516 $0.00516
Haiku 4.5 $0.00258 $0.00258

Measured 6d ago against content hash 06c9c7ec3f1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cloakbrowser-mcp 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 6d 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.

AGENTS.md · 216 lines

How it starts

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

AGENTS.md

Operating manual for AI coding agents working in this repository.

About The Project

cloakbrowser-mcp is a stdio MCP bridge for upstream @playwright/mcp. It starts upstream Playwright MCP as a child process, injects the CloakBrowser Chromium executable through a generated Playwright MCP config, forwards upstream tools unchanged, and adds only two local introspection tools.

  • Runtime: Node.js ^22.13.0 || >=24.0.0, ES modules, TypeScript strict with NodeNext.
  • Public surface: CLI package only, bin: cloakbrowser-mcp.
  • Docker base: pinned official Playwright MCP image from Dockerfile.

Golden Rules

  1. Write the simplest possible code. Do only what was requested.
  2. Use the context7 MCP tool whenever you need up-to-date documentation or API references for external libraries.
  3. Everything in this repository is written in English.
  4. AI-agent reasoning and code-agent reasoning for this repository must be in English.
  5. Do not copy, rewrite, or mutate upstream Playwright MCP browser tool contracts.

Project Layout

src/
  cli.ts                  CLI entry point
  server.ts               outer MCP proxy server
  index.ts                metadata export only
  bridge/                 config generation, env parsing, upstream path resolution, local tools
  cli/                    option handling, diagnostics, singleton cleanup
  http/                   Streamable HTTP server and session lifecycle
  logging/                stderr/file logging
  protocol/               shared protocol constants
  runtime/                console fallback source strings
  project/                project metadata
tests/
  unit/                   env/config/local tool tests
  integration/            fake-upstream MCP proxy tests
  fixtures/               fake upstream MCP server

Daily Commands

npm run dev
npm test
npm run test:unit
npm run test:integration
npm run typecheck
npm run lint
npm run format
npm run format:check
npm run build
npm run package:verify
npm run docker:build
npm run docker:smoke
npm run bridge:compare
npm run check

Read the full file on GitHub · 216 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. 6d ago First seen · 216 lines · 2,582 tokens per session scan A 06c9c7ec3f1a

Subscribe to this mod's changes

cloakbrowser-mcp AGENTS.md is an instructions file published in the GitHub repository swimmwatch/cloakbrowser-mcp (56 stars, last pushed yesterday), licensed MIT. It adds 2,582 tokens to every session, about $0.0129 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-30.

Related

Other instructions, from other repositories

browser-use AGENTS.md

AGENTS.md instructions for browser-use/browser-use, covering agents.md version 2, development rules, quickstart, 1. installing browser-use and on windows use .venv\scripts\activate.

browser-use/browser-use · 9,117 tokens

browser-use CLAUDE.md

Claude Code instructions for browser-use/browser-use, covering claude.md, high-level architecture, core components, event-driven browser management and cdp integration.

browser-use/browser-use · 2,495 tokens

stealth-browser-mcp AGENTS.md

Instructions for vibheksoni/stealth-browser-mcp, covering agent instructions, start here, recommended proxy services, environment and validation.

vibheksoni/stealth-browser-mcp · 712 tokens

mcp-stealth-chrome AGENTS.md

Instructions for RobithYusuf/mcp-stealth-chrome, covering mcp-stealth-chrome — agent guide, product and repository map, hard constraints, working defaults and architecture invariants.

RobithYusuf/mcp-stealth-chrome · 4,144 tokens

AgenticCrawler AGENTS.md

Instructions for Mingye-Lu/AgenticCrawler, covering agents.md, project, commands, non-interactive provider setup (agent/ci use) and exit codes: 0=ok 1=error 2=usage/config 3=not-configured.

Mingye-Lu/AgenticCrawler · 5,394 tokens

browser-mcp AGENTS.md

AGENTS.md instructions for drisplabs/browser-mcp, covering snapshot & interaction pipeline — audit results, critical (agent can't complete tasks), major (agent works around it poorly), m2. batch vs. fallback coordinate space mismatch and m3. wrapping hidden inputs dropped from snapshot.

drisplabs/browser-mcp · 3,211 tokens