Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Token Reduction Python Packages

Python packages with the GitHub topic token-reduction. Sorted by monthly downloads, with stars and forks.
toprakahmetaydogmus
tzero-mcp

Deterministic AST Context Compressor & MCP Server for Cursor, Claude & Local LLMs. Cuts prompt tokens by 85–95% with 100% Zero-Leak security.

12K 125 5
dfrostar
neuralmind

Persistent code memory for AI coding agents, kept in your project on your machine. Gives Claude Code, Cursor, Cline, Hermes-Agent and any MCP client the files that matter for each prompt, learns which files you use together, and publishes every benchmark with its misses.

8K 42 5
Stxyu-p
trimtok

Cut token usage in Claude Code, Cursor, Codex & Gemini: deterministic in-process context compression for AI coding agents. Lossless and retrievable (#ref), AST code skeletons, TOON JSON tables, stdio MCP. No LLM, no network, MIT.

5K 2 0
IOServicesLabs
indexio-cli

Code Search and MCP server for AI coding agents. Instant Token Reduction.

4K 9 0
lucasmartins-ai
local-context-compiler

Compact coding-agent context without summarizing it away. Verbatim, offline, with a receipt and recall for every cut. CLI, MCP server, Claude Code plugin. MIT.

2K 20 6
yttrium400
reducethemtokens

Compress any code repo into a compact skeleton to reduce LLM token usage. 90%+ reduction with full structural retention.

1K 12 7
kettertom
prompt-compressor

Rule-based LLM prompt compression — 30+ algorithms, zero dependencies

798 0 0
RudrenduPaul
tokentrust-cli

Vendor-neutral CLI and MCP server that verifies the token and cost savings AI-coding-agent context-reduction proxies (rtk, headroom) actually deliver, measured against a real 23-task labeled corpus with a local tokenizer instead of the proxy's own claimed number.

564 0 0
Charan-place
astra-mcp

MCP server giving Claude Code, Cursor, Codex and Windsurf permanent AST-powered code memory. 98.9% token reduction. 100% local.

415 7 1
dong7812
dompruner

Token-efficient web content extraction for Python. DOM AST pruning + BM25 section filtering cuts LLM context by 90%+ — LangChain-compatible, no API key required.

394 3 0
NeelPrime
arbiterx-gate

Engineering discipline for AI code generation — smart routing, 97% token reduction, unbreakable code by default

380 2 0
nguyenminhduc9988
tokenseive

Multi-layer token optimization for LLM applications — compress prompts, map codebases, reduce output

251 4 0
Whynotshashwat
contextos-cli

AI Context Infrastructure Layer - Reduce token consumption. Maintain AI continuity.

229 0 0
Huzaifa785
context-compressor

AI-powered text compression for RAG systems and API calls to reduce token usage and costs

222 91 14
ether-btc
rust-cave-001

High-performance text compression — Rust-backed Python bindings for sentence-aware NLP compression and token optimization. Now with MCP server.

205 2 0
CertainLogicAI
certainlogic-guard

Deterministic AI verification middleware that catches hallucinations and cuts token costs.

97 0 0
SoftwareDLC
software-dlc-tile

Python helpers for first-class TILE prompt tables.

68 0 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology