Borrowing it
Nothing to install: this file belongs to imoonkey/openweb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/imoonkey/openweb/main/CLAUDE.mdgit clone --depth 1 https://github.com/imoonkey/openwebWrote 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.
[](https://agentmods.dev/instructions/imoonkey/openweb/claude-md)<a href="https://agentmods.dev/instructions/imoonkey/openweb/claude-md"><img src="https://agentmods.dev/badge/instructions/imoonkey/openweb/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.
<a href="https://agentmods.dev/instructions/imoonkey/openweb/claude-md"><img src="https://agentmods.dev/badge/instructions/imoonkey/openweb/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00975 | $0.00975 |
| Opus 5.5 | $0.00390 | $0.00390 |
| Sonnet 5.5 | $0.00195 | $0.00195 |
| Haiku 4.5 | $0.00097 | $0.00097 |
Grade A, and why
openweb 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenWeb
Agent-native way to access any website. Bridging agent CLI and human GUI through API.
Quick Start
pnpm install && pnpm build
pnpm test # run all tests
pnpm lint # biome lint
pnpm dev sites # list available sites
pnpm dev <site> <op> '{...}' # execute an operation
Documentation
- Shipped skill:
skills/openweb/(SKILL.md router, references, knowledge) - Architecture & system docs:
doc/main/README.md - Dev workflow & guides:
doc/dev/development.md - Progress history:
doc/PROGRESS.md - Project docs:
projects/active/(active work) andprojects/archive/(historical docs), symlinked from the sibling openweb-projects repo, commit separately
Documentation Sync
When running /update-doc, also check and sync skills/openweb/ — this repo ships skill docs as a deliverable alongside code. See doc/main/README.md § Skill Documentation for the governing principles and structure. Priority areas: files that reference runtime behavior, CLI flags, x-openweb fields, or transport/auth semantics.
Project Structure
src/
compiler/
types.ts # Core types (RecordedRequestSample, SampleResponse)
types-v2.ts # Pipeline v2 contracts (5-phase type definitions)
recorder.ts # HAR parsing + scripted recording
analyzer/ # Phase 2: label → normalize → cluster → schema → auth
analyze.ts # Orchestrator: analyzeCapture() → AnalysisReport
labeler.ts # Sample categorization (api/static/tracking/off_domain)
path-normalize.ts # Path template normalization
graphql-cluster.ts # GraphQL sub-clustering
auth-candidates.ts # Ranked auth bundling with evidence + CSRF options
constant-headers.ts # Detect constant headers across cluster samples
schema-v2.ts # Schema inference with enum/format controls
example-select.ts # Tiered example value selection with PII scrub
classify.ts # Extraction signals (ssr_next_data, script_json, page_global)
differentiate.ts # Query vs path param differentiation
auth-detect.ts, csrf-detect.ts, signing-detect.ts # Primitive detection
curation/ # Phase 3: apply-curation.ts, scrub.ts (PII)
generator/ # Phase 4: generate-v2.ts (OpenAPI + AsyncAPI emission)
ws-analyzer/ # WS capture → classify → cluster → schema
runtime/
executor.ts # Main dispatch (HTTP + WS)
http-executor.ts, browser-fetch-executor.ts, node-ssr-executor.ts
browser-lifecycle.ts # Auto browser management (ensureBrowser, auth cascade, watchdog)
warm-session.ts # Anti-bot sensor warm-up (Akamai, DataDome cookie wait)
response-unwrap.ts # Generic response unwrap (x-openweb.unwrap dot-path extraction)
session-executor.ts, adapter-executor.ts, extraction-executor.ts
ws-executor.ts, ws-connection.ts, ws-router.ts, ws-runtime.ts
cache-manager.ts, token-cache.ts
navigator.ts # CLI navigation helper (render site/operation info)
page-polyfill.ts, page-candidates.ts # Browser page utilities
primitives/ # Auth/CSRF/signing resolvers
lifecycle/ # Verify, registry, shape-diff (site drift detection)
capture/ # CDP browser recording (body-size-gate, no content filtering)
commands/ # CLI command handlers
types/ # Meta-spec type system
sites/ # Site packages (openapi.yaml, DOC.md, adapters/)
lib/
site-resolver.ts, spec-loader.ts, site-package.ts
param-validator.ts, permissions.ts, permission-derive.ts
logger.ts, config.ts, cookies.ts, adapter-params.ts
errors.ts, ssrf.ts, openapi.ts, asyncapi.ts
adapter-helpers.ts # pageFetch, graphqlFetch — injected into adapters via runtime
manifest.ts, url-builder.ts, response-parser.ts, csrf-scope.ts
config/ # Config files: blocked-domains, blocked-paths, tracking-cookies, static-extensions
skills/openweb/ # The shipped skill (references, knowledge)
install-skill.sh # Skill installer for Claude Code, Codex, OpenCode, OpenClaw
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.
- 2mo ago First seen · 78 lines · 975 tokens per session scan A 2f316474c4ba
openweb CLAUDE.md is an instructions file published in the GitHub repository imoonkey/openweb (74 stars, last pushed 4mo ago), licensed MIT. It adds 975 tokens to every session, about $0.0039 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-08-30.
openweb CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| openweb CLAUDE.mdimoonkey/openweb | Instructions file | 74 | 4mo ago | MIT | A | 975 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |