webmcp-bridge: Instructions file for Codex

AGENTS.md

webmcp-bridge AGENTS.md is an instructions file for Codex, OpenCode from holon-run/webmcp-bridge. It costs 614 tokens per session, scanned A, original, MIT.

Repository instructions for WebMCP Bridge, which lets a local tool call browser features through Playwright, a browser-automation library.

In plain words
What is it for?
Use them when working on the local MCP connection, browser-page gateway, native WebMCP support, fallback shims, or site-specific adapters.
Why use it?
They give coding agents the project structure, priorities, and boundaries needed to change the bridge safely.

Instructions file for CodexOpenCode

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

This is holon-run/webmcp-bridge's own configuration. It tells Codex and OpenCode how to work on webmcp-bridge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything webmcp-bridge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to holon-run/webmcp-bridge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/holon-run/webmcp-bridge/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/holon-run/webmcp-bridge

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 webmcp-bridge AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/holon-run/webmcp-bridge/agents-md/github.svg)](https://agentmods.dev/instructions/holon-run/webmcp-bridge/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/holon-run/webmcp-bridge/agents-md"><img src="https://agentmods.dev/badge/instructions/holon-run/webmcp-bridge/agents-md/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 webmcp-bridge AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/holon-run/webmcp-bridge/agents-md"><img src="https://agentmods.dev/badge/instructions/holon-run/webmcp-bridge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 614 This file is loaded in full into every session.
When invoked 614 The same file — it is already loaded in full.
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.00614 $0.00614
Opus 5.5 $0.00246 $0.00246
Sonnet 5.5 $0.00123 $0.00123
Haiku 4.5 $0.00061 $0.00061

Measured 2mo ago against content hash 05552781f893, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

webmcp-bridge 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 2mo 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 · 50 lines

How it starts

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

Repository Guidelines

Mission

webmcp-bridge provides a local-to-browser WebMCP bridge with a unified call path: local-mcp -> playwright -> browser navigator.modelContext. The system is native-first and uses shim fallback when a website does not expose native WebMCP. The architecture is split into:

  • @webmcp-bridge/local-mcp: local stdio MCP entrypoint (one site session per process) that proxies tool requests to a browser page gateway.
  • @webmcp-bridge/playwright: browser WebMCP page gateway and lifecycle management (native-first, shim fallback).
  • @webmcp-bridge/adapter-*: site-specific fallback tool mapping, used only when native WebMCP is unavailable.
  • @webmcp-bridge/core: shared WebMCP-compatible runtime/shim contracts used by fallback paths.

Current Priorities

  1. Stabilize stdio MCP semantics in local-mcp: one-site process lifecycle and strict proxying to Playwright page gateway for tools/list and tools/call.
  2. Harden native-first behavior and shim fallback in playwright, especially around navigation/frame lifecycle edge cases.
  3. Keep adapters thin and replaceable as fallback-only components; business logic must not leak into shared layers.
  4. Expand contract coverage for native vs shim behavior before adding new sites/features.

Guardrails

  • Do not implement credential vaulting or auth bypass.
  • Assume user is already authenticated in browser session.
  • Fail closed on ambiguous upstream states (AUTH_REQUIRED, UPSTREAM_CHANGED, etc.).
  • Keep MCP payloads JSON-serializable and schema-friendly.
  • Preserve single responsibility per package; avoid cross-package implicit coupling.
  • Prefer browser-side WebMCP execution for privileged site actions; do not move site credentials into local-mcp.

Coding Rules

  • Language: TypeScript ESM, 2-space indentation.
  • Every source file must start with a short module header comment describing:
    • module responsibility;
    • dependency relationship with other modules.
  • Prefer small pure utilities and explicit error mapping.
  • Avoid introducing site-specific constants into shared packages.

Read the full file on GitHub · 50 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. 2mo ago First seen · 50 lines · 614 tokens per session scan A 05552781f893

Subscribe to this mod's changes

webmcp-bridge AGENTS.md is an instructions file published in the GitHub repository holon-run/webmcp-bridge (28 stars, last pushed 6mo ago), licensed MIT. It adds 614 tokens to every session, about $0.0025 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-08-30.

Related

webmcp-bridge AGENTS.md compared with instructions from other repositories

webmcp-bridge AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
webmcp-bridge AGENTS.mdholon-run/webmcp-bridgeInstructions file286mo agoMITA614Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode