rtk-ai/rtk
A Rust command-line tool that sits between a coding agent and the shell and trims command output before the agent reads it. It keeps failing tests only, groups diffs by file and drops repeated headers. It installs hooks for several coding agents, so the trimming runs without the agent asking, and it reports how much it cut.
Not as claimedTested by us
In my own A/B on 6 November 2026 (10 headless runs each way, same tasks), runs with rtk cost $4.20 against $2.94 without it, with the same answers. The same day it returned wrong output for wc -l and grep -v. Its own savings counter is not a measure of your bill.
How we know
We tested it ourselves and wrote down the result.
Good for
People who run coding agents all day in a terminal and pay for the input tokens of long command output.
Not for
Cases where the agent needs the full raw output, since trimming can drop lines that matter. Its savings figures are estimated from byte counts, not a real tokenizer.
Repo
- Stars
- 86,543
- License
- Apache-2.0Use it, change it, sell it, closed-source included. Keep the author's copyright notice.
- Maturity
- active
- Last push
- 2026-11-14
- Last checked
- 2026-11-14
Tiếng Việt