Discover and explore top open-source AI tools and projects—updated daily.
rtk-aiCLI proxy for massive LLM token reduction
Top 29.1% on SourcePulse
This project provides a high-performance CLI proxy designed to drastically reduce Large Language Model (LLM) token consumption for developers. By filtering and compressing the output of common development commands before they are sent to an LLM, it offers significant cost savings and faster processing for tasks involving code analysis and generation. The primary benefit is a 60-90% reduction in token usage for typical developer workflows.
How It Works
RTK operates by intercepting and processing command-line outputs using techniques such as smart filtering to remove noise, grouping similar items, truncating redundant information, and deduplicating repeated lines. The recommended "hook-first" installation method integrates with Claude Code via a PreToolUse hook, transparently rewriting commands (e.g., git status to rtk git status) before execution. This ensures that LLMs receive highly condensed, relevant information without the user or the LLM needing to explicitly invoke RTK commands.
Quick Start & Requirements
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh (installs to ~/.local/bin).rtk --version and rtk gain after installation to confirm the correct "Rust Token Killer" version is installed and not the conflicting "Rust Type Kit" project.cargo install). The primary installation method has zero explicit dependencies.rtk init --global and follow prompts to patch ~/.claude/settings.json to register the RTK hook.Highlighted Details
ls, git, grep, and testing frameworks.rtk gain and rtk discover commands, including historical data and opportunity scanning.Maintenance & Community
The project maintains a public issue tracker on GitHub for bug reports and feature requests. A detailed security review process is outlined for external contributions, involving automated checks and manual audits. Contact is available via contact@rtk-ai.app.
Licensing & Compatibility
The project is released under the MIT License, which generally permits broad use, modification, and distribution, including for commercial purposes, with minimal restrictions.
Limitations & Caveats
A significant caveat is the potential for name collision with another project also named "rtk" (Rust Type Kit); users must verify the correct installation via rtk gain. The recommended Claude Code integration requires modifying ~/.claude/settings.json, and users must restart Claude Code after installation for the hook to take effect. Actual savings are project-dependent.
2 days ago
Inactive
gorilla-llm
QwenLM