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/drpwchen/paper-fetch/agents-mdgit clone --depth 1 https://github.com/drpwchen/paper-fetchWrote 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/drpwchen/paper-fetch/agents-md)<a href="https://agentmods.dev/instructions/drpwchen/paper-fetch/agents-md"><img src="https://agentmods.dev/badge/instructions/drpwchen/paper-fetch/agents-md.svg" alt="Measured on agentmods" 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 | $0.02271 | $0.02271 |
| Opus 5 | $0.01136 | $0.01136 |
| Sonnet 5 | $0.00454 | $0.00454 |
| Haiku 4.5 | $0.00227 | $0.00227 |
Grade A, and why
paper-fetch 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 today.
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 — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — for AI agents deploying, adapting, or calling paper-fetch
Most people will point you (an AI coding agent) at this repo and say "set this up for my library" or "explain how this works." This file tells you how to do that correctly, how to know it worked, and where the hard lines are.
What this tool is
A publisher-aware full-text PDF fetcher built as a route ladder: open access (Unpaywall +
Semantic Scholar + PMC) → official publisher TDM APIs → the user's own institutional library
proxy → a printed resolver link for a manual finish. It is the download end of a pipeline; the
reading end is claude-paper-tools, the discovery end is paper-radar.
Deploying it for a user (the happy path)
pip install -r requirements.txt. For the proxy layer alsopython -m patchright install chromium.cp config.example.yaml config.yaml. Fill in:unpaywall_email,rate.contact— the user's email.institution.sfx_base / remote_auth_base / proxy_suffix— the user's library's own endpoints. Ask the user for these, or help them find them — the four off-campus families and where each value hides are in docs/library-setup.md. Do NOT reuse endpoints from anywhere else.
- Help the user store their own credentials in the local secret store (see README). Never put
credential values in
config.yamlor anywhere in the repo. - Verify layer 1 before touching anything else — this is your smoke test:
If that fails, the problem is config or network, not the library. Fix it here, not later.python paper_fetch.py 10.1186/s12984-023-01168-x out.pdf # a real OA article; must yield a PDF - Only then the proxy layer. As of v1.0 all route code (including the full LWW/Ovid flow)
ships working — what remains is authentication config: set
auth.family: formand point the selectors inconfig.yamlat the gate's login form (inspect it in devtools; EZproxy preset in docs/library-setup.md), plusauth.persist_cookies. Only SSO gates (OpenAthens/Shibboleth) need a customlogin()implementation. Then:python library_session.py check # is the session alive? python library_session.py fetch <DOI> out.pdf # a DOI the library definitely holds - Build the holdings table if the user has a library (docs/holdings.md). It is what makes step 7 possible.
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.
- today Changed · +8 lines · +135 tokens per session 1c1a48456e1a
- 4d ago First seen · 133 lines · 2,136 tokens per session scan A b98fae513ba2
paper-fetch AGENTS.md is an instructions file published in the GitHub repository drpwchen/paper-fetch (58 stars, last pushed 2d ago), licensed MIT. It adds 2,271 tokens to every session, about $0.0114 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
de-anthropocentric-research-engine AGENTS.md
AGENTS.md instructions for yogsoth-ai/de-anthropocentric-research-engine: Use DARE for AI Research tasks and whenever the user explicitly asks for DARE.
AI-Powered-Literature-Review-Skills AGENTS.md
Instructions for stephenlzc/AI-Powered-Literature-Review-Skills, covering agents.md - literature reviewer skill, 项目概述, 核心特性, 技术栈 and 项目结构.
academic-research-skills-codex copilot-instructions.md
AI-augmented academic research pipeline with integrity verification.
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).
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.