2026-11-27 16:42 UTC

Sugo releases local document-to-Markdown tool for LLM workflows

state: expiredheat: lowuncertainty: mediumrelevance: mediumdocument-processing context-efficiency local-aiMuralnick

What is this?

Sugo is an open-source, local-first document conversion tool by GitHub user Muralnick. The project’s README says v0.1.4 is available on PyPI and in the MCP Registry; it converts text-based PDFs, Office files, XML, images and screenshots into Markdown or JSONL for LLMs, RAG systems and agents. Its receipt feature records removals and edits, with a verification command to check whether a file converts the same way again. The creator’s Show HN post describes the motivation as reducing token use and says the tool runs mostly locally. The source material is chiefly the project’s own README and creator post, so its benchmark and performance figures are self-reported, not independent validation.

Why it matters

Sugo addresses a practical layer between documents and AI: preparing files locally in a format that may use less context while retaining structure and making transformations inspectable. That could lower cost and make private-document workflows easier to run on modest hardware, including through an agent interface. Its potential is useful but bounded: reported savings vary sharply by document, and the project’s own comparison uses a small, mostly synthetic corpus.

Current assessment

New: Muralnick presented Sugo on Hacker News; the linked project states v0.1.4 is available via PyPI (`sugo-cli`) and listed in the official MCP Registry. Current supported inputs include text-layer PDFs, DOCX/XLSX/PPTX, XML, and PNG/JPEG/WEBP images; scanned-book cleaners and additional formats are roadmap items, not current support. The project says conversion runs offline without cloud APIs or telemetry and offers CLI, local web UI, and MCP access. Receipts record file hash, version/settings, token counts, removals/edits and uncertain blocks; `sugo verify` checks that reconversion matches the receipt, but does not establish the source document’s authenticity. The README reports 33–38% savings on documents with repeated page furniture, 2.9–3.5% on a real EU regulation, and 94–98% lower token cost for some chat/code screenshots versus sending images; these are project claims. Its comparison covers 31 documents, 26 synthetic and five real regulations, and the authors caution that it is small and self-built. It reports some OCR character errors and slower OCR on old hardware. Implication: if the workflow is reliable for a user’s files, local preprocessing could reduce context use and avoid uploading sensitive documents, while receipts make edits more auditable. Independent testing, broader adoption, and real-world error rates remain unknown.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p25momentum: steady1 platformsage 336h
points/hour across evidence · reading as of 2026-11-25 02:27:22.974290+11:00 · deterministic, not a model opinion

How the heat travelled

11-10 14:59⭐ origin directly observedShow HN: Sugo – Turn PDFs and Screenshots into Compact Markdown for LLMs
Muralnick on hacker news
—
11-10 14:59amplified on hacker news 👑hn.story.50441321
Muralnick
peak 2 · 0 comments · 103% of case engagement
11-10 15:20our radar first saw it · +0.4hdiscovery anchor: hn.story.50441321—

Evidence (1) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hn ⭐Show HN: Sugo – Turn PDFs and Screenshots into Compact Markdown for LLMs
Retrieved article excerpt

Open article · Retrieved 2026-11-10T15:22:01.366209+00:00

Sugo logo

# Sugo

**Documents, reduced.** Feed your LLM the sauce, not the water.

