Madhan230205/token-reducer

⚡ Cut Claude token usage by 90%+ — free, open-source, local-first context compression for Claude Code. Hybrid RAG (BM25 + ONNX vectors), AST chunking, reranking. No API needed.

44Stars on the repository
9Mods indexed here, across every type
4mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

UserPromptSubmit

01

Madhan230205/token-reducer

Hook

Runs when you submit a prompt, before the agent sees it, executing userprompt_guard.py via python. From Madhan230205/token-reducer.

44 4mo ago A tokens not measured original MIT