RTK (Rust Token Killer)
$ rtk Official Low RiskRTK (Rust Token Killer) intercepts verbose developer commands (git, cargo test, docker, ls, pytest) and compresses their output before reaching AI coding agents. Includes rtk init -g hook installation, rtk gain --daily/--weekly, rtk discover, rtk recall <hash>, and rtk bypass.
brew install rtk rtk operates as a transparent shell/hook proxy (rtk <cmd>) for coding agents; it shrinks existing CLI outputs rather than acting as an MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Transparent non-interactive CLI wrapper with rtk gain, rtk discover, rtk recall, and rtk init -g, though telemetry outputs lean human-readable over --json.
rtk <cmd>,rtk init -g,rtk gain --daily/--weekly,rtk discover,rtk recall
Preserves exit codes and keeps raw outputs retrievable via rtk recall <hash> and rtk bypass, while rtk init -g writes agent hook files.
rtk recall <hash>andrtk bypassprevent lossy blind spots
Single Rust binary via brew install rtk, Cargo git install, or shell script across macOS, Linux, and Windows.
- Homebrew formula
rtkand prebuilt binaries
Directly cuts 60–90% of repetitive shell noise (git, cargo, npm, docker), extending effective context window life.
- Dedicated output compressors for common developer CLIs
Active rtk-ai/rtk repository with dual Apache-2.0 (OSS) / BUSL-1.1 components.
rtk-ai/rtkrepository with frequent updates
Clear rtk-ai.app site and GitHub README explaining supported agents, hooks, and subcommands.
- Official site
rtk-ai.appand GitHub README
Security, Auth & Guardrails
Runs locally; saves compression telemetry and recall hashes in local RTK state directory (~/.local/share/rtk / config).
Free for individual/OSS use under dual Apache-2.0 / BUSL-1.1 licensing.
# RTK (Rust Token Killer) Agent Rules - Use `rtk recall <hash>` or `rtk bypass <cmd>` whenever full uncompressed error logs are needed for debugging. - Inspect `rtk pipeline show` before editing custom compression filters.
Agent-Ready Command Recipes
Safe Read-Only Queries
rtk gain --daily
Reports daily command counts and estimated LLM token savings from local RTK telemetry.
rtk discover
Analyzes recent agent/shell runs to identify high-token commands that RTK can compress.
Controlled Writes & Previews
rtk init -g
Configures global agent hook integration (Claude Code, Codex, Gemini CLI, etc.) to route shell commands through rtk.
Strengths for Agents
- + Cuts 60–90% of noisy test/git/build output before it bloats agent context windows.
- +
rtk recall <hash>recovers full original output if compressed logs hid a clue. - +
rtk init -gwires directly into Claude Code, Codex, Cursor, and Gemini CLI hooks.
Caveats & Pitfalls
- ! Lossy output compression can occasionally hide subtle lines unless
rtk recallorrtk bypassis used. - ! Dual Apache-2.0 / BUSL-1.1 license should be reviewed for commercial redistribution.