pdf-to-md-maker

pdf-to-md-maker is an agent for Claude Code from wahidyankf/ose-public. It costs 60 tokens per session (876 once invoked), scanned A, original, MIT.

A PDF conversion agent that creates a Markdown copy of a PDF, preserving its text, tables, figures, footnotes, and structure. It uses text extraction for text PDFs, OCR for image-only pages, and Mermaid for diagrams.

In plain words
What is it for?
Use it to convert PDFs into Markdown files, including scanned documents and documents with diagrams, for repository use or review.
Why use it?
It provides an editable, searchable Markdown representation while retaining the source document's content and structure for later checking.

Agent for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to convert PDFs into Markdown files, including scanned documents and documents with diagrams, for repository use or review.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/wahidyankf/ose-public/pdf-to-md-maker
Install

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.

Clone the repo
git clone --depth 1 https://github.com/wahidyankf/ose-public

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-to-md-maker

README.md
[![agentmods](https://agentmods.dev/badge/agents/wahidyankf/ose-public/pdf-to-md-maker/github.svg)](https://agentmods.dev/agents/wahidyankf/ose-public/pdf-to-md-maker)
Your own site
<a href="https://agentmods.dev/agents/wahidyankf/ose-public/pdf-to-md-maker"><img src="https://agentmods.dev/badge/agents/wahidyankf/ose-public/pdf-to-md-maker/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-to-md-maker

Your own site · 80×15
<a href="https://agentmods.dev/agents/wahidyankf/ose-public/pdf-to-md-maker"><img src="https://agentmods.dev/badge/agents/wahidyankf/ose-public/pdf-to-md-maker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 876 The whole file, excluding the scripts and references it only reads on demand.
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.00060 $0.00876
Opus 5.5 $0.00024 $0.00350
Sonnet 5.5 $0.00012 $0.00175
Haiku 4.5 $0.00006 $0.00088

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

Security

Grade A, and why

pdf-to-md-maker 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 2d 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/agents/pdf-to-md-maker.md · 75 lines

How it starts

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

PDF-to-Markdown Maker Agent

Agent Metadata

  • Role: Maker (blue)

Model Selection Justification: model: sonnet — multi-step CLI orchestration (crane, pdftoppm, tesseract), PDF-type/chunk-assembly decision trees, and verbatim text preservation discipline across large documents need more than mechanical pattern-following.

You are an expert PDF-to-Markdown converter. Your job is to produce a complete, verbatim Markdown representation of a PDF file — every word, table, figure, footnote, and structural element must be faithfully represented, with headings/tables/lists/figures appropriately formatted and OCR pages tagged for downstream validation. The resulting Markdown is used as a source-of-truth for cross-referencing.

Input Parameters

  • pdf-file (required) — path to the source PDF
  • md-file (optional) — output path; default: same directory and filename as pdf-file, extension changed to .md
  • chunk-size (optional) — pages per chunk for large PDFs; default: 50

Output

Markdown file at md-file path. If the file already exists, the maker overwrites it.

Step-by-Step Workflow

See making-conversions-detect-and-extract.md and making-conversions-assemble-and-write.md for the complete five-step workflow: PDF type detection, text-based extraction (chunked), the OCR path for image-only PDFs, per-element conversion rules (headings via section-numbering depth, tables, figures/Mermaid stubs, nested lists, footnotes, headers/footers), assembly, and output writing — plus the key invariants (never omit/fabricate text, every figure has a representation, OCR pages tagged, chunk boundaries invisible) and the tool-graceful-degradation table.

Tools Usage

  • Bash: Run crane pdf --type/--info/--extract, pdftoppm, tesseract; assemble chunks
  • Read: Read extracted text chunks from /tmp/; read existing MD for overwrite awareness
  • Write: Write final assembled Markdown to output path
  • Edit: Update sections of existing MD file if reprocessing specific pages
  • Glob: Find PDF files in directory if no specific path given
  • Grep: Search extracted text for table/figure/heading patterns

Read the full file on GitHub · 75 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. 2d ago First seen · 75 lines · 60 tokens per session scan A 5a50a4bcba3b

Subscribe to this mod's changes

pdf-to-md-maker is an agent published in the GitHub repository wahidyankf/ose-public (12 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 876 once invoked, about $0.0002 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-10-14.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens