← All repos

rtk

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

agentic-codingai-codinganthropicclaude-codeclicommand-line-toolcost-reductiondeveloper-toolsllmopen-sourceproductivityrusttoken-optimization
Browse cluster: Claude AI Agent Frameworks & MCP Tools
1,467commits
140contributors
5languages

Tech stack & purpose

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.

Community & reference links

Languages

Rust
93.7%
Shell
4.2%
TypeScript
1.4%
Python
0.7%
Ruby
0.0%

Contributors (top 30 of 140)