bladebro: Instructions file for Codex

AGENTS.md

bladebro AGENTS.md is an instructions file for Codex, OpenCode from dondai44423/bladebro. It costs 2,924 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for coding agents working on Bladebro, a Rust program that drives Chrome or Chromium through the browser's developer protocol. They describe required documents, project commands, change boundaries, and verification expectations.

In plain words
What is it for?
Use them before changing the Bladebro codebase to find the contribution contract, relevant commands, non-negotiable rules, and verification steps.
Why use it?
They help an agent understand how this repository works and which rules changes must satisfy before review. They also explain that tool output should stay concise and that browser stealth changes must be measured and documented.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 bladebro AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dondai44423/bladebro/agents-md"><img src="https://agentmods.dev/badge/instructions/dondai44423/bladebro/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,924 This file is loaded in full into every session.
When invoked 2,924 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.02924 $0.02924
Opus 5.5 $0.01170 $0.01170
Sonnet 5.5 $0.00585 $0.00585
Haiku 4.5 $0.00292 $0.00292

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

Security

Grade A, and why

bladebro 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.

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

Canonical engineering guide for coding agents in this repository. Read CONTRIBUTING.md alongside this file; if they ever conflict, CONTRIBUTING.md wins.

Bladebro is a single Rust binary (bladebro) providing an MCP stdio server (bladebro mcp) and CLI (bladebro nav, see, act, …) that drive stock Chrome/Chromium over the Chrome DevTools Protocol (CDP). No Node.js runtime in the driver, no Playwright/Puppeteer, no internal LLM.

  • Perception as a side-effect of acting: a persistent Live Page Model reads the live DOM (including open shadow roots and visible same-origin frames) and returns outcome verdicts + compact deltas instead of full-page snapshots.
  • Stable, self-healing refs (e1, e2, …): keyed by framePath|role|name|rank plus an FNV-1a structural fingerprint so refs survive React/Vue/Angular re-renders and retired refs heal through the ref graveyard.
  • Two lanes: the default agent lane launches an owned Chromium + seasoned profile with full stealth; the real-browser lane (bladebro rb on) drives a user's installed Chromium-family browser (auto/clone/profile/attach) with page injection completely disabled.

Hard Invariants

Violating any rule below is an automatic rejection:

  1. Five tools forever (act, see, state, run, vision). New capabilities ship as parameters or behaviors on those five; MCP and CLI share one handler surface.
  2. Deterministic driver only. Zero LLM/model calls inside Bladebro.
  3. No general CAPTCHA solver. Detect walls, return an honest blocked: verdict, and run the remediation ladder. Sole exception: a site-gated adapter clicking a human-trivial single checkbox (e.g., Reddit's humanity check) via normal humanized input; image/grid challenges are never solved.
  4. Stock Chromium engine. Never fork Chromium.
  5. Native-Proxy stealth (agent lane) and zero-patch real lane. Every injected function/getter wraps the native original in a Proxy that delegates first (preserving WebIDL conversions, receiver errors, microtask rejection order, {length, name} own keys, and the cycle-exact setPrototypeOf shield guarded by shell-torture in tests/vectors.html). Never patch Function.prototype.toString. Install a mask only when the native value is an automation tell. Real-browser mode (rb) runs with page injection off.
  6. Zero automation flags on the default lane. Default CDP transport is WebSocket (navigator.webdriver == false natively); never add --enable-automation or --disable-blink-features=AutomationControlled. BLADE_TRANSPORT=pipe (Unix zero-port pipe) stays opt-in and carries its own mask. Headless Linux runs headful on Xvfb + xfwm4 with --use-angle=gl-egl; WebGL masking is for software-GL hosts only and caps limits at the real backend.
  7. Readback-verified verdicts & single-dispatch mutations. Never report a write, clear, toggle, upload, or select as succeeded without live readback (or say readback unverified). Accepted clicks/submits dispatch once even if the DOM stays quiet; an unknown mutation outcome after disconnect requires destination inspection before retrying, while only safe reads retry. Action errors include current page state.
  8. Disclosed read bounds. Every clipped, paginated, capped, or offloaded read states its exact bound; templates and adapters distinguish missing from empty and mark partial results (complete: false).
  9. Process & profile discipline. Validate owned profile permissions/symlinks before launch; flush storage via Browser::shutdown_gracefully() on stop/EOF/signal/idle before process-group (or Windows job) cleanup; never close an externally attached browser. All tests and probes must isolate data in scratch BLADE_HOME directories — never touch a real user profile.
  10. Cross-platform parity. Linux (x64, arm64), macOS (x64, arm64), and Windows (x64) are all required targets; isolate OS specifics in src/platform.rs / src/platform/.
  11. DonSeTch ecosystem contract (dondai44423/donsetch). DonSeTch bundles Bladebro across all five release archives, npm, and Docker, and runs it directly as its Tier-2 stealth renderer and passive CDP state harvester (cookie/API learning). Preserve these downstream contracts unless coordinated with DonSeTch:
    • Release asset names (bladebro-{linux-x64,linux-arm64,darwin-arm64,darwin-x64,windows-x64.exe} + .sha256), releases.atom feed, and Linux glibc ≤ 2.35 baseline (currently 2.28).
    • Isolated lane env & files: BLADE_HOME, BLADE_NO_UPDATE_CHECK=1, BLADE_PLAIN=1, BLADE_NO_ACTIVATE=1, cli.sock liveness on Unix, bladebro stop / --version, and seedable profile/seasoning layout (profile/, .warmed, .fingerprint.json, .template.guard, knowledge/).
    • Stdin JSON plans (bladebro run - --json for navigate/wait/see/eval), nav about:blank --json, state cookies <url> / state tabs, payload_path artifact spills, "page has no text content", and ⚠ blocked: / ⚠ http: verdicts.
    • Default WebSocket CDP transport (BLADE_TRANSPORT=ws) logging the active DevTools port/URL to <BLADE_HOME>/logs/chrome-last-launch.log so DonSeTch's passive harvester attaches with zero extra CLI round-trips.
  12. Zero doc sprawl or append-only history. Never create new .md files, subfolder READMEs, plan/audit notes, or scratch dumps in the repo (all probes live in tools/README.md; scratch outputs go in /tmp). Do not read CHANGELOG.md for codebase context and do not edit it in PRs. Update existing docs by replacing stale lines in place — never append dated logs or "previously did X" stories.

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. today Changed · +5 lines · +367 tokens per session 448d010b2981
  2. 9d ago Changed · +17 tokens per session 96b4cfa8c598
  3. 10d ago Changed · -46 lines · -1,205 tokens per session d658a6f3f182
  4. 16d ago Changed · +18 lines · +511 tokens per session 725f1e46964e
  5. 24d ago Changed · -1 tokens per session 0d49157dd031
  6. 25d ago Changed · +1 lines · +83 tokens per session b6d8dcf19499
  7. 1mo ago Changed 2a7460489b41
  8. 1mo ago Changed b4e2673a89dc
  9. 1mo ago Changed e37afde0f154
  10. 1mo ago First seen · 109 lines · 3,152 tokens per session scan A 958e594ab8e7

Subscribe to this mod's changes

bladebro AGENTS.md is an instructions file published in the GitHub repository dondai44423/bladebro (550 stars, last pushed today), licensed Apache-2.0. It adds 2,924 tokens to every session, about $0.0117 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-09-28.

Related

bladebro AGENTS.md compared with instructions from other repositories

bladebro AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bladebro AGENTS.mddondai44423/bladebroInstructions file550todayApache-2.0A2,924Codex, 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 file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode