blowsh-mcp: Instructions file for Codex

AGENTS.md

blowsh-mcp AGENTS.md is an instructions file for Codex, OpenCode from mokhtarabadi/blowsh-mcp. It costs 3,262 tokens per session, scanned A, original, MIT.

A project instruction file for blowsh-mcp, an MCP server that lets AI agents browse modern JavaScript web pages through a text-based browser. It documents setup, safety rules, development commands, and verification steps.

In plain words
What is it for?
Use it when building, running, Docker-packaging, testing, or reviewing blowsh-mcp, including its web search, link extraction, batch fetching, and structured page extraction.
Why use it?
It gives agents the project context and operating rules needed to change the server safely and check that it still works.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mokhtarabadi/blowsh-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/mokhtarabadi/blowsh-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,262 This file is loaded in full into every session.
When invoked 3,262 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.03262 $0.03262
Opus 5 $0.01631 $0.01631
Sonnet 5 $0.00652 $0.00652
Haiku 4.5 $0.00326 $0.00326

Measured 6d ago against content hash 212eb99fb7e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

blowsh-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 6d 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 · 140 lines

How it starts

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

blowsh-mcp — Project Context Hub

Project Overview

blowsh-mcp is a Model Context Protocol (MCP) server that exposes Browsh — a fully JavaScript-capable terminal browser backed by headless Firefox — to AI agents. It renders any modern web page after full JS execution and returns plain text, HTML, or Markdown. Version 2.0.0 adds web search, link extraction, batch fetching, structured extraction, an SSRF guard, and a TTL render cache.

Tech stack: TypeScript 7 (strict, NodeNext ESM), Node.js >= 20.18, @modelcontextprotocol/sdk 1.30, zod 4, axios, cheerio, html2markdown CLI (external binary), Browsh CLI + Firefox (external binaries), Docker (multi-stage fat image).

Setup & Dev Commands

  • Build: npm run build (tsc, outputs dist/)
  • Start: node dist/server.js (stdio MCP transport)
  • Dev: npm run dev (tsx watch-less runner)
  • Docker build: docker build -t blowsh-mcp:latest .
  • Docker run (MCP over stdio — MUST include -i): docker run --rm -i blowsh-mcp:latest
  • Verify: build, docker build, then an MCP JSON-RPC smoke test over stdio (initialize → tools/list → tools/call)
  • Lint: none configured; strict tsc is the gatekeeper

Actionable Guardrails (Do's & Don'ts)

  • Don't run the server directly on this machine for fetch tests — Firefox/Browsh/html2markdown are NOT installed locally. -> Do test through Docker: docker run --rm -i blowsh-mcp:latest.
  • Don't use firefox-esr as a bare binary name for Browsh — it resolves /usr/bin/firefox-esr only. -> Do set BROWSH_FIREFOX_PATH=/usr/bin/firefox-esr in the Dockerfile (already done).
  • Don't return error strings as successful tool results — tools must throw FetchError so MCP responds with isError: true. -> Do propagate FetchError (with HTTP status when known) and let server.ts format it.
  • Don't bypass the SSRF guard (assertSafeUrl) when adding new fetch paths. -> Do call assertSafeUrl(url) before any URL reaches Browsh.
  • Don't execute Git commands like git add, git commit, or git push autonomously or try to guess when to stage code. -> Do execute Git commands ONLY when explicitly instructed by an Orchestrator task block. Otherwise, rely on the custom_context_stage_and_inject_diff MCP tool. -> Exception: git mv is permitted autonomously for moving task files between Kanban directories (backlog, in-progress, qa, completed, archive).
  • Don't read context-reports/ markdown files yourself. -> Do generate them using the MCP server — context reports via custom_context_read_source_files, tree reports via custom_context_create_tree_report ("create a tree of the project") — and hand the file path to the Manager.
  • Don't guess blindly when facing complex bugs, deadlocks, or silent timeouts. -> Do utilize the debug-instrumentation skill to inject strategic logs and trace the runtime execution path.
  • Don't write bash scripts without strict mode or mask errors with 2>/dev/null on data commands. -> Do follow the Defensive Shell Protocol: set -euo pipefail, ban error masking, sidecar isolation for Docker backups. See docs/conventions.md.
  • Don't perform financial mutations without snapshotting the prior state or allow nulls in monetary aggregations. -> Do follow the Universal Financial Ledger Standard: snapshot-on-write, $ifNull precedence, discrepancy alerting, deep config merging. See docs/conventions.md.
  • Don't carry over assumptions, partial results, or architectural hypotheses from a previous task. -> Do flush context and treat every task as contextually independent (Buffer Isolation directive in validation-phase).
  • Don't execute raw, informal, or non-English (Farsi) prompts directly. -> Do load the prompt-refactor skill to translate and expand the intent into an elite English spec first. (Note: If you receive a standard XML task block, skip this and execute normally).
  • Don't attempt to resolve cross-disciplinary ambiguity within a single persona. -> Do trigger the Multi-Agent Brainstorming Loop if the Manager explicitly requests brainstorming or a task exhibits cross-disciplinary ambiguity. Interpret the <brainstorming_session> results in backlog tasks as non-functional guidelines that govern execution.

Read the full file on GitHub · 140 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. 6d ago Changed · +53 lines · +1,674 tokens per session 212eb99fb7e2
  2. 9d ago First seen · 87 lines · 1,588 tokens per session scan A f72b036b60b1

Subscribe to this mod's changes

blowsh-mcp AGENTS.md is an instructions file published in the GitHub repository mokhtarabadi/blowsh-mcp (3 stars, last pushed 8d ago), licensed MIT. It adds 3,262 tokens to every session, about $0.0163 per session on Opus 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-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens