Who it is forA researcher or student who has a long paper to understand quickly and needs to decide which parts deserve a close read.
The problemA full paper takes a long time to read, and it is hard to tell which sections matter before reading them.
The outcomeA folded view of the paper as a map of its sections, which you zoom into to reach the exact sentences you need.
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
- Run
python3 -m pip install textfoldin a terminal, then runpython3 -m textfold serve. - Open
http://localhost:3017in your browser. - If the first page asks, connect a model: use Claude Code, Codex, or your ChatGPT plan, or click OpenRouter in one click.
- Paste the paper's arXiv or PubMed Central link and pick a language.
- Read the map at level 5, then press 3 or 2 on a section you want to understand more closely, and press 1 for the original text.
Prompt for your agent
Using the TextFold repo at github.com/chenxiachan/textfold, run `python3 -m textfold get <paper-link> --level key --section 3` to get the key points of section 3 of the paper. Expected output: the points of that section, each with its reason. Verify that every point is marked as model-written and points back to the author's sentences it rests on.
Caveat. Each level below Full is a fold of the text, and lines at levels 3 to 5 are written by a model, so check them against the original sentences they cite.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for chenxiachan/textfold and "Read a long paper from overview to full text"
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