node-crawler: Instructions file for Codex

AGENTS.md

node-crawler AGENTS.md is an instructions file for Codex, OpenCode from bda-research/node-crawler. It costs 408 tokens per session, scanned A, original, MIT.

Repository instructions for bda-research/node-crawler, covering how to build, test, format, and structure the code. They explain that tests run against compiled output rather than the original TypeScript files.

In plain words
What is it for?
They guide builds, tests with Ava and mocked HTTP requests, TypeScript and ESLint style, module settings, and parts of the crawler architecture.
Why use it?
They prevent common project mistakes, such as testing stale files, using the wrong test filename, or running commands in the wrong order.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is bda-research/node-crawler's own configuration. It tells Codex and OpenCode how to work on node-crawler 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 node-crawler configures →

About the project

bda-research/node-crawler is a Node.js web crawler that fetches pages and exposes their contents through a server-side jQuery-like interface using Cheerio. It is used to collect and extract data from websites while managing request pools, retries, rate limits, priorities, character encodings, and proxies. Its catalogue skill teaches coding agents how to operate the crawler and avoid common usage mistakes.

bda-research/node-crawler · 6,795 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to bda-research/node-crawler. 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/bda-research/node-crawler/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/bda-research/node-crawler

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 node-crawler AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/bda-research/node-crawler/agents-md/github.svg)](https://agentmods.dev/instructions/bda-research/node-crawler/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/bda-research/node-crawler/agents-md"><img src="https://agentmods.dev/badge/instructions/bda-research/node-crawler/agents-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 node-crawler AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bda-research/node-crawler/agents-md"><img src="https://agentmods.dev/badge/instructions/bda-research/node-crawler/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 408 This file is loaded in full into every session.
When invoked 408 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 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.00408 $0.00408
Opus 5.5 $0.00163 $0.00163
Sonnet 5.5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

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

Security

Grade A, and why

node-crawler 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 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.

AGENTS.md · 36 lines

What it actually says

AGENTS.md

This file provides guidance to the AI agent when working with code in this repository.

Build & Test

Tests run against compiled output in dist/, not source. Always build before testing:

npm run build   # tsup → dist/index.js + dist/index.cjs
npm test        # NODE_ENV=test ava (runs test/*.js, excludes test/*test.js)

CI pipeline: npx eslint && npm run build && npm test

Testing

  • ava with nock for HTTP mocking. No real network calls.
  • Test files are plain .js (not .ts) and import from ../dist/index.js.
  • Ava config excludes test/*test.js — new test files should NOT use the .test.js suffix (e.g. callback.js, not callback.test.js).
  • Tests use a custom testCb wrapper from test/lib/avaTestCb.js for callback-based async. Call t.end() to signal completion.
  • Default test timeout is 20s.

Code Style

  • TypeScript strict mode, ESM throughout ("type": "module").
  • ESLint enforced on src/**/*.ts: double quotes, semicolons required, no-console is an error, unused vars prefixed with _ are allowed.
  • Target: ES2020. Module resolution: bundler.

Architecture Notes

  • got is lazy-loaded on first use via dynamic import("got") — do not add a top-level static import for it.
  • cheerio is the default HTML parser (exposed as res.$). jsdom is not supported.
  • Rate limiter uses a cluster of independent limiters. rateLimit is global-only — modify per-limiter via crawler.setLimiter(), not per-request options.
  • The callback pattern requires calling done() to signal task completion and release the slot.
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. 2mo ago First seen · 36 lines · 408 tokens per session scan A 99682743a495

Subscribe to this mod's changes

node-crawler AGENTS.md is an instructions file published in the GitHub repository bda-research/node-crawler (6,795 stars, last pushed 4mo ago), licensed MIT. It adds 408 tokens to every session, about $0.0016 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.

Related

node-crawler AGENTS.md compared with instructions from other repositories

node-crawler AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
node-crawler AGENTS.mdbda-research/node-crawlerInstructions file6.8k4mo agoMITA408Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode