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.
npx agentmods add instructions/imoonkey/openweb/claude-mdgit clone --depth 1 https://github.com/imoonkey/openwebWhat 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 | $0.00975 | $0.00975 |
| Opus 5 | $0.00487 | $0.00487 |
| Sonnet 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 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.
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.
- 2d 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 (58 stars, last pushed 2mo ago), licensed MIT. It adds 975 tokens to every session, about $0.0049 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-30.
Other instructions, from other repositories
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.
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.
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).
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.
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).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.