chrome-cdp-ex: Instructions file for Codex

AGENTS.md

chrome-cdp-ex AGENTS.md is an instructions file for Codex, OpenCode from EndeavorYen/chrome-cdp-ex. It costs 1,829 tokens per session, scanned A, original, from a forked repository, MIT.

Repository instructions for EndeavorYen/chrome-cdp-ex, a project that works with Chrome through the Chrome DevTools Protocol. They define pull-request targets and the checks required before merging.

In plain words
What is it for?
Guiding changes in chrome-cdp-ex, including npm tests, linting, documentation checks, and live smoke tests when supported browser features are changed.
Why use it?
They give the agent the repository's contribution rules and local merge checks, reducing the chance of sending changes to the wrong branch or skipping required validation.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions AGENTS.md.

This is EndeavorYen/chrome-cdp-ex's own configuration. It tells Codex and OpenCode how to work on chrome-cdp-ex 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 chrome-cdp-ex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to EndeavorYen/chrome-cdp-ex. 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/EndeavorYen/chrome-cdp-ex/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/EndeavorYen/chrome-cdp-ex

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 chrome-cdp-ex AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/endeavoryen/chrome-cdp-ex/agents-md"><img src="https://agentmods.dev/badge/instructions/endeavoryen/chrome-cdp-ex/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,829 This file is loaded in full into every session.
When invoked 1,829 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 fork From a forked repository.
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.01829 $0.01829
Opus 5.5 $0.00732 $0.00732
Sonnet 5.5 $0.00366 $0.00366
Haiku 4.5 $0.00183 $0.00183

Measured 4d ago against content hash 7006094d414c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chrome-cdp-ex 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 4d 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 · 87 lines

How it starts

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

AGENTS.md — chrome-cdp-ex

This is the only instruction file for agents working on this repository.

chrome-cdp-ex lets an agent use the user's running Chrome (or an Electron app) through the Chrome DevTools Protocol: the same tabs, cookies, and logins. Node.js 22+, zero runtime dependencies.

Layout

Path What
skills/chrome-cdp-ex/scripts/cdp.mjs Entry point only: runs main when executed and re-exports executeCdpCli and __test__.
skills/chrome-cdp-ex/scripts/lib/cdp-*.mjs The runtime, split out of cdp.mjs: cdp-base (constants and pure helpers; imports no other cdp-* module), cdp-core (daemon lifecycle, tab environment, console buffers), cdp-browser (browser discovery, targets, tab groups), cdp-page (screenshots, diff-shot, nav), cdp-action-result (action outcome and diagnosis), cdp-session-report (status, summary, QA, reports, record export), cdp-perceive (refs and perceive), cdp-input (click, press, scroll, hover, drag, fill, select), cdp-page-commands (components, cookies, netlog, mock, upload, text, table), cdp-flow (inject, record, cascade, batch, flow, replay), cdp-doctor (doctor, spawn-debug-browser, overlay), cdp-daemon (runDaemon and the daemon server), cdp-cli (help, argument parsing, CLI errors, open), cdp-main (main, executeCdpCli). cdp-domains and cdp-session are the older CDP transport helpers. Commands are <name>Str(cdp, sid, ...) functions registered in COMMANDS.
skills/chrome-cdp-ex/scripts/lib/ (other files) Focused helpers: recovery, receipts, perception model, MCP adapter, command-surface.mjs (command catalog).
skills/chrome-cdp-ex/scripts/mcp-server.mjs stdio MCP server; maps tools to the same CLI commands.
skills/chrome-cdp-ex/SKILL.md Always-loaded agent card. Exhaustive command docs: skills/chrome-cdp-ex/references/, docs/reference.md.
tests/ Vitest. scripts/live-smoke.mjs drives a real browser.
changelog.d/ Unreleased changelog fragments.

Read the full file on GitHub · 87 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. 4d ago Changed · +38 tokens per session 7006094d414c
  2. 10d ago Changed · +2 lines · +36 tokens per session 75e7b5fc70f2
  3. 16d ago Changed · +30 lines · +1,080 tokens per session f9eb4e670c96
  4. 20d ago Changed · +34 lines · +498 tokens per session f7b630367f45
  5. 1mo ago First seen · 21 lines · 177 tokens per session scan A 90296bce0fca

Subscribe to this mod's changes

chrome-cdp-ex AGENTS.md is an instructions file published in the GitHub repository EndeavorYen/chrome-cdp-ex (22 stars, last pushed 3d ago), licensed MIT. It adds 1,829 tokens to every session, about $0.0073 per session on Opus 5.5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other instructions, from other repositories