What problem does it solve?
RTK acts as a fast, self-contained CLI proxy that reduces LLM token consumption by intercepting command output and returning only what's essential for the agent context window. This keeps logs compact and preserves exit codes for CI/CD, while offering a fail-safe fallback to raw output if filtering misbehaves.
Core Features & Use Cases
- Single Rust binary, zero runtime dependencies
- <10ms overhead per command
- Fail-safe: falls back to raw output if the filter breaks
- Preserves exit codes for CI/CD compatibility
Use Case: In a large development workflow, RTK minimizes token usage while keeping commands auditable and compatible with automated pipelines.
Quick Start
Install RTK with your preferred method and run rtk init -g to enable global command rewriting.