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,652 stars · 5,629 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,696 stars · 6,328 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,056 stars · 571 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,073 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,290 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 · 443 stars · 31 forks · +31 stars in 24 hours · Trending score 3.04

  8. 8
    AxiomCodeAI/axiomcodegraph

    Turn any codebase into a knowledge graph grounded in formal methods. Your AI agents get exact answers for any code-related task, ensure correctness, and optimize time and token usage.

    GitHub · TypeScript · 788 stars · 99 forks · +15 stars in 24 hours · Trending score 2.79

  9. 9
    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 · 852 stars · 54 forks · +129 stars in 24 hours · Trending score 2.30

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

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

  12. 12
    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 · 113 stars · 5 forks · +53 stars in 24 hours · Trending score 1.98

  13. 13
    HoangP8/tokless

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

    GitHub · Go · 394 stars · 39 forks · +10 stars in 24 hours · Trending score 1.86

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

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

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

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

  18. 18
    abruption/aptly

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

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

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

  20. 20
    rakeshnitb23/toolism

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

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

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

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

  23. 23
    vibe-any/dsh-plugin-save-token

    A DeepSeek Harness (dsh) dynamic plugin that cuts token cost without cutting model intelligence

    GitHub · JavaScript · 91 stars · 6 forks · +1 stars in 24 hours · Trending score 1.36

  24. 24
    archid21/rightsize

    Make every Claude token count. rightsize picks the right model and effort for each prompt, while keeping cache and context costs low. It learns how you work and gets better over time.

    GitHub · TypeScript · 49 stars · 14 forks · +1 stars in 24 hours · Trending score 1.32