pagespeed-insights-mcp: Instructions file for Codex

AGENTS.md

pagespeed-insights-mcp AGENTS.md is an instructions file for Codex, OpenCode from Considus/pagespeed-insights-mcp. It costs 987 tokens per session, scanned B, original, Apache-2.0.

Repository instructions for changing the pagespeed-insights-mcp project. They define a process of isolating work on a branch, building it, proving the result with evidence, and submitting a pull request.

In plain words
What is it for?
Use them when contributing to this repository, from creating a branch through testing the change and preparing its pull request.
Why use it?
They reduce accidental changes on the wrong branch and make each proposed change easier to verify.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/considus/pagespeed-insights-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/considus/pagespeed-insights-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 987 This file is loaded in full into every session.
When invoked 987 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00987 $0.00987
Opus 5.5 $0.00395 $0.00395
Sonnet 5.5 $0.00197 $0.00197
Haiku 4.5 $0.00099 $0.00099

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

Security

Grade B, and why

pagespeed-insights-mcp AGENTS.md scanned grade B with 1 finding 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 13d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

for h in pre-commit commit-msg; do git show "origin/main:hooks/$h" > "$d/$h.tmp" && chmod 755 "$d/$h.tmp" && mv "$d/$h.tmp" "$d/$h" || { rm -f "$d/$h.tmp"; echo "not copied: $h"; }; done
AGENTS.md · 49 lines

How it starts

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

Agent notes

For a coding agent working in this repo: the part an agent needs and a person already knows. People start with CONTRIBUTING.md; read it before writing, because this file does not repeat it.

Build

  • Keep the three ground rules in CONTRIBUTING.md: standard library only, no number without its uncertainty, lab and field kept separate. They are constraints, not preferences: a change that breaks one is rejected however good the rest is.
  • Keep Python 3.9 working. CI runs 3.9 and 3.12 on Linux, macOS and Windows. A 3.10-only construct (match, a runtime-evaluated X | Y annotation, zip(strict=), itertools.pairwise, tomllib, dataclass(slots=)) passes on a newer interpreter and fails only in the 3.9 leg.
  • Change the version in pagespeed_insights/__init__.py and the tool list in the package, then run ./build-mcpb.py --sync. manifest.json is generated from them, so edit it only through --sync. Tool titles and hints are in CONTRIBUTING.md, under "Building the bundle".
  • Extract shared logic only when two callers need it. One caller makes a layer for nothing.

Test

python3 -m compileall -q pagespeed_insights setup.py mcp_server.py tests
python3 -m unittest discover -s tests -v
./build-mcpb.py --check

A PR needs all three green. Read the test count, not the word "passed": a collection error reports zero failures. No test needs an API key or a network connection; to try the real API, follow "Testing against the real APIs" in CONTRIBUTING.md.

Capture the before while you are still reproducing the problem, which is when it is cheapest, and the after once the change works. Here that is usually a pair of command outputs.

Not checkable locally: the Windows and Linux CI legs, the 3.9 leg unless 3.9 is installed, how a client renders the tool list, and whether the MCP Registry accepts a listing (mcp-publisher validate is the only thing that answers that before a release is cut).

Read the full file on GitHub · 49 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. 13d ago Changed · +64 tokens per session d92628b7aedd
  2. 19d ago Changed · +9 lines · +210 tokens per session scan A → B b0b82f251df2
  3. 20d ago Changed · +6 tokens per session 53a55ccf8de3
  4. 23d ago Changed · -29 lines · -534 tokens per session 7b86e09fb966
  5. 1mo ago Changed · +2 lines · +46 tokens per session e80f56c1cdd5
  6. 1mo ago Changed · +10 tokens per session 1e12eb4d4a81
  7. 1mo ago Changed · +5 tokens per session 9ef28849dd45
  8. 1mo ago Changed · +37 tokens per session 0ef599f9f2c6
  9. 1mo ago Changed · +46 tokens per session d32cdb1249d2
  10. 1mo ago First seen · 67 lines · 1,097 tokens per session scan A 140a20522813

Subscribe to this mod's changes

pagespeed-insights-mcp AGENTS.md is an instructions file published in the GitHub repository Considus/pagespeed-insights-mcp (1 stars, last pushed 7d ago), licensed Apache-2.0. It adds 987 tokens to every session, about $0.0039 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-18.

Related

pagespeed-insights-mcp AGENTS.md compared with instructions from other repositories

pagespeed-insights-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pagespeed-insights-mcp AGENTS.mdConsidus/pagespeed-insights-mcpInstructions file17d agoApache-2.0B987Codex, 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