A local tool that shrinks documents for AI agents

Docpipe

Stop paying full price every time your AI reads a document.

AI models bill by the token — roughly a word fragment — and they bill every single time they read a file. Docpipe runs on your machine and shrinks large PDFs, Markdown, and HTML into compact packages your agent works from instead. In our measured tests that cut 54–87% of the tokens, while numbers, IDs, dates, and quotes are kept word-for-word and the original stays one step away.

install Frugal docpipe skill install --all --json
-- fewer tokens across our local document test set
102,856 tokens saved on one real research PDF
-- exact facts preserved word-for-word
docpipe - one real run, one real PDF
$ docpipe convert ./2607.12056.pdf --profile markdown_canonical --json --out .docpipe-demo
reading: 189,855 tokens of source PDF
package: source-mapped Markdown, exact recovery handles
kept exact: 176 facts (numbers, IDs, quotes) word-for-word
recovery: every summary points back to the original text
result your agent reads the small package instead of the full PDF.

One real PDF, before and after

An 11-page research paper: 54.2% cheaper to read.

We ran a real research paper (2607.12056.pdf) through Docpipe. The agent gets a package that is roughly half the tokens of the raw PDF. The full original stays on disk for checking and recovery — it just never has to be loaded into the conversation again.

Raw PDF costs 189,855 tokens per read
Docpipe package costs 86,999 54.2% less, every read
Nothing important lost 176 facts kept word-for-word
Token economy chart comparing PDF source, prompt-light payload, dense PNG pages, and full archival package

102,856 tokens saved on every single read of this document.

5 / 11 pages were bulky enough to be carried as compact page images ("visual gist") instead of full text — a further 75.3% reduction for background context, never used for exact facts.

Every package gets a stable ID (pdf_ccd97b569aabb51f) so another agent — or you, next week — can pick it up without re-reading the source.

Estimate your own savings

Slide to your file size. See what Docpipe saves.

Drag the slider to a document size and pick the file type. The estimate uses the same measured rates as the charts above — including the honest answer that tiny files are cheaper to read raw.

321 KB
File type
10×

The research-paper anchor is the actual file measured in the PDF demo above. The novel and tax package are typical sizes for those document classes, not measurements.

Raw file --
Docpipe --
Tokens saved per read --
Reduction --
Saved across 10 reads --
-- saved across 10 reads Billed in USD at the selected model's standard input price.

Move the slider to see an estimate.

Estimates use the measured rates on this page: 84.1% for large text documents, 54.2% for PDFs, and the measured overhead on tiny files. One token ≈ 4 characters. Prices are dated standard-tier input list prices; caching, batches, discounts, and provider tokenizers can change the real bill.

How it works

Install once. Point it at a file. Read the small version.

Docpipe is a single program that runs on your computer. Your documents never leave your machine — there are no network calls in the conversion path.

  1. 01

    Install the binary and Frugal skill once

    Download Docpipe, then install the agent skill named frugal. The CLI stays docpipe; Frugal is the agent-facing instruction surface for Claude Code, Codex, and MCP.

  2. 02

    Docpipe splits the document into three channels

    Exact facts — numbers, IDs, dates, quotes — stay as text, word-for-word, always. Bulky background gets compressed hard. Everything keeps a handle pointing back to the original, so nothing is ever truly gone.

  3. 03

    Your agent reads the small package

    Every read of the package instead of the raw file is tokens — and money — saved. When another agent picks up the work, it receives the package ID, not a 190,000-token paste.

The safety rule behind everything

Exact facts never ride in images.

Kept sharp

IDs, amounts, quotes, clauses

Anything where a single wrong character matters stays as real text your agent can quote and compare safely. This rule is enforced in code, not policy.

Compressed hard

Bulky background context

Long descriptive passages become compact summaries or page images — good enough to understand the gist, cheap enough to carry everywhere.

Always recoverable

The original, one step away

Every compressed piece points back to the exact original text. If a task suddenly needs the fine print, the agent fetches just that piece — not the whole file.

Output formats

Pick an outcome, not a config file.

You ask for what you want in plain language. Available today: clean Markdown conversion. The rest are on the public build roadmap below, gated behind measured verification — not shipped until proven.

Give me Markdown

Available now Turn a document into clean Markdown plus a source map that records where every piece came from.

Build a prompt

Coming next A ready-to-paste bundle: instructions, contents, exact facts, and key excerpts, sized for a model's context window.

Token-light package

In progress The smallest possible input — like the PDF demo above. Deliberately lossy, so it unlocks only for AI models that pass measured verification.

RAG assets

Planned Chunks, metadata, and source maps ready for search and retrieval systems. Anything inferred is labeled as inferred.

Audit package

Planned Full internals and diagnostics for QA, legal, and compliance review — see exactly what was kept, compressed, and why.

Install

One download, one command.

Docpipe ships as a normal application download: a platform binary with a checksum you can verify. No account, no cloud, no build-from-source.

Install once, then the skill routes documents by itself.

The binary installs the agent skill, so the instructions your agent follows and the tool it calls always match versions.

  • Runs entirely on your machine — no network calls while converting.
  • Same input always produces the identical package, byte for byte.
  • Exact values always cite the page and block they came from.
  • Lossy modes stay locked until the target AI model passes verification.
1

Download the binary for your platform

macOS, Windows, and Linux archives with a checksum manifest. (Code signing is a separate release step still in progress.)

download docpipe for macOS, Windows, or Linux
2

Teach Frugal to your agents

This emits the agent skill named frugal into Claude and Codex while the local command remains docpipe. The bundle includes adapters, hook scripts, thresholds, and the subagent handoff contract.

docpipe skill install --all --json
docpipe skill status --all --json
3

Run any document through it

docpipe convert ./2607.12056.pdf --profile markdown_canonical --json --out .docpipe-demo

Your agent gets the text-first package; exact facts and the recovery path come along for free. Dense prompt_light remains registry-gated until the consuming model is verified.

Get started

Download once. Save tokens on every read after.

Install Docpipe, teach the frugal skill to your agents with one command, and let every large document travel as a compact package with its exact facts intact.

docpipe skill install --all --json

Still ahead of v1.0: code signing, installer verification, and the explicit update command.

Pass it on

A tiny handoff

Take Docpipe with you.

QR code for this Docpipe site

Link copied to your clipboard.

Scan or copy the link to open this exact demo site on another screen.

Privacy notice

Your documents stay local.

Phase one keeps Docpipe usage accounting on your machine. It records only command, profile, and token-accounting totals. It does not upload document text, file names, paths, prompts, URLs, or hashes.

This site does not yet collect newsletter or survey data. If Cloudflare Web Analytics is enabled for this Pages project, it must use Cloudflare's EU visitor exclusion setting until the later consent flow and privacy review are complete.

Future email, survey, and aggregate telemetry collection will be optional and described here before it is enabled.