scrape-le AGENTS.md

scrape-le AGENTS.md is an instructions file for Codex, OpenCode from nolindnaidoo/scrape-le. It costs 5,501 tokens per session, scanned A, a copy of regex-le AGENTS.md, MIT.

Repository instructions for coding agents working on Scrape-LE, a VS Code extension and Rust command-line tool that inspect whether a website can be scraped.

In plain words
What is it for?
Use them when modifying URL checks, anti-bot detection, robots.txt handling, authentication checks, screenshots, shared signatures, or the Rust CLI.
Why use it?
They explain the project’s structure, rules, shared test data, and network limits so changes do not make the two products disagree or access unrelated sites.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; 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/nolindnaidoo/scrape-le/agents-md
Clone the repo
git clone --depth 1 https://github.com/nolindnaidoo/scrape-le

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 scrape-le AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nolindnaidoo/scrape-le/agents-md.svg)](https://agentmods.dev/instructions/nolindnaidoo/scrape-le/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/nolindnaidoo/scrape-le/agents-md"><img src="https://agentmods.dev/badge/instructions/nolindnaidoo/scrape-le/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,501 This file is loaded in full into every session.
When invoked 5,501 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 83% 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.05501 $0.05501
Opus 5 $0.02750 $0.02750
Sonnet 5 $0.01100 $0.01100
Haiku 4.5 $0.00550 $0.00550

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

Security

Grade A, and why

scrape-le 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 5d 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

83% identical to regex-le AGENTS.md — 97 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.

AGENTS.md · 342 lines

How it starts

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

AGENTS.md — Scrape-LE

Technical source of truth for this repo. README.md is the user-facing doc; this file is for anyone (human or agent) changing the code.

This repo hosts two products: the extension at the root (this document's scope) and the Rust CLI in crate/ (its own AGENTS.md + SPEC.md). The shared detection corpus lives at signatures/ and fixtures/; scripts/check-signature-parity.ts fails CI when this extension drifts from it.

What this is

A VS Code extension that loads a URL in headless Chromium (playwright-core) and reports what would block a scraper: HTTP status/title/load time, console errors, a full-page screenshot, anti-bot vendor detection, rate-limit headers, robots.txt evaluation, and authentication walls. Network access is scoped to the URL under check plus that origin's /robots.txt — nothing else, ever.

Architecture

extension.ts             activate(): createNotifier() + createStatusBar() -> registerCommands()
commands/                one file per command; deps injected as a frozen bag
  check.ts               checkUrl prompt + executeCheck orchestration (progress, status bar, output)
  checkSelection.ts      extracts a URL from the selection, reuses executeCheck
  setup.ts               browser install/verify quick pick
  help.ts                opens the help markdown document
scraper/
  browser.ts             chromium.launch wrapper (headless, hardened args)
  checker.ts             page load ('load' + best-effort 5s networkidle), console capture,
                         screenshot (format/quality), runs detections
  install.ts             async browser install via bundled playwright-core CLI in a child
                         Node process (ELECTRON_RUN_AS_NODE); manual command pinned to the
                         shipped playwright-core version
detectors/
  heuristics.ts          THE vendor signature table + single-evaluate page probe
  antibot.ts             header pass + one page.evaluate for all vendors
  ratelimit.ts           X-RateLimit / RateLimit / Retry-After headers + HTTP 429
  robotstxt.ts           RFC 9309 groups, Allow/Disallow longest-match, * and $ patterns
  authentication.ts      401/403, login forms, keywords, path-segment URL check
  index.ts               runDetections: enabled detectors in parallel, failures isolated
ui/                      notifier (notificationsLevel re-read per call: all -> everything,
                         important -> warn+error, silent -> error only), statusBar (owns
                         visibility, follows statusBar.enabled live), output channel
config/config.ts         getConfiguration() snapshot; DEFAULT_CONFIG table
utils/                   url (validate/normalize/extract/filename), errorHandling
                         (sanitizeErrorMessage wired into user-facing errors)
types.ts                 shared types only — no logic

Read the full file on GitHub · 342 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. 5d ago First seen · 342 lines · 5,501 tokens per session scan A 3a951f0a4cb3

Subscribe to this mod's changes

scrape-le AGENTS.md is an instructions file published in the GitHub repository nolindnaidoo/scrape-le (1 stars, last pushed 4d ago), licensed MIT. It adds 5,501 tokens to every session, about $0.0275 per session on Opus 5. A static security scan graded it A with 0 findings. It is 83% identical to regex-le AGENTS.md, differing in 97 lines, and is treated as a copy.