Wednesday, September 16, 2026

RTK

80,635Must watch

Rust CLI that sits in front of bash for coding agents and shrinks noisy command output before it hits the model context.

RTK

Why it matters

RTK (Rust Token Killer) is a single zero-dep Rust binary that rewrites or proxies common dev commands and returns compact output. It understands 100+ tools — git, test runners, linters, docker, package managers — and applies filtering, grouping, truncation, and dedupe per command type. Install once, hook your agent, and plain git status becomes a tight summary instead of a wall of text.

Most agent token burn is not the prompt — it is fat git diffs, full test logs, and long ls dumps the model barely needs. RTK cuts that shell noise at the source so Claude Code, Codex, Cursor, and friends stay sharper and cheaper without a new model or a compression gateway.

How it works

Install via brew install rtk or the install script, then run rtk init for your tool (Claude Code, Codex, Cursor, Gemini, Hermes, and more). Hooks rewrite Bash tool calls to rtk equivalents before they run; the agent only sees the filtered result. You can also call rtk git status, rtk test cargo test, or rtk read explicitly when built-in Read/Grep paths skip the shell hook.

Not another LLM compression model or routing proxy. RTK is a deterministic command-output layer under your existing agent — milliseconds of overhead, no extra API, honest about savings being bash tokens not the whole bill. Complementary to semantic gateways like Paritok that compress tool payloads higher up the stack.

Similar tools

agentsclitokenscodingrustdevtools
Source ↗

Via github

X