About this project
RTK is a single Rust binary that intercepts shell commands and compresses their output before it reaches an LLM's context. It employs four primary strategies: smart filtering of noise, grouping of similar items, truncation of redundant data, and deduplication of repeated log lines.
Key capabilities include:
- Support for 100+ common commands across various categories, including Git, GitHub CLI, test runners (pytest, cargo test, jest), build tools (tsc, ruff), package managers (pnpm, pip), and cloud/container tools (AWS, Docker, kubectl).
- Auto-rewrite hooks for 17 AI coding tools, including Claude Code, GitHub Copilot, Cursor, Windsurf, and Gemini CLI, allowing transparent command interception.
- Smart file reading and directory listing that provides structure and signatures rather than full bodies.
- Token savings analytics via the `rtk gain` command to track reduction statistics.
- A 'tee' system that saves full unfiltered output to logs upon command failure for debugging purposes.
RTK is cross-platform, supporting macOS, Linux, and native Windows (including WSL).
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.