prompt-compression repositories

Trending repositories tagged prompt-compression, ranked by trending score. Updated daily.

  1. 1
    yanstd888/9routerx

    9RouterX (9R Next Go Generation): Single-binary Go AI router, LLM gateway & 20-40% token saver. Route Claude Code, Cursor & Codex across 155 providers, 28 OAuth & 248 free models (24 keyless) — OpenAI, Claude, Gemini, DeepSeek, Groq, Ollama & MCP.

    GitHub · Go · 266 stars · 159 forks · +7 stars in 24 hours · Trending score 1.67

  2. 2
    gglucass/headroom-desktop

    Menu bar app for macOS, Windows and Linux that cuts Claude Code and ChatGPT Codex token costs by ~50%

    GitHub · Rust · 653 stars · 71 forks · +4 stars in 24 hours · Trending score 1.38

  3. 3
    pleasedodisturb/awesome-llm-token-optimization

    A curated list of strategies, tools, papers, and resources for reducing LLM token costs and improving efficiency in production.

    GitHub · Shell · 126 stars · 42 forks · 0 stars in 24 hours · Trending score 0.70

  4. 4
    danielle34/cavewoman

    Caveman prompting, measured. A two-channel evaluation framework for prompt compression and LLM token efficiency: what input vs output compression costs in dollars, accuracy, and whether the reasoning changes. Compress the output not the prompt!! 9 models, 5 benchmarks, 10 languages. EMNLP 2026 Main

    GitHub · Python · 21 stars · 2 forks · 0 stars in 24 hours · Trending score 0.46

  5. 5
    open-compress/claw-compactor

    14-stage Fusion Pipeline for LLM token compression — reversible compression, AST-aware code analysis, intelligent content routing. Zero LLM inference cost. MIT licensed.

    GitHub · Python · 2,005 stars · 182 forks · +1 stars in 24 hours · Trending score 0.45

  6. 6
    NodeNestor/claude-rolling-context

    Rolling context compression for Claude Code — never hit the context wall. Auto-compresses old messages while keeping recent context verbatim. Zero config, zero latency. Works as a Claude Code plugin.

    GitHub · Python · 34 stars · 9 forks · 0 stars in 24 hours · Trending score 0.43

  7. 7
    Thanatos9404/llmslim

    Long-term memory for AI agents with no LLM call: an MCP server and Claude Code plugin, plus local-first context compression for LLM apps.

    GitHub · Python · 27 stars · 3 forks · 0 stars in 24 hours · Trending score 0.37

  8. 8
    Sev7eEn7/dsh-sieve

    dsh-sieve: context engineering & token optimization plugin for DeepSeek Harness (DSH) — tool output filtering, context pruning, progressive skill disclosure. 36% smaller payload in offline replay. DSH 上下文管理与 token 优化节省插件。

    GitHub · TypeScript · 113 stars · 4 forks · 0 stars in 24 hours · Trending score 0.28

  9. 9
    atjsh/llmlingua-2-js

    JavaScript/TypeScript implementation of LLMLingua-2 (Experimental)

    GitHub · TypeScript · 33 stars · 6 forks · 0 stars in 24 hours · Trending score 0.24

  10. 10
    JustVugg/flint

    Help AI agents use fewer tokens and keep more useful context. Reversible code, JSON and text compression, persistent memory, focused reads and version-aware edits.

    GitHub · Python · 15 stars · 2 forks · 0 stars in 24 hours · Trending score 0.14

  11. 11
    kaderkck/hewn-forge

    HEWN 2.0 2026: AI Output Router for Precision Summaries & Polished Code

    GitHub · HTML · 116 stars · 0 forks · 0 stars in 24 hours · Trending score 0.10

  12. 12
    lucasmartins-ai/lcc

    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.

    GitHub · Python · 20 stars · 6 forks · 0 stars in 24 hours · Trending score 0.09

  13. 13
    omar-y-abdi/furl-ctx

    Context compression for AI agents — cut token usage costs with retrievable CCR compression. Rust core + Python API, Claude Code & Codex plugin, MCP server. PyPI: furl-ctx

    GitHub · Python · 5 stars · 0 forks · 0 stars in 24 hours · Trending score 0.07

  14. 14
    baiibayu/srouter

    Never hit rate limits again. One OpenAI-compatible endpoint for 60+ providers & 1,200+ models — smart auto-fallback, prompt compression, 60-language dashboard. Plug into Claude Code, Cursor, Codex & more. Free, open-source, self-hosted.

    GitHub · TypeScript · 63 stars · 11 forks · −1 stars in 24 hours · Trending score 0.03

  15. 15
    KathanModh259/latent-gate

    MCP server that shrinks logs, JSON, docs and web pages before your AI reads them. Offline, deterministic, ~3ms, no API key. 66% fewer tokens on a mixed dev corpus, 90%+ on logs.

    GitHub · Python · 25 stars · 2 forks · 0 stars in 24 hours · Trending score 0.00