CLI proxy that compresses shell output before it reaches the agent context (typically 60–90% fewer tokens). Source: https://github.com/rtk-ai/rtk
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
rtk gain # must show savings stats (not "command not found")Verify it is Rust Token Killer (rtk-ai/rtk), not Rust Type Kit.
Prefer rtk for verbose shell commands:
rtk git status
rtk git log -n 20
rtk git diff
rtk pytest -q
rtk ruff check .
rtk ls .Meta:
rtk gain # savings dashboard
rtk gain --history
rtk proxy <cmd> # raw passthrough (still tracked)rtk init -g --auto-patch # Claude Code
rtk init -g --agent cursor --auto-patch # Cursor (global hooks)
rtk init --codex # project: RTK.md + AGENTS.md ref
rtk init --copilot # project: .github/copilot-instructions.md + hooksRestart the agent after hook install.