What do you want to do?
5 use cases
-
Read a long paper from overview to full text
Paste an arXiv or PubMed Central link and read the paper one level at a time.
View prompt
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.
-
Let an agent read a document map first, then one section
Give an agent a command that returns a document one level at a time, coarsest first.
View prompt
Using the TextFold repo at github.com/chenxiachan/textfold, run `python3 -m textfold get <document> ` first without a level to read the section map, then run it again with `--level key --section <n>` for the one section that answers the task. Expected output: the section topics, then the points of that section with their reasons. Verify that each model-written line is marked as such before using it.
-
Fold long Claude Code replies to a level you can scan
Install the TextFold mod so every Claude Code reply shows five levels, from one sentence to full text.
- Textfold
- Claude Code
- Research
- Intermediate
View prompt
Using the TextFold repo at github.com/chenxiachan/textfold, install the Claude Code plugin with `claude plugin marketplace add chenxiachan/textfold` and `claude plugin install textfold@textfold`. Expected output: after a reply, pressing 5 shows the answer in one sentence and pressing 1 shows the full reply. Verify that the Full level matches the reply exactly, since nothing is paraphrased.
-
Open your Zotero library items as folded text
Connect TextFold to the Zotero 7 app and read any library item in five levels.
View prompt
Using the TextFold repo at github.com/chenxiachan/textfold, enable Zotero 7 communication under Settings › Advanced, then open the Zotero library in TextFold. Expected output: your Zotero collections listed, and the chosen item shown at its folded levels. Verify that the item's title and authors match what is in Zotero, and that nothing in the Zotero library has changed.
How to use Textfold
- Check you have what it needs: 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.
- Open chenxiachan/textfold on GitHub and read the README and license.
- 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.
These steps come from our top use case, Read a long paper from overview to full text, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forResearchers, students, and people who read long documents or long AI replies and want to zoom from an overview to the full text.
- Why it is hot
- LanguagePython
- Sourcegithub.com/chenxiachan/textfold · Back to Hot repos
Requirements
- 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
Maintain Textfold? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/chenxiachan-textfold/?ref=badge)
Questions about Textfold
What is Textfold?
TextFold is an open-source Python tool that folds papers, web pages, files, and AI replies into five levels of detail, from a one-screen overview down to the original text. It is an open-source project on GitHub: https://github.com/chenxiachan/textfold.
Who is Textfold for?
Researchers, students, and people who read long documents or long AI replies and want to zoom from an overview to the full text.
What can I do with Textfold?
5 use cases so far, for example: Read a long paper from overview to full text; Let an agent read a document map first, then one section; Fold long Claude Code replies to a level you can scan. Each has steps and a copy-paste agent prompt.
What do I need to run Textfold?
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.
What are alternatives to Textfold?
Other hot AI repos in Research: Scientific Agent Skills, Speaker Mem R1, DSH Council, Evo Bot, AI Engineering Course.
Is Textfold safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.