unbrowse: Instructions file for Claude Code

CLAUDE.md

unbrowse CLAUDE.md is an instructions file for Claude Code from unbrowse-ai/unbrowse. It costs 9,095 tokens per session, scanned A, a copy of unbrowse AGENTS.md, Apache-2.0.

A repository instruction file for Claude Code working on the Unbrowse client. It describes the project structure, required commands, and rules for adding API routes and CLI commands.

In plain words
What is it for?
Use it when Claude Code is changing the Unbrowse SDK, CLI, plugins, or related documentation. It is also a reference for the project's development checks.
Why use it?
It provides local project rules that a general coding agent would not know. This helps prevent inconsistent changes and missed tests.

Instructions file for Claude Code

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

This is unbrowse-ai/unbrowse's own configuration. It tells Claude Code how to work on unbrowse 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 unbrowse configures →

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/unbrowse-ai/unbrowse/claude-md"><img src="https://agentmods.dev/badge/instructions/unbrowse-ai/unbrowse/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,095 This file is loaded in full into every session.
When invoked 9,095 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 100% copy Near-identical to another mod 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.09095 $0.09095
Opus 5.5 $0.03638 $0.03638
Sonnet 5.5 $0.01819 $0.01819
Haiku 4.5 $0.00910 $0.00910

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

Security

Grade A, and why

unbrowse 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 2d 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.

Origin

This is a copy

100% identical to unbrowse AGENTS.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 496 lines

How it starts

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

unbrowse-core — the strategy and the pattern

How this project turns a site someone browses into calls an agent can make without a browser. Written for agents working in this repository.

Root CLAUDE.md and AGENTS.md are one file, byte for byte, so every agent reads the same rules: edit CLAUDE.md, copy it over AGENTS.md, and cmp CLAUDE.md AGENTS.md (CI runs it, and .github/scripts/test/test_agent_guide.py).

Design source of truth: unbrowse-ai/unbrowse-graph (private, ~/work/unbrowse-graph). Read its INDEX.md before changing the contracts, the node or the money docs. Code comments, PRs and docs cite node ids (pledge.release, stake.on-route). A behaviour with no node is added there first, or deleted. Where this repo and the graph disagree, the graph wins.

The shape of the thing

One engine, three consumers:

agent-browser-core            the engine, as a library
├── cdp/                      transport, Chrome launch, discovery, protocol types
├── capture                   the passive JSON-lines log of a walk
├── session                   MintedSession and mint(): the walk as one call
├── connection, paths, CA     timeouts, browser cache, TLS roots

cli/                          thin front end over the engine
unbrowse-learn/ (the node)    links the engine; routes, replay, solver

The node never drives a daemon over a socket. That boundary was the bug family: stale daemons, environment captured at launch, sessions that survive their own relaunch, frame targets that miss their setup. Linking the engine removes the class rather than patching instances.

The pipeline

mint   -> walk   -> trace   -> route        -> call
(browser          (requests   (the graph     (plain HTTP,
 once, in         + responses  rooted at      Chrome-shaped
 process)         + bodies)    the site)      transport)
  1. mint — agent_browser_core::session::mint() launches Chrome, attaches, navigates, settles, and returns a MintedSession (cookies plus widget tokens). One call, no CLI, no daemon. A persistent profile per site makes later mints cheaper.
  2. walk — the same call records every request and response (status, headers, body) into the capture log. Subscribing before navigation matters: the walk's first exchange is the page itself.
  3. trace — walk_har() pairs those lines into HAR 1.2; the node reads it as a Trace.
  4. route — build() keeps the site's own calls, dropping front-door probes and pages (their values classify as minted, supplied by the jar).
  5. call — RouteClient replays the route over a Chrome-shaped transport, drawing session values from the jar.

Read the full file on GitHub · 496 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. 2d ago Changed · -2 tokens per session ab3518c4ffe6
  2. 7d ago Changed · +434 lines · +8,196 tokens per session 62c323c673df
  3. 12d ago Changed · +31 lines · +350 tokens per session 01451684fa18
  4. 26d ago Changed · +3 lines · +113 tokens per session b5f55d0d6473
  5. 2mo ago First seen · 28 lines · 438 tokens per session scan A ebe0fcda6efe

Subscribe to this mod's changes

unbrowse CLAUDE.md is an instructions file published in the GitHub repository unbrowse-ai/unbrowse (951 stars, last pushed yesterday), licensed Apache-2.0. It adds 9,095 tokens to every session, about $0.0364 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to unbrowse AGENTS.md, differing in 0 lines, and is treated as a copy.

Related

unbrowse CLAUDE.md compared with instructions from other repositories

unbrowse CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unbrowse CLAUDE.mdunbrowse-ai/unbrowseInstructions file951yesterdayApache-2.0A9,095Claude Code
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