Cut coding-agent terminal noise with rtk
rtk is a free Apache-2.0 CLI proxy that compresses terminal output before it enters an AI coding agent's context window.
What you get from it
What it is
rtk is a command-line proxy for AI-assisted development workflows. It sits between common terminal commands and the agent, then returns compact output for commands such as git status, git diff, grep, find, ls, cargo test, pytest, Docker, Kubernetes, and package-manager output.
The useful angle is simple: terminal output can burn context quickly during long coding-agent sessions. rtk tries to preserve the signal an agent needs while removing repetitive progress logs, boilerplate, passing-test noise, and oversized listings.
Why bookmark it
Homebrew lists rtk as an Apache-2.0 package with stable version 0.43.0 and bottled builds for macOS and Linux. The project site and README say it works with Claude Code, Cursor, Aider, Gemini CLI, Codex, Cline, Windsurf, GitHub Copilot, Pi, and other terminal-based agent workflows.
The strongest first use case is not replacing your shell. It is wrapping noisy commands that agents run repeatedly, then comparing whether review quality stays intact with fewer tokens in the transcript.
Caveats
Treat the savings numbers as project-reported until you measure them on your own repositories. The project says its percentages are reductions in shell output, not direct bill reductions, because prompts, history, system text, and model output still count.
Also review the hook behavior before turning it on globally. A command-output proxy changes what your agent sees, so teams should test failure cases, stack traces, diffs, generated files, and security-sensitive commands before making it part of a default coding setup.
Source links
- rtk website: https://www.rtk-ai.app/
- Homebrew formula: https://formulae.brew.sh/formula/rtk
- GitHub repository: https://github.com/rtk-ai/rtk
Discussion
Share practical experience, questions, or warnings with the community.
Sign in to join the discussion and vote on comments.
Sign in