RTK: a CLI proxy that cuts LLM token use by 60-90% on dev commands
RTK is a CLI[1] proxy that reduces LLM token[2] consumption by 60-90% on common development commands. It ships as a single Rust binary with zero dependencies. After installation and a restart, the agent's git status runs as rtk git status, and the agent reads a 3-line summary instead of 40 lines. The compressor covers test runs, diffs, logs and builds, supports over 100 commands and needs no configuration.
Every filter must cut at least 20% of output to ship, and RTK promises that it never blocks a command and never prints more than the original command. The rtk gain command shows the amount saved, and rtk bypass runs any command unfiltered. The README notes that a 90% cut in command output is not a 90% cut in cost.
A newer layer, pipelines, passes heavy reads to a cheaper model and compresses more than bash without breaking the prompt cache[3]. The best pipeline listed cuts total cost by 20.2% in its author's benchmark.
Sources
-
GitHub Trending
rtk-ai/rtk





