Skills
RTK (Rust Token Killer) Reduces Claude Code Token Costs 60-90% via Single-Command PreToolUse Hook — 54K Stars, Supports 100+ Commands
RTK is a single Rust binary CLI proxy that intercepts Bash tool calls and compresses output before it reaches the LLM context window. Running `rtk init -g` installs a PreToolUse hook in ~/.claude/hooks/ that transparently rewrites commands — git status strips verbose suggestion text, cargo test keeps only summaries plus failures, find returns token-optimized trees. Typical 30-minute Claude Code sessions drop from ~150K tokens to ~45K. Run `rtk gain` to see exact savings. Also works with Cursor, Windsurf, Copilot CLI, and Gemini CLI.
Source
↳ Follow the thread