Rtk: CLI proxy that reduces LLM token consumption by 60-90% on common dev commands
rtk-ai/rtkCLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Evaluate and collect.
What the project says.
The cost reduction engine for AI coding agents. Install it and forget it, then go as far as you want with pipelines. Install • Pipelines • Docs • Website • RTK Pro • Discord English • Francais • 中文 • 日本語 • 한국어 • Espanol • Português ① Install & forget: up to 90% less command output. Test runs, diffs, logs and builds are compressed before your agent reads them. 100+ commands, under 25 ms per command, no config, nothing changes in how you work. rtk gain shows what you saved. ② Go further with pipelines, as far as you take it. Hand heavy reads to a cheaper model, compress more than bash, clean the API traffic without breaking the prompt cache. One agent-agnostic file: start from a built-in, install one someone shared, or write and share your own. The community built the bash compressor 85k developers starred. Now it is building pipelines: the best one listed today cuts total cost by 20.2% in its author's benchmark. Agents across the whole company? RTK Pro is the control layer for every AI agent: one gateway for every AI call, costs, secrets and personal data, policies, team catalog, audit. Discover RTK Pro ↓ --- Install & forget macOS, and Linux with Homebrew Windows, with winget Linux, macOS, WSL, or Git Bash on Windows, with the install script Then plug it into your agent Restart your agent. That's it: when it runs git status , RTK runs rtk git status and the agent reads a 3-line summary instead of 40 lines. Nothing to learn, nothing to call, and upgrading RTK never changes this. Another project named "rtk" exists on crates.io. Check you have this one: rtk gain must show the savings dashboard, not "command not found". Cargo, pre-built binaries, native Windows, WSL and uninstall: Installation guide · per-agent setup and --dry-run : Quick Start Measure it: rtk gain Every command RTK touches is counted on your machine. One command shows what it saved, today and since you installed it. What the numbers mean. The compressor reduces the command output your agent reads, which is one part of the input tokens, which are one part of the bill: a 90% cut in command output is not a 90% cut in cost. Token counts are estimated as bytes / 4 , so the percentages are reliable and the absolute numbers are approximate. After a week of data, rtk gain ends with one line about RTK Pro, at most once a day and only on a terminal. pro hint = false under [display] in config.toml turns it off. Full explanation: How RTK Savings Work · attribution, the live dashboard and export formats: Token Savings Analytics Out of the box: the bash compressor The part 85k developers starred. Built by 200+ contributors, written against real command output, and every filter has to cut at least 20% to ship. Operation What the agent reads ----------- ---------------------- cargo test / npm test / pytest / go test Failures only, with their assertion; passing tests collapsed to a count git status / git diff / git log Compact status, reduced diff context, one line per commit git add/commit/push A confirmation line instead of progress output ls / tree / grep / rg Trees with counts, matches grouped by file, long lines cut ruff check / eslint / cargo clippy Grouped by rule and file docker ps / kubectl Essential fields only 100+ commands across Git, GitHub CLI, Cargo/Rust, JavaScript (npm, pnpm, vitest, jest, tsc, Next.js, Angular, Playwright, Prisma), Python (ruff, pytest, mypy, pip), Go (go test, golangci-lint), Ruby, .NET, JVM (Gradle, Maven), PHP, Docker, Kubernetes, AWS, Terraform, and the file/search builtins. Every command and its filter: What RTK Optimizes Three promises - Never blocks. If a filter fails, you get the raw output, and the command's exit code is passed through unchanged. - Never worse. RTK never prints more than the command did. - Nothing hidden. Output that is cut says where the full version is, and rtk bypass runs any command unfiltered, still tracked in rtk gain : The hook rewrites shell commands. Built-...
Continue the conversation.
Comments, one-level replies, owner highlights, and discussion notifications are included with ORYNT membership.
Sign in with GitHub