Who it is forAn office worker or ops person who processes the same kinds of PDFs every week.
The problemDoing the same merge and compress steps in a GUI every week is slow and error prone.
The outcomeA small script that merges, compresses and rotates PDFs the same way every time.
What you need first
- The paperpilot or paperpilot-mcp binary from GitHub Releases, or Rust 1.75+ to build from source
- An MCP client such as Claude Code, Codex, Cursor or Claude Desktop for agent use
- Node.js and pnpm only for the desktop app
Steps
- Install the CLI from Releases or build it with cargo
- Merge files with
paperpilot merge --inputs doc1.pdf doc2.pdf --output merged.pdf - Shrink the result with
paperpilot compress --input in.pdf --quality 75 --output compressed.pdf - Fix scanned pages with
paperpilot rotate --input in.pdf --pages 1,3-5 --angle 90 --output out.pdf - Wrap the commands in a shell script for your weekly batch
Prompt for your agent
Write a shell script that uses KrushnaVardhanReddy/PaperPilot's CLI to merge every PDF in <folder> in name order, compress the result at quality 75 and save it as <output.pdf>.
Caveat. This card is written from the KrushnaVardhanReddy/PaperPilot README, not from a test run by Deduped. Before you start, make sure you have the paperpilot or paperpilot-mcp binary from GitHub Releases, or Rust 1.75+ to build from source. Check the repo for newer instructions before you rely on these steps.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for KrushnaVardhanReddy/PaperPilot and "Merge, compress and rotate PDFs in a script with the CLI"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer