rtk

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

88.9k
Stars
+39.2k
Gained
79.0%
Growth
Rust
Language

💡 Why It Matters

This CLI proxy reduces the token consumption of large language models (LLMs) by compressing command output before the agent reads it, cutting output size by 60-90% on common developer commands like git status. It works as a single Rust binary with zero dependencies and requires no configuration, intercepting over 100 commands in under 25 milliseconds each. This approach differs from typical LLM cost reduction tools that focus on prompt engineering or model selection, as it optimises the input data stream itself. Backend engineers, DevOps, and ML teams integrating LLMs into developer workflows will benefit most. Despite 86,000 stars and recent commits, it shows no meaningful growth signal yet, suggesting a niche but active user base. It is not suitable if you need a fully managed or cloud-native cost-control platform, where alternatives like OpenAI's built-in usage controls or LangChain cost management might be better choices.

🎯 When to Use

Use this tool when you want to reduce LLM token costs by compressing command outputs locally without changing your workflow or agent setup. Consider alternatives like LangChain or LlamaIndex if you require more integrated prompt management or multi-model orchestration rather than command output compression.

👥 Team Fit & Use Cases

Typically deployed in developer environments where AI agents interact with shell commands and version control, such as internal AI assistants summarising git diffs or build logs. It fits teams building agentic coding tools or CLI-based AI workflows that need to reduce token usage without modifying agent prompts.

🎭 Best For

🏷️ Topics & Ecosystem

agentic-coding ai-coding anthropic claude-code cli command-line-tool cost-reduction developer-tools llm open-source productivity rust token-optimization

📊 Activity

Latest commit: 2026-12-05. Over the past 197 days, this repository gained 39.2k stars (+79.0% growth). Activity data is based on daily RepoPi snapshots of the GitHub repository.