Repository navigation
Releases
v1.4.0
Token Reducer
⚡ Cut Claude token usage by 90%+ — free, local, open-source
What is Token Reducer?
Token Reducer is a free, open-source Claude Code plugin that cuts token usage by 90–98% using hybrid retrieval — combining BM25 keyword search, ONNX vector embeddings, AST-aware chunking, and Reciprocal Rank Fusion. It runs 100% locally — no API calls, no cloud dependencies, no data leaves your machine.
Built for developers who hit Claude's rate limits or want to reduce API costs without sacrificing context quality.
Install
# Option 1 — Claude Code plugin marketplace (recommended)
/plugin add token-reducer
# Option 2 — pip
pip install token-reducerWhat's Changed
Highlights
- Hybrid Retrieval — BM25 (SQLite FTS5) + ONNX semantic vectors fused via RRF
- AST-Aware Chunking — Tree-sitter parses Python, JS, TS, Go, Rust, Java, C/C++, Ruby
- Reranking — TextRank + symbol graph for precision context selection
- Zero Cloud — fully offline, CPU-only inference with all-MiniLM-L6-v2
- Sub-100ms — faster than Language Server alternatives
Links
- Docs & README → github.com/Madhan230205/token-reducer
- PyPI → pypi.org/project/token-reducer
- Issues & Feedback → github.com/Madhan230205/token-reducer/issues
#ClaudeCode #OpenSource #DeveloperTools #RAG #ContextCompression #TokenReduction #PromptEngineering #Python #SQLite #BM25 #TreeSitter #LLM #AITools #CostOptimization #LocalFirst #HybridRetrieval #Embeddings #SemanticSearch #DeveloperProductivity #FreeAndOpenSource
What's Changed
- Architectural change by @Madhan230205 in #1
- Test by @Madhan230205 in #2
New Contributors
- @Madhan230205 made their first contribution in #1
Full Changelog: https://github.com/Madhan230205/token-reducer/commits/v1.4.0