Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

RTK (Rust Token Killer)

$ rtk Official Low Risk
rtk-ai · Agent Bridges & Meta · Apache-2.0 / BUSL-1.1 · macos / linux / windows

RTK (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.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install rtk
CLI vs MCP Decision CLI Only

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

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
Trust & Safety 21 / 25

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> and rtk bypass prevent lossy blind spots
Setup & Portability 14 / 15

Single Rust binary via brew install rtk, Cargo git install, or shell script across macOS, Linux, and Windows.

  • Homebrew formula rtk and prebuilt binaries
Utility & Efficiency 15 / 15

Directly cuts 60–90% of repetitive shell noise (git, cargo, npm, docker), extending effective context window life.

  • Dedicated output compressors for common developer CLIs
Maintenance & Lineage 8 / 10

Active rtk-ai/rtk repository with dual Apache-2.0 (OSS) / BUSL-1.1 components.

  • rtk-ai/rtk repository with frequent updates
Docs & Verifiability 8 / 10

Clear rtk-ai.app site and GitHub README explaining supported agents, hooks, and subcommands.

  • Official site rtk-ai.app and GitHub README

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Runs locally; saves compression telemetry and recall hashes in local RTK state directory (~/.local/share/rtk / config).

Side Effects
Read-Only Local Write
Cost & Quotas

Free for individual/OSS use under dual Apache-2.0 / BUSL-1.1 licensing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect token savings across daily sessions
rtk gain --daily

Reports daily command counts and estimated LLM token savings from local RTK telemetry.

Discover noisy commands in recent shell history
rtk discover

Analyzes recent agent/shell runs to identify high-token commands that RTK can compress.

Controlled Writes & Previews

Install global RTK hooks for coding CLIs
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 -g wires directly into Claude Code, Codex, Cursor, and Gemini CLI hooks.

Caveats & Pitfalls

  • ! Lossy output compression can occasionally hide subtle lines unless rtk recall or rtk bypass is used.
  • ! Dual Apache-2.0 / BUSL-1.1 license should be reviewed for commercial redistribution.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI