CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
rtk (Rust Token Killer) is a CLI proxy written in Rust that reduces LLM token consumption by 60–90% on common development commands by filtering and compressing command outputs before they reach an LLM context. It wraps tools like git, cargo, npm, pnpm, go, ruff, and others, routing commands via a Clap enum to specialized filter modules that execute underlying commands and compress their output, with token savings tracked in SQLite. The project is a fork addressing critical fixes for git argument parsing and modern JavaScript stack support including pnpm, vitest, Next.js, TypeScript, Playwright, and Prisma. It ships as a single Rust binary with zero dependencies and includes integration hooks for multiple AI coding agents including Claude Code, Copilot, Cursor, Hermes, Cline, Codex, Kilo Code, OpenCode, and Pi.