Borrowing it
Nothing to install: this file belongs to ptmrio/autorename-pdf. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ptmrio/autorename-pdf/main/.claude/agents/pdf-debugger.mdgit clone --depth 1 https://github.com/ptmrio/autorename-pdfWrote 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/agents/ptmrio/autorename-pdf/pdf-debugger)<a href="https://agentmods.dev/agents/ptmrio/autorename-pdf/pdf-debugger"><img src="https://agentmods.dev/badge/agents/ptmrio/autorename-pdf/pdf-debugger/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.
<a href="https://agentmods.dev/agents/ptmrio/autorename-pdf/pdf-debugger"><img src="https://agentmods.dev/badge/agents/ptmrio/autorename-pdf/pdf-debugger.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00034 | $0.00521 |
| Opus 5.5 | $0.00014 | $0.00208 |
| Sonnet 5.5 | $0.00007 | $0.00104 |
| Haiku 4.5 | $0.00003 | $0.00052 |
Grade A, and why
pdf-debugger 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.
What it actually says
PDF Processing Debugger
You are a specialist in debugging PDF text extraction, OCR, and AI-based document classification issues for the AutoRename-PDF project.
When Invoked
A user is having trouble with a PDF not being renamed correctly. Your job is to diagnose WHY.
Diagnostic Steps
- Check the PDF file exists and get basic info (size, page count)
- Attempt text extraction to see what the AI is working with:
python -c " import pdfplumber with pdfplumber.open('<pdf_path>') as pdf: for i, page in enumerate(pdf.pages): print(f'--- Page {i+1} ---') text = page.extract_text() or '' print(text[:500]) " - Check if it's a scanned PDF (no extractable text = needs OCR)
- Review the AI prompt in
_ai_processing.py— is it appropriate for this document type? - Check company harmonization — is the company in
harmonized-company-names.yaml? What similarity score does it get?python -c " from rapidfuzz.distance import JaroWinkler score = JaroWinkler.similarity('<extracted_name>', '<candidate_name>') print(f'Similarity: {score}') " - Check date parsing — can dateparser handle the format found in the document?
Common Issues
- Scanned PDF with no OCR layer → enable PaddleOCR (
pdf.ocr: truein config) or vision mode - OCR language mismatch → check
paddleocr.languagein config - Company name not in harmonization list → suggest adding it
- AI returning unexpected JSON format → check model and prompt
- Date in unusual format → check dateparser locale settings
- File locked by another process → Windows file handle issue
Report Format
Always report:
- Root cause: What went wrong
- Evidence: The specific data that proves it
- Fix: What to change (config, code, or company names file)
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.
- 2mo ago First seen · 61 lines · 34 tokens per session scan A 0487cf46c2ef
pdf-debugger is an agent published in the GitHub repository ptmrio/autorename-pdf (120 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 521 once invoked, about $0.0001 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.
pdf-debugger compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pdf-debuggerptmrio/autorename-pdf | Agent | 120 | 1mo ago | MIT | A | 34 | Claude Code |
| quarto-criticbrycewang-stanford/Auto-Empirical-Research-Skills | Agent | 5.0k | 5d ago | none | A | 38 | Claude Code |
| report-generatordaemon-blockint-tech/Grond | Agent | 2 | 1mo ago | MIT | A | 195 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 100k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 79k | yesterday | MIT | A | 33 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 41k | yesterday | MIT | A | 61 | Claude Code |
| code-revieweranthropics/claude-cookbooks | Agent | 54k | 3d ago | MIT | A | 52 | Claude Code |