leanctx

by jia-gao · Agent Tool · ★ 317

About leanctx

leanctx Drop-in prompt compression for production LLM applications. Cut your input-token bill by 10–40%,without sacrificing accuracy. On the full LongBench v2 set (N=503), layered on top of a compressor that is already running, leanctx removes an extra 18.7 % of tokens — rising to 36.7 % on prose-heavy traffic — at a cost of 1.8 pp of accuracy. Every figure regenerates from per-item records committed to this repo. Open-source models, runs locally, MIT-licensed. Your prompts and user data never leave your infrastructure by default.

anthropiccost-optimizationgeminilangchainlanggraphllmllm-inferencellmlinguaopenaiprompt-compression

Quick Facts

Stars317
Forks3
LanguagePython
CategoryAgent Tool
LicenseMIT
Quality Score38.25/100
Open Issues1
Last Updated2026-08-22
Created2026-04-18
Platformsgemini, python
Est. Tokens~21k

Compatible Skills

These tools work well together with leanctx for enhanced workflows:

  • lumen — semantic(0.16)+complementary+rare_topics+same_lang+similar_pop+shared_platform (55%)
  • CausalAgent — semantic(0.21)+complementary+rare_topics+same_lang+similar_pop (52%)
  • NadirClaw — semantic(0.21)+complementary+rare_topics+same_lang+similar_pop (52%)
  • ai-microcore — semantic(0.19)+complementary+same_lang+similar_pop+shared_platform (52%)
  • ai-agents-from-zero — semantic(0.20)+complementary+rare_topics+same_lang+similar_pop (51%)

More Agent Tool Tools

Explore other popular agent tool tools:

View all Agent Tool tools →

Popular Python Agent Tools

Frequently Asked Questions

What is leanctx?

leanctx is Drop-in prompt compression for production LLM apps. Cut your token bill 40-60% without changing your code. Python SDK, LLMLingua-2, MIT.. It is categorized as a Agent Tool with 317 GitHub stars.

What programming language is leanctx written in?

leanctx is primarily written in Python. It covers topics such as anthropic, cost-optimization, gemini.

How do I install or use leanctx?

You can find installation instructions and usage details in the leanctx GitHub repository at github.com/jia-gao/leanctx. The project has 317 stars and 3 forks, indicating an active community.

What license does leanctx use?

leanctx is released under the MIT license, making it free to use and modify according to the license terms.

View on GitHub → Browse Agent Tool tools