chrome-devtools-mcp: Instructions file for Codex

AGENTS.md

chrome-devtools-mcp AGENTS.md is an instructions file for Codex, OpenCode from ChromeDevTools/chrome-devtools-mcp. It costs 3,504 tokens per session, scanned A, original, Apache-2.0.

Repository guidance for a TypeScript project that provides a server and command-line tool for Chrome DevTools. It records the approved commands, coding rules, and files to leave untouched.

In plain words
What is it for?
Use it when changing this project, especially when building, running tests, formatting code, or editing TypeScript.
Why use it?
It gives a coding agent clear project rules, reducing accidental changes and inconsistent checks.

Instructions file for CodexOpenCode

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

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

About the project

Chrome DevTools MCP is an MCP server that lets coding agents control and inspect a live Chrome browser for automation, debugging, screenshots, network analysis, console inspection, and performance tracing. It is for developers who want AI coding assistants to test and diagnose web applications, and the catalogue add-ons provide workflows for using those browser tools.

ChromeDevTools/chrome-devtools-mcp · 60,376 stars · on GitHub · developer.chrome.com

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chromedevtools/chrome-devtools-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/chromedevtools/chrome-devtools-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,504 This file is loaded in full into every session.
When invoked 3,504 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.03504 $0.03504
Opus 5.5 $0.01402 $0.01402
Sonnet 5.5 $0.00701 $0.00701
Haiku 4.5 $0.00350 $0.00350

Measured today against content hash c1116fe8cfa2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chrome-devtools-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 today.

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.

Origin

Copies of this mod

8 near-identical copies found in the catalogue:

AGENTS.md · 241 lines

How it starts

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

This repository contains an MCP server and CLI for Chrome DevTools.

Instructions

  • Use only scripts from package.json to run commands.
  • Use npm run build to compile the project and tests with GN and Ninja.
  • Update src/BUILD.gn or tests/BUILD.gn whenever adding, renaming, or removing .ts files in src/ or tests/.
  • Use npm run test to build and run tests, run all tests to verify correctness.
  • Use npm run test path-to-test.ts to build and run a single test file, for example, npm run test tests/McpContext.test.ts.
  • Use npm run format to fix formatting and get linting errors.

Third-party bundles

  • src/third_party/index.ts is the light bundle loaded at startup (MCP SDK, zod, ajv). src/third_party/browser.ts is the heavy bundle (Puppeteer, @puppeteer/browsers, DevTools frontend); it is not loaded at server startup and only loads once a tool call needs it.
  • Import types from browser.js with import type anywhere.
  • Startup and tool-registration modules (src/index.ts, src/BrowserManager.ts, src/processors/HeapSnapshotManager.ts, src/ToolHandler.ts, src/bin/, src/daemon/, src/tools/, src/config/ and src/telemetry/) must not import values from browser.js. Get them on demand with await loadBrowser() (cached), with a dynamic import() of the module that needs them, or through page and context objects. Values used when a module loads (for example in a schema) must come from modules without browser code.
  • Classes checked with instanceof (for example TimeoutError) come only from browser.js; never re-export them from index.ts. Small pure modules may be re-exported from index.ts by their direct file path.
  • ESLint (@typescript-eslint/no-restricted-imports in eslint.config.js) rejects direct value imports from browser.js in src/index.ts, src/BrowserManager.ts, src/processors/HeapSnapshotManager.ts, src/ToolHandler.ts, src/bin/, src/daemon/, src/tools/, src/config/ and src/telemetry/, as well as value imports from ./McpContext.js in src/index.ts.

Read the full file on GitHub · 241 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. today Changed · -1 lines · -30 tokens per session c1116fe8cfa2
  2. 7d ago Changed · +6 lines · +135 tokens per session 28bc3e065661
  3. 10d ago Changed · +21 lines · +304 tokens per session fc6081d77d7b
  4. 14d ago Changed · +1 lines · +53 tokens per session a0cc334960d0
  5. 15d ago Changed · -1 tokens per session 111c9a2d5e69
  6. 26d ago Changed · +1 lines · +42 tokens per session 368daf586da4
  7. 1mo ago Changed · +155 lines · +2,030 tokens per session 252fa7224b5d
  8. 3mo ago Changed · +37 lines · +735 tokens per session 1b804c2b806a
  9. 3mo ago First seen · 21 lines · 236 tokens per session scan A 9087ba513381

Subscribe to this mod's changes

chrome-devtools-mcp AGENTS.md is an instructions file published in the GitHub repository ChromeDevTools/chrome-devtools-mcp (60,376 stars, last pushed today), licensed Apache-2.0. It adds 3,504 tokens to every session, about $0.0140 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

chrome-devtools-mcp AGENTS.md compared with instructions from other repositories

chrome-devtools-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chrome-devtools-mcp AGENTS.mdChromeDevTools/chrome-devtools-mcpInstructions file60ktodayApache-2.0A3,504Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot