Skip to content
FossShelf
Home / Categories / For AI Engineers

Textfold

Fold any text, from a one-screen map to every word.

Replaces Scholarcy

1.21K starsApache-2.0last commit 14 Nov 2026
Screenshot of Textfold

Who it's for

Researcher/Student

As a researcher, I need to quickly grasp the main points of many academic papers without reading every word. TextFold allows me to zoom through papers at different levels, highlight key passages, and integrate with my Zotero library, saving significant time.

The user primarily reads short articles or only needs full-text access without hierarchical summarization.

Developer/AI Agent Builder

As a developer, I want my AI agents to process lengthy documents or their own verbose outputs efficiently. TextFold's Python package and `get` command enable my agents to consume documents one level at a time, starting with a coarse map, optimizing context window usage and response generation.

The user's agents only handle very short texts or do not require hierarchical summarization.

Information Worker

As an information worker, I frequently deal with long reports, web pages, and documents. TextFold helps me quickly get the gist, then dive into specific sections as needed, reducing information overload and improving my comprehension and productivity.

The user only reads highly structured, short documents or prefers traditional summarization tools.

The problem

The concrete problem TextFold helps solve is information overload and cognitive burden when reading lengthy or complex documents, web pages, or AI agent outputs, by providing a structured way to progressively reveal information at different levels of detail.

How it works

Five Levels of Detail

Folds any text into five distinct levels, from a one-screen topic map to the full, original text, allowing users to control their reading depth and reduce cognitive load.

Broad Document Support

Reads various sources including arXiv papers, web pages, PDFs, Word, PowerPoint, Excel, EPUB, Markdown, and even AI agent replies, making it a versatile reading tool.

Desktop App & Python Package

Available as a standalone app for macOS and Windows, and a Python package for programmatic integration into pipelines and AI agents, offering flexibility for different users.

Zotero Integration

Connects to your local Zotero library to open and fold research papers, preserving metadata and allowing reading beside the original PDF for enhanced research workflows.

Interactive Reading Experience

Features words that travel as you zoom, allowing highlights and notes that persist across levels, and the ability to read beside the original PDF for context.

Agent Output Folding

Integrates with AI agents like Claude Code to fold replies into actionable levels, providing concise summaries without a second model, optimizing agent interaction.

Features

  • Five Levels of Detail
  • Broad Document Support
  • Desktop App & Python Package
  • Zotero Integration
  • Interactive Reading Experience
  • Agent Output Folding

How to install

python3 -m pip install textfold python3 -m textfold serve

Recommended for this setup

Strengths

  • Reduces Cognitive Load: By allowing users to choose their desired level of detail, TextFold significantly lowers the mental effort required to process large texts, improving comprehension.
  • Preserves Original Text: Unlike traditional summarization, TextFold keeps the original text, with AI-generated levels pointing back to the author's verbatim sentences, ensuring fidelity.
  • Local-First & Privacy-Focused: Your files and library stay on your computer, and text is only sent to the AI model you connect, ensuring data privacy and control.
  • Versatile Integration: Offers both a user-friendly desktop application and a powerful Python package for developers to embed folding capabilities into their workflows and agents.
  • Open Format: Uses an open format for folded text, enabling any program to read and write it, fostering interoperability and custom solutions.

Trade-offs

  • Windows Installer Not Signed: The Windows installer is not yet signed, requiring users to choose "More info, then Run anyway" the first time they install the application.
  • Requires External AI Model: TextFold relies on a connected AI model (Claude, ChatGPT, OpenRouter, etc.) to generate the higher-level folds, which may incur costs or require initial setup.
  • PDF Engine Installation for Full Functionality: For comprehensive PDF, image, and complex document conversion, an additional PDF engine (MinerU, about 3.4 GB) needs to be installed once.

Tech stack

Languages
Python, JavaScript, CSS, TypeScript, HTML, NSIS
Frameworks
Electron
Databases
—
Tooling
esbuild

FAQ

What is TextFold?

TextFold is a free, open-source reader and toolkit that folds any text into five levels, from a map of its sections to every word.

Is it free?

Yes, under the Apache License 2.0. The levels are written by a model you connect, so any cost is that model's.

How is it different from a summary?

The text stays. The two finest levels are the author's own sentences, and every line a model writes points back to them.

Does it upload my files?

No. Your library stays on your computer, and text goes only to the model you connect.

Can AI agents use it?

Yes. `textfold get` gives an agent a document one level at a time, coarsest first, and an open format lets any program read and write folded text.

Similar tools

More in AI Engineers