Skip to content

Releases

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 03 Apr 18:59

Token Reducer

⚡ Cut Claude token usage by 90%+ — free, local, open-source

Claude Code Plugin
License: MIT
PyPI
Python 3.11+


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-reducer

What'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


#ClaudeCode #OpenSource #DeveloperTools #RAG #ContextCompression #TokenReduction #PromptEngineering #Python #SQLite #BM25 #TreeSitter #LLM #AITools #CostOptimization #LocalFirst #HybridRetrieval #Embeddings #SemanticSearch #DeveloperProductivity #FreeAndOpenSource

What's Changed

New Contributors

Full Changelog: https://github.com/Madhan230205/token-reducer/commits/v1.4.0

⌂ 换网址