reader: Instructions file for Claude Code

CLAUDE.md

reader CLAUDE.md is an instructions file for Claude Code from jina-ai/reader. It costs 2,542 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Claude Code, an AI coding assistant, when working on the Jina AI Reader codebase. They describe the repository, its related documentation, and common build, run, and test commands.

In plain words
What is it for?
Explaining the codebase structure, running its build and development commands, and following its testing and contribution workflow.
Why use it?
They give the assistant the project context and the exact commands and rules needed to work safely in the repository.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

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

About the project

Jina Reader is an open-source service that turns web pages and submitted documents into text formatted for large language models, and provides a separate endpoint for web search. It is used in AI agents and retrieval-augmented generation systems that need information from the web. The catalogue instruction helps agents use Reader as an input source.

jina-ai/reader · 12,238 stars · on GitHub · jina.ai

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jina-ai/reader/claude-md"><img src="https://agentmods.dev/badge/instructions/jina-ai/reader/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,542 This file is loaded in full into every session.
When invoked 2,542 The same file — it is already loaded in full.
Security scan A 1 finding. 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.02542 $0.02542
Opus 5.5 $0.01017 $0.01017
Sonnet 5.5 $0.00508 $0.00508
Haiku 4.5 $0.00254 $0.00254

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

Security

Grade A, and why

reader CLAUDE.md scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Engines (URL→HTML): `puppeteer.ts` (browser), `curl.ts` (curl-impersonate), `cf-browser-rendering.ts`. `auto` is the default and is implemented in `crawler.ts`.
CLAUDE.md · 127 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Repository identity

This is the oss branch of reader-saas, the codebase behind https://r.jina.ai (URL → markdown) and https://s.jina.ai (search → markdown). It is published to https://github.com/jina-ai/reader. The MongoDB-backed SaaS storage layer is not in this branch — only the stateless and bucket-cached storage modes ship here.

Companion docs in this repo:

  • architecture.md — engines, formatting profiles, abuse mitigation, deployment topology.
  • CONTRIBUTING.md — full env var table, dev workflow, test policy.
  • cookbooks.md — header recipes for common downstream pipelines (RAG, embedding, deep research, uploads, etc.).

Common commands

Build / run:

  • npm run build — runs integrity-check.cjs (requires licensed/GeoLite2-City.mmdb to exist) then tsc -p .. The integrity check is not optional — bare tsc will skip it.
  • npm run build:watch — incremental build for the F5 debug flow.
  • npm start — runs the compiled crawler entrypoint (build/stand-alone/crawl.js).
  • npm run dry-run — NODE_ENV=dry-run boots search.js, resolves the DI graph, then exits via finalizer.terminate(). Used in the Dockerfile to warm NODE_COMPILE_CACHE.

Local services (docker compose up -d):

  • minio on :9000 (API) / :9001 (console) — also aliased as minio.dev.jina.ai. Only needed when running with BucketStorageLayer.

VSCode F5 launches Debug Stand Alone Crawl (or Search / SERP), which runs Backend:prepare (docker compose + tsc watch) first. --env-file=.secret.local is loaded by Node directly — that file is gitignored and must be created locally.

Three independent stand-alone servers:

  • build/stand-alone/crawl.js — mounts CrawlerHost (the r.jina.ai surface).
  • build/stand-alone/search.js — mounts SearcherHost. At startup it deletes any registry entries tagged 'crawl', so search and crawl are mutually exclusive on a single process.
  • build/stand-alone/serp.js — SERP-only.

Read the full file on GitHub · 127 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. 2mo ago First seen · 127 lines · 2,542 tokens per session scan A fac7f3591702

Subscribe to this mod's changes

reader CLAUDE.md is an instructions file published in the GitHub repository jina-ai/reader (12,238 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 2,542 tokens to every session, about $0.0102 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

reader CLAUDE.md compared with instructions from other repositories

reader CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reader CLAUDE.mdjina-ai/readerInstructions file12k5mo agoApache-2.0A2,542Claude Code
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