# rtk, a command-line proxy that trims command output before AI coding agents read it

> rtk is a command-line proxy that filters output from common developer commands so AI coding agents read fewer tokens.

- Project: rtk by rtk-ai
- List: Built for AI
- Kind: tool
- Works with: Claude Code, GitHub Copilot, Cursor, Gemini CLI, Codex
- Noticed: 88,111 GitHub stars (when we found it)
- Added: 2026-11-28T23:07:58+00:00
- Web page: https://ai-news.ikangai.com/built/rtk/

rtk, which the README expands to Rust Token Killer, sits between an AI coding agent and the shell. When the agent runs commands such as git status, cargo test or ls, a hook rewrites the call to pass through rtk, which compresses the output before the agent reads it. The README says the filters cover more than 100 commands and cut command output by up to 90%. It also says a three-line summary can replace 40 lines of git status. The author describes rtk as a single Rust binary with zero dependencies, and says each filter runs in under 25 ms.

Setup is one command, rtk init -g, which registers the hook for Claude Code. The README lists hooks or plugins for 18 agents, including GitHub Copilot, Cursor, Gemini CLI and Codex, plus rules files for several others. The README is careful about its numbers. Token counts are estimated as bytes divided by four, and a cut in command output is not a cut in total cost. Telemetry is off by default, and rtk gain shows the savings on the user's own machine.

The project also has a commercial side. Pipelines, the optional RTK Proxy and RTK Pro sit on top of the open core. The pipeline engine and the proxy are licensed under BUSL-1.1 rather than Apache-2.0. The README says production use is free, but offering RTK as a commercial product to third parties requires a separate licence. The README also says the bash compressor has been starred by 85k developers and built by more than 200 contributors.

## In the author's words

> The cost reduction engine for AI coding agents.

## When to reach for it

Readers whose agents fill their context with test runs, diffs or logs can use rtk to filter that output before it reaches the conversation. If a filtered result leaves something out, rtk bypass runs the same command and returns the raw output.

## See it

- [rtk](https://github.com/rtk-ai/rtk)
- [Website](https://www.rtk-ai.app)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
