RustBrowser CLAUDE.md

RustBrowser CLAUDE.md is an instructions file for Claude Code from JoshuaWangTW/RustBrowser. It costs 852 tokens per session, scanned A, original, MIT.

A contributor guide for RustBrowser, a Rust project with defined agent roles, build requirements, safety rules, and verification steps. Rust is a programming language focused on memory safety and compiled performance.

In plain words
What is it for?
Use it when planning or implementing RustBrowser changes, running formatting, linting, tests, or release-build smoke tests against real websites.
Why use it?
It sets expectations for planning, delegation, environment setup, dependency choices, and proof that changes work. This helps contributors follow the project’s required checks before declaring completion.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions AGENTS.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/joshuawangtw/rustbrowser/claude-md
Clone the repo
git clone --depth 1 https://github.com/JoshuaWangTW/RustBrowser

Made for: Claude Code.

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 RustBrowser CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/joshuawangtw/rustbrowser/claude-md.svg)](https://agentmods.dev/instructions/joshuawangtw/rustbrowser/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/joshuawangtw/rustbrowser/claude-md"><img src="https://agentmods.dev/badge/instructions/joshuawangtw/rustbrowser/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 852 This file is loaded in full into every session.
When invoked 852 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00852 $0.00852
Opus 5 $0.00426 $0.00426
Sonnet 5 $0.00170 $0.00170
Haiku 4.5 $0.00085 $0.00085

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

Security

Grade A, and why

RustBrowser CLAUDE.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.

CLAUDE.md · 44 lines

What it actually says

RustBrowser 執行準則

每個 session 適用。RB = RustBrowser(僅為互動別名,不改 code 層命名)。互動慣例與 issue 記錄模板見 AGENTS.md

模型分工 × Loop(固定準則)

  • Fable 5 = 大腦(主迴圈):定可驗證的 goal、盤點排序、拆小輪、派工、每輪驗證、收斂記錄。判斷不外包。
  • Opus = 派工/規劃層:稽核、架構、規劃、審查一律派 Opus agents(architect / planner / critic / code-reviewer,model: opus)。
  • Sonnet 5 = 執行層:規格已明確的實作派 executor(model: sonnet),每輪 1–3 筆、改動面小、可獨立驗證。
  • Loop 直到 goal:依 loop-method——goal 未達成且仍能推進就繼續下一輪;停止條件 = goal 全數驗證通過,或連續 2 輪無法推進(此時回報卡點,不硬衝)。
  • 例外:單檔小改動 Fable 直接做,不為小事開 agent。

宣告完成的唯一標準:跑完下方驗證流程且全綠 + 真實驗證留證據。絕不因「edit 成功」宣告完成。

Build 環境(Windows 受限網路,每個 shell 都要)

$env:Path = "$env:USERPROFILE\.cargo\bin;D:\aiproject\RustBrowser\.tools\nasm-2.16.03;$env:Path"
$env:CARGO_HTTP_CHECK_REVOKE = "false"
  • TLS 走 rustls 雙根憑證(rustls-tls-webpki-roots + rustls-tls-native-roots),不要改回 native-tls、也不要只留單一 rustls feature(會 UnknownIssuer)。
  • 不引入需要 CMake 的依賴(aws-lc-rs 系禁止);能用現有依賴/stdlib 就不加新套件——輕量是產品定位。

驗證流程(= CI 同款,宣告完成前必跑)

  1. cargo fmt --all -- --check
  2. cargo clippy --all-targets -- -D warnings
  3. cargo test(integration / session / eval / schema_freeze / benchmark 全綠)
  4. 動過 fetch/render/MCP surface:用 release binary 對真實網站煙測一次,貼輸出片段當證據。

詳細步驟編碼於 .claude/skills/verify-rb/SKILL.md

安全紅線(優先不要做)

  • 不做 pixel-level click;不做完整 JS browser;不讓 LLM 未確認執行任意 POST;不把 RB 做成 Chrome clone。
  • 公開 surface 受 semver 凍結(docs/API.md + tests/schema_freeze.rs):additive 可以,breaking = major。

慣例

  • Commit 中文描述 <type>: <描述>;feature branch → PR → merge(repo 既有模式)。
  • RB 抓取問題記錄進 RB_FETCH_ISSUES.md;修好後在該 issue 下補記結案。
  • gh 偶發 401:$env:GH_TOKEN = (gh auth token) 後重試;merge 走 REST(gh api -X PUT .../pulls/N/merge)較穩。
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 First seen · 44 lines · 852 tokens per session scan A 69d13cda6b5d

Subscribe to this mod's changes

RustBrowser CLAUDE.md is an instructions file published in the GitHub repository JoshuaWangTW/RustBrowser (10 stars, last pushed 15d ago), licensed MIT. It adds 852 tokens to every session, about $0.0043 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

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

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,182 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