Cuts the command output AI coding agents read
open coreApache-2.0self-hostablefree
RTK (Rust Token Killer) is an Apache-2.0 command-line proxy, a single Rust binary, that compresses the output of shell commands before an AI coding agent reads it. After rtk init hooks it into the agent, commands like git status, test runs, diffs, logs and builds run through RTK, which returns a short summary instead of the full output: up to 90% less command output across 100+ commands, in under 25 ms per command, with no configuration. rtk gain shows the tokens saved, rtk discover finds missed savings, and pipelines (shareable files) can go further, such as handing heavy reads to a cheaper model or cleaning API traffic without breaking the prompt cache. It supports 18 coding tools, including Claude Code, GitHub Copilot, Cursor, Gemini CLI, Codex, Mistral Vibe and Factory Droid, through hooks, plugins or rules files. RTK Pro is a paid control layer for companies: a gateway for AI calls with cost tracking, secret and personal data detection, policies and audit.
Ways to install
Package managers
Problems it solves
- Claude Code burns tokens reading long test and build output
- reduce the cost of AI coding agents without changing how I work
- my agent's context window fills up with git and log output
- see how many tokens my coding agent wastes on command output
- track and control AI coding costs across a company's developers
Features
- compresses output of 100+ commands (git, tests, builds, logs, diffs) by up to 90%
- under 25 ms per command, single binary with no dependencies
- rtk init hooks for Claude Code, GitHub Copilot, Cursor, Gemini CLI, Codex, Mistral Vibe, Factory Droid and more (18 tools)
- rtk gain savings dashboard with graphs, history and JSON export
- rtk discover to find missed savings
- shareable pipelines: route heavy reads to cheaper models, clean API traffic without breaking prompt caching
- RTK Pro gateway with cost tracking, secret and personal data detection, policies and audit
Limitations
- Another, unrelated project named rtk exists on crates.io.1
Ways to run it
RTK
RTK Pro
Only in this edition
- gateway for every AI call
- costs by team, person and model
- secret and personal data detection
- policies, team catalog and audit
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