[PyPI version](https://pypi.org/project/sugo-cli/)
[CI](https://github.com/Muralnick/sugo/actions/workflows/ci.yml)
[Python 3.12, 3.13 and 3.14](https://camo.githubusercontent.com/95cf8d1ca88cb2dd4e3e991644aba146d4317e511f29d53bb6004268571ea2c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e3132253230253743253230332e3133253230253743253230332e31342d333737366162)
[AGPL-3.0-or-later](https://camo.githubusercontent.com/ef1e1c14c6e35569acba4f247bad4c750319bade2977547594a4dad36051e99b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4147504c2d2d332e302d2d6f722d2d6c617465722d623233613232)
[Runs 100% offline](https://camo.githubusercontent.com/df9372ab5a33135ddd647132759b380a4016cd026f0e7854084d2007e5e02c51/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72756e732d3130302532352532306f66666c696e652d326637643466)

[**Quick start**](https://github.com/Muralnick/sugo#quick-start) ·
[What it does](https://github.com/Muralnick/sugo#what-it-does) ·
[Comparison](https://github.com/Muralnick/sugo#how-it-compares) ·
[MCP](https://github.com/Muralnick/sugo#use-it-from-an-ai-agent-mcp) ·
[Roadmap](https://github.com/Muralnick/sugo/blob/main/docs/ROADMAP.md) ·
🇮🇹 [Italiano](https://github.com/Muralnick/sugo/blob/main/README.it.md)

---



|  |  |  |  |
| --- | --- | --- | --- |
| **🔒 100% local** no cloud, no telemetry | **✂️ Fewer tokens** 33–38% with repeated headers, ~3% on real legal text | **🧾 Nothing lost silently** every removal recorded, checkable with `sugo verify` | **🪶 Light** runs on 8 GB RAM, no GPU |

Sugo turns PDFs, Office files, screenshots and images into clean, compact Markdown for RAG systems, AI agents and LLM chats. It removes what only costs tokens (repeated headers and footers, page numbers, hidden text, tracking parameters, app chrome around a screenshot) and keeps the content, the tables and the structure. Everything runs on your computer: no cloud API, no telemetry, nothing sent anywhere.

[Sugo's local web page after converting a three-page report: 294 tokens before, 187 after, 36.4% saved; the Markdown on the left, the blocks each cleaner removed on the right](https://raw.githubusercontent.com/Muralnick/sugo/main/docs/images/web-ui-convert.png)

> In Italian, *il sugo del discorso* means "the gist", and a *sugo* is a sauce you **reduce** until only the concentrated flavour remains. That is what Sugo does to your documents.

## What it does

A small generated three-page PDF, as a plain text extractor gives it to your model (pages 1 and 3 look the same):

```
ACME S.p.A. - Annual Report 2025                Confidential
3.2 Revenue
Revenue grew by 12% in the second half, driven by the export market.
Details: https://acme.example/report?utm_source=newsletter&utm_medium=email
Page 14 of 120
```

What `sugo report.pdf` prints:

```
ACME S.p.A. - Annual Report 2025

# 3.1 Costs

Costs fell by 3% thanks to the new suppliers.
Details: https://acme.example/report

# 3.2 Revenue

Revenue grew by 12% in the second half, driven by the export market.
Details: https://acme.example/report

# 3.3 Outlook

The board expects stable growth next year.
Details: https://acme.example/report
```

The header is kept once instead of on every page; the page numbers, the repeated "Confidential" and the tracking parameters are gone; the text is the same. `sugo stats` measures the difference: **180 → 97 tokens, 46% saved** on this small generated example; real documents with less page furniture save much less (see below). Every removal is recorded with the cleaner that made it and the reason, so you can always check what was dropped. Text that cannot be read is marked as illegible, and handwriting in a scan, such as a signature, as `[handwriting]`: never guessed.

Across a benchmark corpus in five languages, no text went missing in any document (on 3 screenshots the OCR misread a few characters, 1–7%). Savings depend heavily on the document:

| Document | Tokens saved |
| --- | --- |
| Report with a running header, footer and page numbers | 33–38% |
| Chat or code screenshot, Markdown vs. sending the image itself | 94–98% cheaper (Claude, Gemini, OpenAI) |
| A real EU regulation from EUR-Lex, mostly substantive legal text | 2.9–3.5% |

And it stays fast on an ordinary computer: on a 2020 laptop with 4 cores, 8 GB of RAM and no GPU, a dense phone screenshot becomes text in 1.5 s; even on a 2010 desktop with 2 cores, a 100-page PDF converts in 3.6 s (full numbers in [TESTING](https://github.com/Muralnick/sugo/blob/main/docs/TESTING.md)).

## How it compares

Measured against two well-known alternatives, on the same 31-document benchmark corpus (26 synthetic documents made by the Sugo project plus 5 real EU-regulation PDFs), with the same tokenizer and the same ground truth — full method, raw numbers and limits in [docs/comparisons](https://github.com/Muralnick/sugo/blob/main/docs/comparisons/sugo-vs-docling-markitdown.md):

|  | Sugo | Docling | MarkItDown |
| --- | --- | --- | --- |
| Documents converted with nothing lost or garbled | **28 / 31** | 25 / 31 | 14 / 31 |
| OCR on chat/code screenshots | ✅ no text missing; 1–7% character errors on 3 accented screenshots | ⚠️ right words, wrong order on some chats | ❌ empty output |
| Reads PDFs out of the box | ✅ | ✅ | ❌ needs an extra |
| Real EU regulation PDF, every clause kept | ✅ | ⚠️ 2 of 5 drop a clause | ❌ every one drops 2–7 |

A tool that drops content also "saves" tokens on paper — that's data loss, not compression. Every number above is paired with what actually survived the conversion.

Fair caveats: the corpus is small and mostly synthetic, and it was built by the Sugo authors, so treat it as a sanity check, not a verdict. On the report PDFs Docling saves slightly *more* tokens than Sugo (about 38–48% vs 33–38%) without losing content; it is also several times slower on this corpus. Raw data and the full per-document table are in the linked comparison.

## Status

Note

**v0.1.4 is out**, on [PyPI](https://pypi.org/project/sugo-cli/) as `sugo-cli` and in the official [MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.Muralnick/sugo`. See the [changelog](https://github.com/Muralnick/sugo/blob/main/CHANGELOG.md) for what changed. It is still 0.x: contracts may change, with notice, before 1.0. Releases are built reproducibly, with an SBOM, Sigstore attestations and PyPI Trusted Publishing.

| Works today | Coming next |
| --- | --- |
| Native PDFs, DOCX, XLSX, PPTX, XML | Scanned-book cleaners, EPUB, email, web pages |
| Images and screenshots with local OCR (PNG, JPEG, WEBP) | Larger tables, `normal` and `quality` engine levels |
| Scans: handwriting marked, repeated letterheads removed | Japanese, Chinese, Korean |
| Chat and code screenshot detection | Guided setup |
| Markdown, and JSON Lines chunks for vector databases | Background service and folder watcher |
| Conversion receipt, checked by `sugo verify` | Work profiles and recipes |
| Token metrics per provider (`sugo stats`) | Docker images |
| Command line, interactive shell, MCP server for agents, local web page |  |
| Interface and text rules in English, Italian, Spanish, French, German |  |

See the [roadmap](https://github.com/Muralnick/sugo/blob/main/docs/ROADMAP.md) for the full plan.

## Quick start

Sugo needs Python 3.12, 3.13 or 3.14. The install is about 400 MB on disk, because the PDF library, the OCR engine and its models come with it. The easiest way to install it is with [uv](https://docs.astral.sh/uv/):

```
uv tool install sugo-cli
```

Or with pip:

```
pip install sugo-cli
```

If `sugo` is "not recognized" or "not found" after installing with pip, pip put it in a folder your system does not search. This happens on Windows when pip installs for your user only ("Defaulting to user installation"). Either install with `uv tool install sugo-cli` and run `uv tool update-shell` once, or add the folder pip names in its warning (on Windows, `%APPDATA%\Python\Python3XX\Scripts`) to your `Path`, then open a new terminal.

Tip

The package is called `sugo-cli` because the name `sugo` on PyPI is held by an unrelated, empty project (a name transfer request is open). The installed command is still `sugo`; `sugo-cli` works too. Older instructions with `sugo-cli[lite]` still work: everything is now included by default.

To run the latest development version from source instead:

```
uv tool install git+https://github.com/Muralnick/sugo
```

Convert a file and print its Markdown:

```
sugo report.pdf
```

Or type `sugo` alone to open the interactive shell: drag a file onto the window, press Enter, then use `/stats`, `/save` or `/help`.

[Sugo's interactive shell: the report converted to Markdown, 294 to 187 tokens, 36% saved, then the /stats command](https://raw.githubusercontent.com/Muralnick/sugo/main/docs/images/shell.png)

More things you can do:

```
sugo convert *.pdf -o out/            # one NAME.md per file, in out/
sugo convert report.pdf --chunks      # chunks as JSON Lines, ready for RAG
sugo convert report.pdf --receipt     # also write report.receipt.json (see below)
sugo stats screenshot.png             # tokens saved, per LLM provider
sugo clip                             # convert the screenshot in your clipboard
sugo ui                               # open the local web page: drop a file, get Markdown
sugo doctor                           # check the installation
```

Add `--json` for output a script can read.

### Check what was removed: the receipt

With `--receipt` (or the receipt setting on the web page), Sugo also writes `NAME.receipt.json`: the SHA-256 of the file, the Sugo version and settings used, the token counts, every block it removed or edited with the cleaner and the reason, and the blocks flagged as uncertain (such as low-confidence OCR). Later, anyone can check that the file still converts to the same result:

```
sugo verify report.pdf report.receipt.json
```

`sugo verify` converts the file again with the receipt's own settings and reports what differs, by block id only, never the text. The web page has the same check in its Verify tab:

[The Verify tab of Sugo's web page: a PDF and its receipt chosen, and the answer: the conversion is unchanged, it matches the receipt](https://raw.githubusercontent.com/Muralnick/sugo/main/docs/images/web-ui-verify.png)

The receipt shows that the *conversion* is faithful to the file: nothing dropped without a recorded reason, nothing invented. It says nothing about whether the document itself is genuine.

### Use it from an AI agent (MCP)

Sugo can serve agents such as Claude Code or Codex over MCP. It reads only inside the folders you name:

```
claude mcp add sugo -- sugo mcp --root ~/Documents
```

The agent gets two tools: `convert_document` and `estimate_savings`. Sugo is also listed in the official MCP Registry as `io.github.Muralnick/sugo`, so clients that read the registry can install it from there.

### Uninstall

Remove the program the same way you installed it:

```
uv tool uninstall sugo-cli
```

Or, if you used pip:

```
pip uninstall sugo-cli
```

If you added Sugo to an agent, remove it there too, for example `claude mcp remove sugo`.

Uninstalling the program does not delete the files Sugo created. They are only on your computer, and you can delete them by hand:

| What | Windows | macOS | Linux |
| --- | --- | --- | --- |
| Settings (`config.toml`) | `%LOCALAPPDATA%\sugo` | `~/Library/Application Support/sugo` | `~/.config/sugo` |
| Cache (text of converted documents) | `%LOCALAPPDATA%\sugo\Cache` | `~/Library/Caches/sugo` | `~/.cache/sugo` |

If you set `SUGO_CACHE_DIR`, the cache is in that folder instead. The cache holds text from the documents you converted, so delete it if those documents were private. Apart from these two folders and the files you asked it to write (such as `-o` output or receipts), Sugo keeps nothing
Muralnick20

Interpretation history

Decision trace