Browse

tldt — Too Long, Didn't Tokenize

Updated July 24, 2026

Overview / Description

tldt — Too Long, Didn't Tokenize is an AI text summarization tool that shrinks long documents into their essential sentences before they hit an LLM, cutting token costs for developers and AI engineers. It runs entirely locally as a CLI or Go library with no LLM calls, no API keys, and no token costs, using graph-based extractive algorithms (LexRank, TextRank, an ensemble mode, and a baseline) to select the most representative sentences. It reports up to 97% token reduction and outputs JSON, plain text, or markdown, making it easy to pipe into coding assistants like Claude Code, Cursor, and OpenCode. tldt also fetches URLs and converts HTML to markdown, so crawled pages and API docs can be summarized in place. Because it targets untrusted external content, it adds security preprocessing: prompt-injection detection aligned with the OWASP LLM Top 10, PII and API-key redaction, and Unicode confusables/homoglyph protection. ROUGE evaluation support lets you measure summary quality. Typical uses include compressing transcripts, articles, API documentation, and crawled sites before feeding agents that call AI APIs directly. It is free and open source under the MIT License.

Used For

Developers and AI engineers use tldt to locally compress long documents and crawled pages into token-efficient summaries before feeding them to LLMs and coding assistants.

Pricing

Plan

Free

Free and open source (MIT License)

View pricing

Pros & Cons

Pros

  • Runs fully locally with no LLM calls, no API keys, and no token costs
  • Graph-based extractive summarization (LexRank, TextRank, ensemble, baseline) reporting up to 97% token reduction
  • Security preprocessing: prompt-injection detection (OWASP LLM Top 10), PII/API-key redaction, and Unicode confusables protection
  • Fetches URLs and converts HTML to markdown; outputs JSON, text, or markdown for easy piping
  • Free and open source (MIT); usable as a CLI or Go library and integrates with Claude Code, Cursor, and OpenCode

Cons

  • Extractive (sentence-selection) summaries, not abstractive rewrites, so output can read choppier than LLM prose
  • Go library and CLI focus makes it developer-oriented rather than end-user friendly
  • New tool with a small community and thin third-party documentation
  • No hosted service or GUI; you self-run everything locally

Questions & Answers

Alternatives

LexRank, sumy, TextRank, LangChain text splitters, LLMLingua

Reviews & Ratings

0 reviews

5
0%
4
0%
3
0%
2
0%
1
0%

Sign in to rate and review tldt — Too Long, Didn't Tokenize.

Sign in to review

No reviews yet. Be the first to review tldt — Too Long, Didn't Tokenize!

Try tldt — Too Long, Didn't Tokenize free
tldt — Too Long, Didn't Tokenize | AI Tools Directory