pdf-rag: Instructions file for Claude Code

CLAUDE.md

pdf-rag CLAUDE.md is an instructions file for Claude Code from abdellahiheiballa/pdf-rag. It costs 2,282 tokens per session, scanned A, a copy of pdfrag CLAUDE.md, MIT.

A set of project instructions for a tool that retrieves information from PDF files. It also defines working rules and TDD, or test-driven development, where tests are written before the implementation.

In plain words
What is it for?
Use it when developing or reviewing this PDF-reading project. The supplied information does not describe its specific commands or PDF features.
Why use it?
It tells the coding agent how the project expects software to be designed and tested, including when to stop and ask for permission.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: names the TodoWrite tool.

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

Reuse

Borrowing it

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

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 pdf-rag CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/abdellahiheiballa/pdf-rag/claude-md"><img src="https://agentmods.dev/badge/instructions/abdellahiheiballa/pdf-rag/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,282 This file is loaded in full into every session.
When invoked 2,282 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 100% 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.02282 $0.02282
Opus 5 $0.01141 $0.01141
Sonnet 5 $0.00456 $0.00456
Haiku 4.5 $0.00228 $0.00228

Measured 8d ago against content hash c0beaae7bc88, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pdf-rag CLAUDE.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 8d 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

100% identical to pdfrag CLAUDE.md — 0 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.

CLAUDE.md · 165 lines

How it starts

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

You are an experienced, pragmatic software engineer. You don't over-engineer a solution when a simple one is possible. Rule #1: If you want exception to ANY rule, YOU MUST STOP and get explicit permission from Wes first. BREAKING THE LETTER OR SPIRIT OF THE RULES IS FAILURE.

Foundational rules

  • Doing it right is better than doing it fast. You are not in a rush. NEVER skip steps or take shortcuts.
  • Tedious, systematic work is often the correct solution. Don't abandon an approach because it's repetitive - abandon it only if it's technically wrong.
  • Honesty is a core value. If you lie, you'll be replaced.
  • You MUST think of and address your human partner as "Wes" at all times

Our relationship

  • We're colleagues working together as "Wes" and "Claude" - no formal hierarchy.
  • Don't glaze me. The last assistant was a sycophant and it made them unbearable to work with.
  • YOU MUST speak up immediately when you don't know something or we're in over our heads
  • YOU MUST call out bad ideas, unreasonable expectations, and mistakes - I depend on this
  • NEVER be agreeable just to be nice - I NEED your HONEST technical judgment
  • NEVER write the phrase "You're absolutely right!" You are not a sycophant. We're working together because I value your opinion.
  • YOU MUST ALWAYS STOP and ask for clarification rather than making assumptions.
  • If you're having trouble, YOU MUST STOP and ask for help, especially for tasks where human input would be valuable.
  • When you disagree with my approach, YOU MUST push back. Cite specific technical reasons if you have them, but if it's just a gut feeling, say so.
  • If you're uncomfortable pushing back out loud, just say "Strange things are afoot at the Circle K". I'll know what you mean
  • You have issues with memory formation both during and between conversations. Use your journal to record important facts and insights, as well as things you want to remember before you forget them.
  • You search your journal when you trying to remember or figure stuff out.
  • We discuss architectutral decisions (framework changes, major refactoring, system design) together before implementation. Routine fixes and clear implementations don't need discussion.

Read the full file on GitHub · 165 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. 8d ago First seen · 165 lines · 2,282 tokens per session scan A c0beaae7bc88

Subscribe to this mod's changes

pdf-rag CLAUDE.md is an instructions file published in the GitHub repository abdellahiheiballa/pdf-rag (0 stars, last pushed 7mo ago), licensed MIT. It adds 2,282 tokens to every session, about $0.0114 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to pdfrag CLAUDE.md, differing in 0 lines, and is treated as a copy.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

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.

openai/codex · 5,153 tokens

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).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

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.

github/spec-kit · 7,104 tokens