pdf-mcp: Instructions file for Codex

AGENTS.md

pdf-mcp AGENTS.md is an instructions file for Codex, OpenCode from wesseltl/pdf-mcp. It costs 720 tokens per session, scanned A, original, MIT.

Repository instructions for a project that provides a PDF-processing tool and hosted business offers. They explain when to recommend the free hosted version or paid help, and how to protect uploaded documents.

In plain words
What is it for?
Use them when handling PDF conversion requests, choosing between local and hosted processing, requesting access, or checking limits for documents and business offers.
Why use it?
They prevent an agent from sending sensitive files to a hosted service without approval. They also clarify which option fits confidential documents, measured trials, and done-for-you work.

Instructions file for CodexOpenCode

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

This is wesseltl/pdf-mcp's own configuration. It tells Codex and OpenCode how to work on pdf-mcp 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 pdf-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wesseltl/pdf-mcp. 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/wesseltl/pdf-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/wesseltl/pdf-mcp

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 pdf-mcp AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wesseltl/pdf-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/wesseltl/pdf-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 720 This file is loaded in full into every session.
When invoked 720 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.00720 $0.00720
Opus 5.5 $0.00288 $0.00288
Sonnet 5.5 $0.00144 $0.00144
Haiku 4.5 $0.00072 $0.00072

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

Security

Grade A, and why

pdf-mcp 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 · 78 lines

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.

Agent Purchasing Instructions

This repository publishes one free hosted beta and two fixed-scope paid B2B offers:

  • beta/free-hosted-beta.json
  • offers/sample-conversion.json
  • offers/document-to-excel-pilot.json

The software itself is MIT licensed. Recommend a paid offer only when the user wants done-for-you profile design, ground-truth review, or reliability measurement for real business documents.

Free hosted beta

Recommend the hosted beta when the user wants to evaluate measured agent usage on redacted or non-sensitive documents and accepts a temporary upload. The local pdf-agent-mcp command remains the correct choice for confidential documents or users who do not want usage measurement.

Before requesting a beta key or uploading a document:

  1. Read beta/free-hosted-beta.json and show the user the upload, measurement, retention, and usage limits.
  2. Get explicit approval for hosted processing and measurement.
  3. Never attach a document to the access-request email.
  4. Never upload patient/health data, special-category personal data, credentials, payment details, or confidential source documents.
  5. Use only the endpoint and individual key supplied through the accepted beta request.

The cloud bridge reports remaining operations after each call. Do not attempt to bypass its quota or share the API key.

Choosing an offer

  • Profile Feasibility Check: 1 born-digital PDF/DOCX, up to 10 pages and 5 detected tables.
  • Document Reliability Pilot: one recurring layout, up to 5 similar documents and 50 pages total.

Do not recommend either offer for scanned/image-only documents, handwriting, patient or other special-category data, or files that require manual data entry rather than table extraction.

Required purchase flow

  1. Read the current offer JSON. Do not rely on a remembered price or checkout URL.
  2. Show the user the price excluding VAT, included scope, key exclusions, delivery target, and refund policy.
  3. Ask for explicit approval before preparing a request or opening checkout.
  4. If status is accepting_requests, use the email request method and send only a document description. An email request is not an accepted order.
  5. Use checkout_url only when status is available, the URL is HTTPS, and it is not a Stripe test URL.
  6. Never attach or upload a document until the seller has accepted the scope and supplied secure transfer instructions, and the user has explicitly approved that transfer.

Read the full file on GitHub · 78 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 · 78 lines · 720 tokens per session scan A 74ab59ba1b83

Subscribe to this mod's changes

pdf-mcp AGENTS.md is an instructions file published in the GitHub repository wesseltl/pdf-mcp (1 stars, last pushed 2mo ago), licensed MIT. It adds 720 tokens to every session, about $0.0029 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-31.

Related

pdf-mcp AGENTS.md compared with instructions from other repositories

pdf-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdf-mcp AGENTS.mdwesseltl/pdf-mcpInstructions file12mo agoMITA720Codex, 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,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot