RTK - Rust Token Killer
High-performance CLI proxy that reduces LLM token consumption by 60-90% on common dev commands through intelligent output filtering. Save tokens, save money, work faster.
Token Savings in Action
RTK achieves 60-90% token reduction on common development operations:Git Operations
80-92% savingsCompact git status, logs, diffs, and commits
Test Output
90% savingsShow only failures, hide verbose test output
Linting
80-85% savingsGrouped errors, summary stats only
Key Features
Zero Overhead
Less than 10ms startup time. Single Rust binary with no dependencies.
Smart Filtering
Four strategies: filtering, grouping, truncation, and deduplication.
Claude Code Integration
Auto-rewrite hooks for 100% transparent command interception.
Multi-Language Support
JavaScript, Python, Go, Rust - with specialized handlers for each ecosystem.
Token Analytics
Track savings over time with built-in SQLite analytics.
Cross-Platform
Works on macOS, Linux, and Windows with native binaries.
Quick Example
See the difference RTK makes:Without RTK (200+ lines)
With RTK (1 line)
Get Started in Minutes
Verify Installation
Check that RTK is installed correctly:The
rtk gain command should show token savings stats (not “command not found”).Set Up Claude Code Integration
Initialize RTK for automatic command rewriting:This installs a hook that automatically rewrites commands like
git status to rtk git status.Popular Commands
File Operations
rtk ls, rtk read, rtk grep, rtk findGit Commands
rtk git status, rtk git log, rtk git diffTesting
rtk test, rtk cargo test, rtk vitest, rtk pytestLinting
rtk lint, rtk tsc, rtk ruff, rtk golangci-lintCommunity
GitHub
Star the repo, report issues, contribute code
Documentation
Complete guides, API reference, and examples
