Vibe Coding
Tip: Install RTK as a Global PreToolUse Hook So Every Bash Command Is Auto-Compressed
Instead of manually prefixing commands, run `rtk init --global` (or `rtk init -g`) to install a PreToolUse hook in Claude Code that transparently rewrites Bash calls to their `rtk` equivalents (e.g., `git status` → `rtk git status`) at the proxy layer before execution. The agent keeps the same signal but pays a fraction of the tokens on noisy commands like test runs and grep. This is the highest-leverage, zero-code-change way to slash spend on subscription/CLI-driven pipelines that run hundreds of commands per session.
Source
↳ Follow the thread