Rankings/RTK (Rust Token Killer)

RTK (Rust Token Killer)

rtk-ai/rtk

A lightweight CLI proxy that automatically filters terminal output before AI coding assistants read it, cutting LLM token costs by 60-90%.

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

Stars
39,915
Forks
2,432
Watchers
104
Issues
787
💡

A lightweight CLI proxy that automatically filters terminal output before AI coding assistants read it, cutting LLM token costs by 60-90%.

📂 Developer Tools🤖 AI Related💻 Rust📄 Apache-2.0

AI Summary

🔍

What This Project Does

Simply put, it's a "filter" installed between your terminal and AI coding assistants (like Claude Code or Cursor). When you run commands like git status, ls, or tests, it automatically strips out the noise from the terminal output and feeds only the essential information to the AI.

🔧

What Problems It Solves

The biggest pain point with AI coding assistants today is wasting money and context window on useless data. AI tools will dutifully read thousands of lines of logs, dependency lists, or directory trees you print in the terminal, burning through tokens and AI attention for no reason. RTK intercepts the output right after command execution but before it reaches the AI, drastically compressing the information so you can run the same dev workflow for less.

👥

Who It's For

Developers who frequently use AI coding assistants (e.g., Claude Code, Windsurf, Cursor); users sensitive to AI subscription fees or API token costs; programmers who habitually run Git, tests, or file listings in the terminal.

📋

Typical Use Cases

1. Automatically filter out irrelevant dependency loading info and repetitive logs when running git diff or cargo test.

2. Compress massive tree outputs into clean directory structures when asking AI to analyze your project layout.

3. Keep AI focused on core error messages during debugging, ignoring walls of debug prints.

Key Strengths & Highlights

A single-file Rust binary with zero dependencies; nearly invisible overhead (<10ms latency) after installation; requires zero workflow changes as it acts as a transparent proxy; supports 100+ common dev commands right out of the box.

🚀

Getting Started Requirements

Almost zero. Just one command to install (via Homebrew or a quick script), and it works automatically once your terminal environment variables are set. No coding required, no self-hosting, and no extra API keys needed.

🎯

Purpose

Highly recommended if you heavily rely on AI coding assistants and struggle with token costs or context limits, as it seamlessly saves money and speeds up workflows. However, if you only occasionally use AI for Q&A or rarely run commands in the terminal, its practical benefits will be minimal.

Tech Stack

Project Info

Primary Language
Rust
Default Branch
master
License
Apache-2.0
Created
Jan 22, 2026
Last Commit
1 months ago
Last Push
1 months ago
Indexed
May 2, 2026