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-datagit 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-data)<a href="https://agentmods.dev/skills/modsetter/surfsense/surfsense-data"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/surfsense-data/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-data"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/surfsense-data.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.00000 | $0.01647 |
| Opus 5.5 | $0.00000 | $0.00659 |
| Sonnet 5.5 | $0.00000 | $0.00329 |
| Haiku 4.5 | $0.00000 | $0.00165 |
Grade A, and why
surfsense-data 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 — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Analysing spreadsheets and CSVs
You answer a question about a table by writing a Python script and passing it to surfsense_analyze_data with the sources it reads. SurfSense runs the script on copies of those files and returns what it printed, the tables it saved and the charts it drew. You then answer from those results, or place a chart in a document.
Analyse or read
- Analyse when the answer needs arithmetic over rows: sums, counts, averages, growth, shares, rankings, grouping, joining two tables, finding gaps or outliers, or a chart.
- Read the source's text in
sources/instead when the question is what a table says, a handful of cells, or the prose around it. - Do not add up a long column yourself from the text: run the analysis. The text in
sources/is an extract made for reading; the script reads the file itself. - Only spreadsheet and CSV sources the user selected can be analysed. A PDF or Word table is read from its text.
The contract
os.environ["INPUT_DIR"]holds a read-only copy of each source you named, under its own file name.manifest.jsonin the same folder lists each file with itsdocument_idandtitle, so you can say which source a number came from. Nothing the script does reaches the user's files.- Save what you make in
os.environ["OUTPUT_DIR"]: tables as.csv, charts as.png. Only.csv,.tsv,.png,.jpg,.svg,.xlsx,.jsonand.txtfiles at the top of that folder are kept, at most 20. Spaces and other characters in a file name become_. - Use pandas, numpy, matplotlib, openpyxl and Python's standard library. Do not use the network.
- The script runs alone, from an empty folder, for at most 120 seconds. Each run starts fresh: nothing from an earlier run is in
INPUT_DIR.
Loading each format
.csv:pd.read_csv(path). If everything lands in one column, the file uses semicolons: passsep=";". Numbers written as1,234needthousands=",". A file that will not decode needsencoding="latin-1"..tsv:pd.read_csv(path, sep="\t")..xlsx:pd.read_excel(path, sheet_name=None)gives every sheet as a dict of frames; look at the names before you pick one. When the header is not on the first row, passheader=<row index>orskiprows.- When you do not know the layout yet, make the first run a look: print
df.shape,df.columns.tolist()anddf.head().to_string(), then write the real analysis. - Clean before you compute:
df.columns = df.columns.str.strip(),pd.to_numeric(df[col], errors="coerce")for numbers stored as text,pd.to_datetime(df[col], errors="coerce")for dates, and drop a total row the sheet already has so it is not counted twice.
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 Changed · +2 lines cba5fbd93d61
- 1mo ago First seen · 115 lines · 0 tokens per session scan A 58282a09c015
surfsense-data is a skill published in the GitHub repository MODSetter/SurfSense (17,247 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,647 tokens. 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-data compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| surfsense-dataMODSetter/SurfSense | Skill | 17k | 3d ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| xlsxHKUDS/DeepTutor | Skill | 64k | yesterday | Apache-2.0 | A | 88 | Claude Code, Codex |
| xberg-extracting-tablesxberg-io/xberg | Skill | 9.6k | today | MIT | A | 36 | Claude Code |
| potpie-resource-spreadsheetpotpie-ai/potpie | Skill | 5.8k | 5d ago | Apache-2.0 | A | 106 | Claude Code, Codex |
| tencent-docsUnicomAI/wanwu | Skill | 2.4k | 5d ago | Apache-2.0 | A | 209 | Claude Code, Codex |
| smart-data-collectionUnicomAI/wanwu | Skill | 2.4k | 5d ago | Apache-2.0 | A | 115 | Claude Code |
| standardize-health-datathetahealth/mirobody | Skill | 1.9k | 3d ago | Apache-2.0 | A | 133 | Claude Code |