Who it is forA reader who wants to pass a summarized paper to a colleague or keep a copy that opens in any browser.
The problemA folded reading view lives on a local server, so it is not easy to send to someone else.
The outcomeOne HTML file with the levels, your chosen notes, and optionally the original PDF beside the text.
What you need first
- Python 3.9 or newer, or the TextFold desktop app for macOS or Windows
- A model you already have, such as Claude Code, Codex, a ChatGPT plan, an API key, or a free OpenRouter setup
Steps
- Fold the paper first, either in the reader at
http://localhost:3017or with the command below. - Run
python3 -m textfold export 2512.23916to write the page without your notes. - In the reader, click **Save** at the top to keep the page with your notes, or keep only your notes as a page, a PDF, Markdown for Obsidian, or JSON.
- Send the HTML file. It opens anywhere without a server.
Prompt for your agent
Using the TextFold repo at github.com/chenxiachan/textfold, run `python3 -m textfold export <arxiv-id>` for the paper with ID <arxiv-id>. Expected output: an HTML file with the five levels of that paper. Verify that the file opens in a browser with no server running and that the license note under the title is still shown.
Caveat. The README says that when you share a file, you must follow the terms of the original text, which appear under its title.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for chenxiachan/textfold and "Export a folded paper as one page that opens without a server"
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