This week's tip of the week is RTK.
Coding agents run a lot of terminal commands, and those commands can produce a lot of noise.
A test suite might print hundreds of passing tests when the agent only needs to see the two that failed. git push produces progress messages that rarely matter. Logs repeat the same lines over and over.
All of that output gets added to the agent’s context window.
RTK filters and compresses terminal output before the agent reads it. It supports more than 100 commands, including Git, GitHub CLI, npm, Docker, Kubernetes, test runners, linters, and build tools.
RTK supports macOS, Linux, and Windows. Check the official installation instructions for all the available options.
I’m on macOS. Homebrew was a couple of releases behind when I installed RTK, so I used the official installer:
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/master/install.sh | shOnce installed, configure RTK for your preferred coding harness. For example, Claude Code has a transparent hook integration:
❯ rtk init -g --agent claude
RTK hook registered (global).
Command: rtk hook claude
RTK.md: /Users/nicktaylor/.claude/RTK.md (awareness: default)
CLAUDE.md: @RTK.md reference added
settings.json: hook already present
Restart Claude Code. Test with: git statusRTK also supports Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf, and several others. The setup and integration method vary, so check the supported coding harnesses for the appropriate command.
You can see how much output RTK has removed by running rtk gain:
❯ rtk gain
RTK Token Savings (Global Scope)
════════════════════════════════════════════════════════════
Total commands: 29
Input tokens: 249.0M
Output tokens: 27.5K
Tokens saved: 248.9M (100.0%)
Total exec time: 10.7s (avg 369ms)
Efficiency meter: ████████████████████████ 100.0%
By Command
────────────────────────────────────────────────────────────────────────
# Command Count Saved Avg% Time Impact
────────────────────────────────────────────────────────────────────────
1. rtk rg 2 248.9M 100.0% 4.4s ██████████
2. rtk ls -la /Users/nic... 1 403 71.6% 4ms ░░░░░░░░░░
3. rtk ls -la 1 196 78.4% 6ms ░░░░░░░░░░
4. rtk ls -la /Users/nic... 1 10 24.4% 4ms ░░░░░░░░░░
5. rtk:toml jq -e .hooks... 1 0 0.0% 9ms ░░░░░░░░░░
6. rtk read 1 0 0.0% 0ms ░░░░░░░░░░
7. rtk proxy which rtk 1 0 0.0% 3ms ░░░░░░░░░░
8. rtk proxy sh -c strin... 1 0 0.0% 24ms ░░░░░░░░░░
9. rtk proxy sh -c print... 1 0 0.0% 2ms ░░░░░░░░░░
10. rtk proxy sh -c ls -l... 1 0 0.0% 7ms ░░░░░░░░░░
────────────────────────────────────────────────────────────────────────That result is dominated by two unusually large rg commands, so do not read it as “RTK cut my total AI usage by 100%.” RTK estimates token counts from command output, and terminal output is only one part of an agent’s context.
Still, less terminal garbage with RTK means more room for the context that matters.
That's it! Short and sweet. Until the next one!

