token-optimization repositories

Discover trending repositories tagged token-optimization, ranked by recent growth and activity.

  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 repository with 58,776 stars and 3,617 forks.

    Trending score: 4.88; stars gained: +495; forks gained: +31.

    Language: Rust

    Topics: agentic-coding, ai-coding, anthropic, claude-code, cli, command-line-tool

  2. 2. chopratejas/headroom

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

    GitHub repository with 12,036 stars and 785 forks.

    Trending score: 3.28; stars gained: +2,887; forks gained: +157.

    Language: Python

    Topics: agent, ai, anthropic, claude-code, compression, context-engineering

  3. 3. yvgude/lean-ctx

    LeanCTX — the Context OS for AI development. One local binary that compresses, remembers, routes, and verifies every token between your code and the model. 63 MCP tools, 10 read modes, up to 99% token savings. Works with Cursor, Claude Code, Copilot, Windsurf, Codex, Gemini.

    GitHub repository with 2,443 stars and 250 forks.

    Trending score: 1.49; stars gained: +36; forks gained: +4.

    Language: Rust

    Topics: ai, cursor, llm, mcp, rust, token-optimization

  4. 4. edouard-claude/snip

    CLI proxy that reduces LLM token usage by 60-90%. Declarative YAML filters for Claude Code, Cursor, Copilot, Gemini. rtk alternative in Go.

    GitHub repository with 288 stars and 32 forks.

    Trending score: 0.81; stars gained: +4; forks gained: +1.

    Language: Go

    Topics: llm, token-optimization, ai-coding, ai-tools, aider, claude-code

  5. 5. jnbno1163/LG-token-saver

    Save 87% token usage for Claude Code. Zero install. 8 rules covering input+output+context. 6 months verified.

    GitHub repository with 19 stars and 4 forks.

    Trending score: 0.70; stars gained: +4; forks gained: +1.

    Topics: ai-tools, anthropic, claude, claude-code, claude-code-skill, cost-optimization

  6. 6. johunsang/semble_rs

    Fast, AI-agent-native code search in Rust — hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & impact analysis. Drop-in replacement for grep/cat/read/ls in Claude Code, Codex, Cursor, Aider, OpenHands.

    GitHub repository with 121 stars and 16 forks.

    Trending score: 0.69; stars gained: +1; forks gained: +0.

    Language: Rust

    Topics: ai-agent, bm25, claude-code, cli, code-search, codex

  7. 7. clay-good/OpenLore

    openlore provides persistent architectural memory for AI coding agents by turning codebases into queryable knowledge graphs featuring static analysis, living specs, automated drift detection, and graph-native MCP tools to eliminate context decay and drastically slash orientation token costs.

    GitHub repository with 157 stars and 20 forks.

    Trending score: 0.60; stars gained: +3; forks gained: +0.

    Language: TypeScript

    Topics: developer-tools, openspec, software-architecture, static-analysis, adr, agentic-workflows

  8. 8. MasuRii/pi-rtk-optimizer

    Pi extension that optimizes RTK command rewriting and tool output compaction for the coding agent.

    GitHub repository with 142 stars and 16 forks.

    Trending score: 0.48; stars gained: +2; forks gained: +0.

    Language: TypeScript

    Topics: pi-coding-agent, pi-extension, rtk, token-optimization, tui, command-rewrite

  9. 9. capitalparser/notebooklm-wiki-pipeline

    Turn Google Drive PDFs into Obsidian wiki notes via NotebookLM MCP without loading full PDFs into Claude context

    GitHub repository with 66 stars and 6 forks.

    Trending score: 0.28; stars gained: +1; forks gained: +0.

    Language: Python

    Topics: claude-code, google-drive, knowledge-management, mcp, notebooklm, obsidian

  10. 10. reshaprio/reshapr

    The open source, no-code MCP Server for AI-Native API Access

    GitHub repository with 102 stars and 16 forks.

    Trending score: 0.21; stars gained: +0; forks gained: +0.

    Language: Java

    Topics: agent-tools, ai-agents, ai-gateway, ai-infrastructure, ai-integration, ai-native

  11. 11. DFKHelper/token-goat

    Token burn reducer for Claude Code, Codex, Gemini CLI, Cline, Windsurf, Aider, Cursor, Copilot, and more — image shrinking, session-aware read hints, 130 bash output filters, compact manifest injection, and much more.

    GitHub repository with 10 stars and 1 forks.

    Trending score: 0.04; stars gained: +0; forks gained: +0.

    Language: Python

    Topics: ai-coding, anthropic, claude-code, cli-tool, codex, codex-cli

  12. 12. hunhee98/pluck

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

    GitHub repository with 35 stars and 0 forks.

    Trending score: 0.04; stars gained: +0; forks gained: +0.

    Language: Rust

    Topics: ai-agents, bm25, claude-code, cli, code-intelligence, code-search

  13. 13. amahi2001/python-token-killer

    Minimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight.

    GitHub repository with 14 stars and 1 forks.

    Trending score: 0.04; stars gained: +0; forks gained: +0.

    Language: Python

    Topics: cost-reduction, developer-tools, llm, python, token-optimization, agentic-workflow

  14. 14. skibidiskib/ai-codex

    Generate a compact codebase index for AI assistants — saves 50K+ tokens per conversation

    GitHub repository with 264 stars and 23 forks.

    Trending score: 0.03; stars gained: +0; forks gained: +0.

    Language: TypeScript

    Topics: ai-coding, claude, claude-code, codebase-index, cursor, developer-tools

  15. 15. rjkaes/trueline-mcp

    Smarter reads, safer edits. An MCP plugin that cuts token usage and catches editing mistakes before they hit disk. Supports Claude Code, Gemini CLI, GitHub Copilot, and Codex.

    GitHub repository with 21 stars and 4 forks.

    Trending score: 0.03; stars gained: +0; forks gained: +0.

    Language: TypeScript

    Topics: agentic-coding, ai-coding, anthropic, ast, claude-code, developer-tools

  16. 16. markadelnawar/json-schema-sketch

    Infer compact schema descriptions from any JSON value. For AI/LLM tool-use contexts optimization..

    GitHub repository with 9 stars and 0 forks.

    Trending score: 0.03; stars gained: +0; forks gained: +0.

    Language: TypeScript

    Topics: agents, context, json, llm, llm-inference, token

  17. 17. pcx-wave/gemini-skill

    Claude Code skill — delegate coding tasks to Gemini CLI and supervise via git diff

    GitHub repository with 9 stars and 0 forks.

    Trending score: 0.02; stars gained: +0; forks gained: +0.

    Language: Shell

    Topics: claude, claude-code, claude-skill, claude-skill-recommended, claude-skills, gemini-cli

  18. 18. EA-Studio-SHARK/lean-code

    🔧 AI Coding Agent Token Optimizer | Skills for Claude Code, Cursor, Windsurf, Codex | Save 40-80% tokens & costs | 省Token神器

    GitHub repository with 6 stars and 0 forks.

    Trending score: 0.01; stars gained: +0; forks gained: +0.

    Language: JavaScript

    Topics: ai-agent, ai-coding, ai-tools, anthropic, claude, claude-code