token-optimization repositories

Trending repositories tagged token-optimization, ranked by trending score. Updated daily.

  1. 1
    rtk-ai/rtk

    CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

    GitHub · Rust · 87,694 stars · 5,630 forks · +193 stars in 24 hours · Trending score 4.44

  2. 2
    headroomlabs-ai/headroom

    Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

    GitHub · Python · 80,741 stars · 6,332 forks · +177 stars in 24 hours · Trending score 4.36

  3. 3
    microsoft/TokenEconomizer

    Experience-Driven Black-Box Cost Control for Coding Agents

    GitHub · Python · 8,069 stars · 573 forks · +71 stars in 24 hours · Trending score 4.01

  4. 4
    alexgreensh/token-optimizer

    Find the ghost tokens. Fix them. Survive compaction. Avoid context quality decay.

    GitHub · Python · 3,088 stars · 243 forks · +92 stars in 24 hours · Trending score 3.36

  5. 5
    JayPokale/Chisle

    Cut your AI coding agent's token bill on three axes: terse prose, YAGNI-first code, and tool-output compression. Claude Code, Pi, Cursor, Codex, Gemini + 4 more. Zero deps, published benchmarks including the runs it loses.

    GitHub · JavaScript · 1,259 stars · 80 forks · +45 stars in 24 hours · Trending score 3.28

  6. 6
    HKUDS/TokenWise

    TokenWise: Self-Evolving Context with Up to 50% Token Savings

    GitHub · TypeScript · 2,291 stars · 273 forks · +57 stars in 24 hours · Trending score 3.05

  7. 7
    snchimata/tokenfold

    Private, provider-neutral context compression for LLMs. Reversibly compress schemas and logs inside your perimeter with zero third-party calls.

    GitHub · Rust · 451 stars · 31 forks · +31 stars in 24 hours · Trending score 3.04

  8. 8
    INK-Q/agy-fast

    Non-invasive MCP accelerator plugin for Google Antigravity (CLI/Desktop/IDE): cuts LLM turns (-34%), token quota (-31%), and upload traffic (-40%) without affecting native UI or diffs.

    GitHub · TypeScript · 1,041 stars · 60 forks · +129 stars in 24 hours · Trending score 2.30

  9. 9
    jgravelle/jcodemunch-mcp

    Symbol-level code retrieval for AI agents: fetch the function you need, not the whole file. Runs locally. 96.2% fewer tokens per lookup on average than grep-and-read on our 15-lookup benchmark. Works with Claude Code, Cursor, Codex and any MCP client. Free for non-commercial use; commercial use needs a one-time license.

    GitHub · Python · 2,871 stars · 377 forks · +16 stars in 24 hours · Trending score 2.19

  10. 10
    localixai/tokendoctor

    tokendoctor: the same Claude Code for up to 38% less. Replays your own past sessions to show what each change would have saved, then changes only what you pick

    GitHub · TypeScript · 177 stars · 12 forks · +5 stars in 24 hours · Trending score 2.08

  11. 11
    zou172866/Antigravity-agy-dart

    Google Antigravity plugin that improves cache hits, keeps cache warm automatically, protects context quota, shows live context usage, rescues crashed sessions, and saves tokens.

    GitHub · JavaScript · 129 stars · 6 forks · +53 stars in 24 hours · Trending score 1.98

  12. 12
    HoangP8/tokless

    An effective and efficient coding-agent setup in under 30 seconds: best tools, unified instructions, any OS.

    GitHub · Go · 397 stars · 40 forks · +10 stars in 24 hours · Trending score 1.86

  13. 13
    nadimtuhin/claude-token-optimizer

    Cut the tokens Claude Code loads at session start. CLI that sets up a small CLAUDE.md with on-demand docs, measures startup tokens, and keeps them small.

    GitHub · JavaScript · 665 stars · 90 forks · +6 stars in 24 hours · Trending score 1.78

  14. 14
    ooples/token-optimizer-mcp

    91.5% fewer tokens on tool output on Headroom's own benchmark, where Headroom removes 61.4%. Separately, the same SWE-bench tasks resolved at 0.71x the cost of plain Claude Code. Plus memory across sessions and subscription quota pacing. Claude Code, Codex, Copilot, Gemini and 12 more. Local, MIT.

    GitHub · JavaScript · 594 stars · 75 forks · +8 stars in 24 hours · Trending score 1.77

  15. 15
    activeing123/mcptoon

    One zero-dependency MCP gateway CLI for every server and agent skill. Token optimization, tool discovery and context compression: 71,929 -> 581 tokens (-99.2%, measured), schemas stay out of context. One config for Claude Code, Codex, Cursor, every agent. 561KB, pure Python. | 零依赖 CLI:管所有 MCP 工具与技能,工具发现省 99.2% token。

    GitHub · Python · 444 stars · 26 forks · +12 stars in 24 hours · Trending score 1.73

  16. 16
    zdk/lowfat

    lowfat - slim your command output. strips noise, saves tokens.

    GitHub · Rust · 589 stars · 17 forks · +12 stars in 24 hours · Trending score 1.67

  17. 17
    hunhee98/pluck

    MCP-native code retrieval for AI agents — 84-88% fewer read tokens, BM25F + semantic search, AST chunks, session dedup

    GitHub · Rust · 43 stars · 1 forks · +6 stars in 24 hours · Trending score 1.47

  18. 18
    QuesmaOrg/awesome-ai-tokenomics

    A curated list on AI token economics: what tokens cost, where they get wasted, and how to cut the bill. Tools, benchmarks, papers, and copy-paste configs for the token economy of LLMs and coding agents.

    GitHub · Python · 221 stars · 45 forks · +6 stars in 24 hours · Trending score 1.46

  19. 19
    abruption/aptly

    Model and reasoning recommendations for subagents, powered by the OpenAI Decisions API.

    GitHub · TypeScript · 11 stars · 3 forks · +5 stars in 24 hours · Trending score 1.46

  20. 20
    Green-PT/honey-for-devs

    Honey (I Shrunk the AI) by GreenPT: a cross-tool coding skill that cuts AI coding-agent token usage and LLM API costs — write less code, less prose, and denser agent-to-agent handoffs (−53%, lossless in benchmarks) with no loss of quality. Works with Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Windsurf, Cline & Kiro.

    GitHub · JavaScript · 364 stars · 22 forks · +5 stars in 24 hours · Trending score 1.44

  21. 21
    rakeshnitb23/toolism

    Measure and safely cut the token cost of LLM tool and MCP schemas, with equivalence checking and a CI gate.

    GitHub · Python · 60 stars · 30 forks · +4 stars in 24 hours · Trending score 1.44

  22. 22
    borhen68/TokenTamer

    A drop-in proxy that compresses bloated code context in real-time, cutting LLM API costs by 50–80% without losing what the model actually needs to know.

    GitHub · Python · 129 stars · 22 forks · +6 stars in 24 hours · Trending score 1.42

  23. 23
    redhat-et/ripwire

    The ripgrep of AI context: a zero-dependency C++23 CLI + MCP server for coding agents. Cut agent token costs by finding code without reading the repo, then keep large codebases off the complexity wall: blast radius, tests to run, quality deltas as you write. Every guess labelled, every loss published. Paddle out with a map.

    GitHub · C++ · 2,562 stars · 180 forks · +2 stars in 24 hours · Trending score 1.41

  24. 24
    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