RTK: The Open-Source Tool That Makes Claude Code 90% Cheaper
Watch on TikTok
Someone just open-sourced a tool called RTK that sits between your AI coding assistant and the shell, compressing every command output before it hits context. The result: massive token savings on every run, with the creator reporting 88.9% efficiency across over 15,000 commands.
How It Works
RTK acts as a middleware layer between your AI agent and the terminal. It auto-rewrites common commands like git push, cargo test, ls, and grep, compressing their output before it consumes your context window. The tool shows detailed stats including per-command token savings, with some commands hitting 100% compression.

Compatibility
RTK is 100% open source and works across the major AI coding tools: Claude Code, Cursor, Gemini, Codex, and Copilot. It is not locked to any single provider or platform.

Key Takeaways
- RTK compresses shell output before it hits your AI's context window
- Reports show 88.9% token savings across 15,000+ commands
- Works with Claude Code, Cursor, Gemini, Codex, and Copilot
- Fully open source and available on GitHub
Resources
- RTK on GitHub -- Open-source shell output compression tool for AI coding
- @whitewhoadie on TikTok -- AI development tool highlights
Published May 12, 2026. Writeup generated from a favorited TikTok.