Public story · 2026-06-28 · source-backed
Install RTK as a global hook and stop paying for noisy Bash output
Story
This is the single highest-leverage spend cut I've found for daily Claude Code users, and it's one command.
Run rtk init --global (or rtk init -g) and it installs a PreToolUse hook in Claude Code that transparently rewrites your Bash calls to their rtk equivalents at the proxy layer, before execution (RTK Docs). So git status quietly becomes rtk git status, your test runner's wall of output gets compressed, grep stops dumping 400 lines into the context window. The agent keeps the same signal. You pay a fraction of the tokens. The claimed range is 60 to 90 percent savings on noisy commands, and zero code changes on your side.
Why this matters more than it sounds: if you run a CLI-driven pipeline that fires hundreds of commands per session, the test output and git noise are a huge chunk of your token spend, and almost none of it carries information the model needs. You're paying full price to feed an agent the same "All checks passed" formatting 50 times a day. I run a daily research pipeline on the Claude CLI and the command output is genuinely a meaningful line item.
This connects to the bigger pattern everyone's circling. CNBC reported enterprise AI spend is rotating away from maximizing token throughput toward cost-efficiency, the "tokenmaxxing to efficiency" shift (CNBC). OpenAI is reportedly weighing drastic token price cuts to win developers back from Claude Code. The whole market is repricing around efficiency rather than raw size, and rtk-ai/rtk trending is the bottom-up version of the same move.
One honest caveat. A transparent rewrite layer between your agent and the shell is a thing you should understand before you trust it globally. Read what it rewrites. But the leverage here is real, and "compress the Bash output the agent never needed in full" is the kind of free win that's been sitting in plain sight.
Related stories
Each link below shares sources, entities, or timing with this story.
Shared entities / Same source domain / Shared topic / Earlier coverage / Tension
Cursor 3 Ditches VS Code for Agent Orchestration. Claude Code Holds 54% Market Share at $1.2B ARR.
Both cover CLAUDE, Claude Code, CLI, OpenAI; reported by the same outlet (github.com); overlapping topics (agent, claude, code).
Shared entities / Same source domain / Shared topic / Earlier coverage
RTK Just Hit 30K Stars Because Everyone's Token Bill Is Out of Control
Both cover Claude Code, CLI, Install RTK; reported by the same outlet (github.com); overlapping topics (claude, code, command, install, output).
rtk Just Made Every Coding Agent 3x More Useful, and It's a Single Rust Binary
Both cover Bash, Claude Code, CLI; reported by the same outlet (github.com); overlapping topics (agent, code, install, output, token).
Shared entities / Shared topic / Earlier coverage
The Terminal Is the New IDE. Every Major Lab Agrees.
Both cover Claude, Claude Code, CLI, OpenAI; overlapping topics (agent, claude, code, same); earlier Claude coverage from 2026-05-24.
Shared entities / Same source domain / Shared topic / Earlier coverage
Anthropic Is Now a $30 Billion-a-Year Business
Both cover Claude, Claude Code, CNBC, OpenAI; reported by the same outlet (cnbc.com); overlapping topics (claude, code).
Skills crossed 60K stars and became the package manager for AI work. Taste is the thing people are buying.
Both cover CLAUDE, Claude Code, CLI; reported by the same outlet (github.com); overlapping topics (agent, claude, install, output).
Lasso Security Publishes Claude Code Attack Research, Then Ships the Open-Source Defense in the Same Repo
Both cover CLAUDE, Claude Code, PreToolUse; reported by the same outlet (github.com); overlapping topics (claude, code, hook, same).
A 54k-star skill that makes Claude talk like a caveman, and the math that deflates it
Both cover Claude, Claude Code; reported by the same outlet (github.com); overlapping topics (agent, claude, code, output, spend).
Source trail
Entities
Provenance
- Canonical issue
- Ramsay Research Agent — June 28, 2026
- AI generated
- no
- Story unit
- 2026-06-28-install-rtk-as-a-global-hook-and-stop-paying-for-noisy-bash-output
- Labels
- source-backed, canonical briefing excerpt