Radar / AI coding tools / rtk
rtk: cut your coding agent's token bill by compressing shell output
A single Rust binary that sits between a coding agent and the shell, compressing noisy command output - git status, test runs, builds - before it reaches the model, claiming 60-90% token savings.
Why it matters
Domain-aware compression of the exact tokens agents waste most: a PreToolUse hook rewrites commands transparently, so the agent never knows its context got 80% smaller.
What you could build with it
An indie developer running a coding agent on a tight API budget could route every shell call through rtk's hook and watch the context window shrink, stretching the same subscription across far more agentic sessions.
Does it hold up?
Usable now: a zero-dependency binary with 100+ supported commands and 87k stars; one independent month-long production run saved 1.5B tokens, though the 60-90% headline figures come from the project's own benchmarks.
Built with rtk
- Token Compression for Claude Code with RTK + Headroomandrewpatterson.dev · Measured month-long production results: 1.5B tokens saved across 26,779 commands, with rtk filtering 1.3B of them.
- The LLM Token Optimization Ecosystem - Part 1: Meet the Toolsblog.gardlt.io · Profiles rtk alongside caveman and headroom, with architecture, limitations and claimed benchmarks.
- RTK: Cut Your AI Coding Bill by 80% With One CLI Tooldev.to · Walkthrough of the proxy, hook setup and per-command compression strategies.
Learn more
First spotted on github: source.
More AI coding tools
Chrome DevTools MCP: give your coding agent a real browserOfficial MCP server from the Chrome team that lets coding agents drive a live Chrome — console, network, traces…coding · JEV 0.82Orca: the agent development environment for running coding-agent fleetsStably AI's open-source desktop app for running many CLI coding agents side by side — Claude Code, Codex, Cursor and…coding · JEV 0.78Skills for Real Engineers: Matt Pocock's agent skills for Claude Code, Codex and CopilotMatt Pocock's public collection of small, composable agent skills — grill-me interviews, TDD loops, bug diagnosis…coding · JEV 0.77Open Code Review: Alibaba's hybrid AI code reviewer, now past 50,000 starsAlibaba's open-source code review CLI (Apache 2.0) pairs deterministic rules with an LLM agent to review git diffs…coding · JEV 0.77Cursor Plugins: an official plugin spec and marketplace for AI coding agentsCursor's official plugin specification and catalogue: plugins bundle skills, subagents, MCP servers, hooks and rules…coding · JEV 0.76Ponytail: the 'laziest senior dev' skill for coding agentsA single SKILL.md that makes coding agents check whether code needs to exist, reuse what the codebase or platform…coding · JEV 0.74
Get the week's best AI launches, plus 3 ideas worth building
One email every Saturday. Ranked by traction, not hype. Free.