SurfSense is an open-source desktop application that uses an AI agent to research, transform, and edit documents while keeping their index on the user's machine. It is intended for people working with documents they cannot upload, with a choice of local or remote models and no account required.
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.
npx skills add MODSetter/SurfSense --skill surfsense-pdfgit clone --depth 1 https://github.com/MODSetter/SurfSenseWrote 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/skills/modsetter/surfsense/surfsense-pdf)<a href="https://agentmods.dev/skills/modsetter/surfsense/surfsense-pdf"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/surfsense-pdf/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/skills/modsetter/surfsense/surfsense-pdf"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/surfsense-pdf.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.00070 | $0.01213 |
| Opus 5.5 | $0.00028 | $0.00485 |
| Sonnet 5.5 | $0.00014 | $0.00243 |
| Haiku 4.5 | $0.00007 | $0.00121 |
Grade A, and why
surfsense-pdf 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Working on PDFs
Three tools work on PDFs the user selected and on PDF artifacts in Studio. None of them runs a script and none of them changes the PDF it reads: each result is a new PDF artifact in Studio, and the user's own file stays exactly as it was. Say so when the user worries about their original.
| The user wants | Tool | Call |
|---|---|---|
| Several PDFs as one | surfsense_pdf_pages |
operation: "merge", the PDFs in order |
| Only some pages | surfsense_pdf_pages |
operation: "extract", pages |
| One file per chapter, per section, per page | surfsense_pdf_pages |
operation: "split", a range per part in pages |
| A page turned the right way up | surfsense_pdf_pages |
operation: "rotate", angle, pages |
| The pages in another order | surfsense_pdf_pages |
operation: "reorder", every page once in pages |
| "DRAFT" or "CONFIDENTIAL" across each page | surfsense_pdf_stamp |
kind: "watermark", text |
| Page numbers | surfsense_pdf_stamp |
kind: "page_numbers", optional text with {page} and {total} |
| A line of text at the top or bottom of each page | surfsense_pdf_stamp |
kind: "header" or "footer", text, optional position |
| What a form asks for | surfsense_pdf_form |
action: "list" |
| A form filled in | surfsense_pdf_form |
action: "list", then action: "fill" with fields |
A new document written from scratch, even a PDF, is surfsense_render_document with the surfsense-documents skill, not these tools.
Naming the PDFs
- A source by
document_id(ordocument_idsfor pages): the number in brackets at the end of its file name insources/. - A PDF in Studio by
artifact_id(orartifact_ids): every result names its new artifact's id. Pass it to the next tool to go on, for example extract pages, then number them. - A merge takes
document_idsin their order, thenartifact_idsin theirs. For another mix, merge in two steps.
Page ranges
pages is text: page numbers from 1 and ranges, separated by commas.
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.
- 1mo ago First seen · 66 lines · 70 tokens per session scan A 8a4f397166fc
surfsense-pdf is a skill published in the GitHub repository MODSetter/SurfSense (17,247 stars, last pushed 3d ago), licensed Apache-2.0. It adds 70 tokens to every session and 1,213 once invoked, about $0.0003 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-10.
surfsense-pdf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| surfsense-pdfMODSetter/SurfSense | Skill | 17k | 3d ago | Apache-2.0 | A | 70 | Claude Code, Codex |
| markitdownK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 62 | Claude Code, Codex |
| pdfHKUDS/DeepTutor | Skill | 64k | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| xberg-extracting-tablesxberg-io/xberg | Skill | 9.6k | today | MIT | A | 36 | Claude Code |
| potpie-resource-pdfpotpie-ai/potpie | Skill | 5.8k | 5d ago | Apache-2.0 | A | 101 | Claude Code, Codex |
| pdf-exploreUnicomAI/wanwu | Skill | 2.4k | 5d ago | Apache-2.0 | A | 192 | Claude Code, Codex |
| azure-aimicrosoft/skills | Skill | 3.3k | 3d ago | MIT | A | 76 | Claude Code |