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 agents/enihcam/opencode-webmcp/agent-briefgit clone --depth 1 https://github.com/enihcam/opencode-webmcpWhat 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 | $0.00000 | $0.00492 |
| Opus 5 | $0.00000 | $0.00246 |
| Sonnet 5 | $0.00000 | $0.00098 |
| Haiku 4.5 | $0.00000 | $0.00049 |
Grade A, and why
AGENT-BRIEF 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.
What it actually says
Agent Brief — opencode-webmcp
Project Overview
Single-file MCP server bridging MCP clients (OpenCode, Claude Code) to Chromium's WebMCP API.
Connects via Puppeteer + CDP, discovers tools registered via document.modelContext on the page,
and exposes them as MCP tools.
Entry point: server.js (ESM, Node 18+, ~400 lines)
Deps: @modelcontextprotocol/sdk + puppeteer-core
No build step — edit server.js, restart to apply changes.
Architecture
- Bridge-native tools (always available):
webmcp_navigate— navigate to a URLwebmcp_status— get page/tool statuswebmcp_evaluate— run JS in page contextwebmcp_invoke_tool— call a registered WebMCP toolwebmcp_register_test_tools— register test helpers
- Page-discovered WebMCP tools — served alongside bridge tools
- Monkey-patch via
evaluateOnNewDocument: Chrome 150+ has a bug wherepage.webmcp.invokeTool()returns{}. The bridge interceptsdocument.modelContext.registerToolto capture each tool'sexecutefunction, then replacesexecuteToolto call captured functions directly. - Auto-recovery: detached-frame errors re-create the page automatically.
Key Implementation Details
- Chrome requirement: 150+ with
--enable-features=WebMCPTesting,DevToolsWebMCPSupport puppeteer-core— no bundled browser; must have system Chrome/ChromiumCHROME_PATH,WEBMCP_TARGET_URL,WEBMCP_HEADLESSenv vars--no-sandboxalways set;--ozone-platform=waylandadded when not headless
Testing
node --check server.js # syntax check
node test/unit.mjs # 36 unit tests
Useful Links
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.
- yesterday First seen · 46 lines · 0 tokens per session scan A da488170b8e4
AGENT-BRIEF is an agent published in the GitHub repository enihcam/opencode-webmcp (1 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 492 tokens. 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 agents, from other repositories
qa-tester
Use when the task is a verifiable browser interaction with a binary pass/fail outcome — login flow, submit form, attach file, verify message appears. Returns a verdict + evidence. Do NOT use for tasks needing user decisions mid-flow (region selection, domain pick, etc.).
Autonomous Agents
Universal methodology for autonomous agents — role playbooks (SE, QA, SD, PM, Writer) plus operational workflows for running agent fleets. App-agnostic: works with any web application or codebase.
analyzer
You are the Analyzer agent for Founder Mode — Phase 7: Post-Run Analysis.
scorer
Simulates Phoenix algorithm scoring on X post drafts. Returns detailed signal analysis and composite scores.
synthesizer
You are the Synthesizer for the Architect evaluation system. You receive structured outputs from multiple evaluator agents and synthesize them into a unified evaluation with clear scores, actionable recommendations, and strategic direction.
evaluator-innovation
You are the Innovation Scout subagent for the Architect evaluation system.