RTK
The most recommended of 3 prompt compressors
Wraps shell commands to trim output for AI coding agents, saving tokens for some users, though critics say savings are small and unmeasured.
Wraps shell commands to trim output for AI coding agents, saving tokens for some users, though critics say savings are small and unmeasured.
87 people gave an opinion
- recommend it
- 43
- criticize it
- 44
- approval share
- 49%
Recommended in 8 of 13 months
- November 2025: not recommended
- December 2025: not recommended
- January 2026: not recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: not recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Owned for 1 month
Median of the 4 owners who said how long they have had it.
Each square is one year.
Why it doesn’t carry the badge
- 43 people recommend itNeeds 10 or more, met.
- 0.9 recommenders for every criticNeeds 2 to 1 or better, not met.
- Recommended in 8 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Cuts command output tokens
“on my Mac I've shaved off roughly 51k input tokens, and 23k output tokens, and saved an average of 3 seconds per command”
Comment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK” “tools like RTK, Headroom, caveman mode and others do reduce input and output tokens that need to be processed”
Comment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK” “It uses hooks to replace certain commands with optimized ones and helps reduce the number of input tokens”
Comment from 31 Mar 2026 in “Ask HN: Gemini CLI vs. Claude Code” - Comment from 16 Apr 2026 in “Claude Opus 4.7”
- Comment from 10 Jun 2026 in “Is Grep All You Need? How Agent Harnesses Reshape Agentic Search”
- Comment from 13 Mar 2026 in “Prompt-caching – auto-injects Anthropic cache breakpoints (90% token savings)”
Reports visible token savings
“I just looked at the RTK gain, and it seemed to do the job.”
Comment from 28 Oct 2026 in “The concept of wrapping your CLIs to make them more token-efficient [video]” “That's significant token budget reclaimed.”
Comment from 11 Feb 2026 in “Show HN: RTK – Wrap your CLI commands, save 60-90% of tokens in AI coding agents” “In 1 week. Numbers speak for themselves.”
Comment from 11 Feb 2026 in “Show HN: RTK – Wrap your CLI commands, save 60-90% of tokens in AI coding agents” - Comment from 12 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”
Works with coding agents
“It uses hooks to replace certain commands with optimized ones and helps reduce the number of input tokens”
Comment from 31 Mar 2026 in “Ask HN: Gemini CLI vs. Claude Code” “for agentic coding e.g. Claude Code I found this useful”
Comment from 9 Jun 2026 in “Ask HN: What works for cutting AI token costs?” “I believe RTK would work well in that use case.”
Comment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree” - Comment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”
What people warn about
Each mark is one comment
Savings small or unproven
“I tested both for weeks and they didn't really saved that much money for Opus model.”
Comment from 10 May 2026 in “Teaching Claude Why” “RTK saves between 2% and 7% on costs, it highly depends of your usage”
Comment from 29 Oct 2026 in “The concept of wrapping your CLIs to make them more token-efficient [video]” “I doubt it's saving much, but the quality of the work feels similar.”
Comment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK” - Comment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”
- Comment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”
- Comment from 19 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”
Errors on unsupported commands
“I just ran the steps to reproduce and got `Error: prettier produced no output` on rtk (0.42.2)”
Comment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK” “it gives an error message rather than sending the full output of the command instead”
Comment from 17 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep” “always uses RTK unless RTK falls apart running a tool it does not support”
Comment from 17 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep” - Comment from 17 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”
Confuses agents, causing loops or retries
“some people see that changing how commands output stuff can confuse some models”
Comment from 16 Apr 2026 in “Claude Opus 4.7” “my agent got stuck in a loop with a faulty RTK command and could not escape it since RTK hard overwrites anything automatically”
Comment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep” “I've watched agents go around in circles or use ridiculous workarounds after being confused by rtk output.”
Comment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK” - Comment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”
- Comment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”
Can add turns and cost
“Sure your saved 70% tokens on that tool call, but nothing in the metrics says whether you ran 3 tool calls instead of 1.”
Comment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK” “the number of turns to complete went up so the overall cost of the conversation was higher”
Comment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep” “agents on average perform *more* turns and use *more* tokens to accomplish one task”
Comment from 6 Sep 2026 in “Portal by Spotify cut my Claude Code token usage by 90%”
Other prompt compressors people recommend
The two most recommended other prompt compressors, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| RTKThis page | 43 | 44 | 49% | 8 | 1 mo4 owners | — |
| Sibyllinesoft Scribe | 7 | 1 | 88% | 5 | — | — |
| AgentReady | 5 | 1 | 83% | 3 | — | — |
What people said
40 of the 105 comments that mention it, newest first. Each links to the original comment.
“RTK saves between 2% and 7% on costs, it highly depends of your usage”
“I just looked at the RTK gain, and it seemed to do the job.”
“RTK has save me a lot of usage there.”
“since rtk defaults to persisting that savings stat, it breaks sandboxing”
“I kept seeing the model get confused in the reasoning text and retry a command bypassing rtk”
“rtk gain mechanism is oversimplified. 1 token != 4 bytes for the standard prompt / context window at coding agent.”
“I believe RTK would work well in that use case.”
“I wrote article about it couple months ago that I didn't believe it works”
“tell your agent to use its quiet mode or rtk”
“agents on average perform *more* turns and use *more* tokens to accomplish one task”
“we're all at a loss for how effective rtk is, because there are no benchmarks measuring its performance”
“setting up a combination of both tools could reduce token consumption by 50%”
“I've watched agents go around in circles or use ridiculous workarounds after being confused by rtk output.”
“tools like RTK, Headroom, caveman mode and others do reduce input and output tokens that need to be processed”
“on my Mac I've shaved off roughly 51k input tokens, and 23k output tokens, and saved an average of 3 seconds per command”
“Sure your saved 70% tokens on that tool call, but nothing in the metrics says whether you ran 3 tool calls instead of 1.”
“forking these tools, benchmarking, verifying the output quality matches our needs”
“I just ran the steps to reproduce and got `Error: prettier produced no output` on rtk (0.42.2)”
“I doubt it's saving much, but the quality of the work feels similar.”
“although it seems an interesting idea, I am pretty sure there are many caveats”
“You can minimize the token waste using rtk as a proxy”
“for agentic coding e.g. Claude Code I found this useful”
“the model got stuck just running and rerunning and rerunning in a loop, until I killed it”
“using their default setup which is to prepend rtk to everything is more trouble than its worth”
“my agent got stuck in a loop with a faulty RTK command and could not escape it since RTK hard overwrites anything automatically”
“the number of turns to complete went up so the overall cost of the conversation was higher”
“when it doesn't support eg. a cli flag of find, it gives an error message rather than sending the full output”
“it gives an error message rather than sending the full output of the command instead”
“always uses RTK unless RTK falls apart running a tool it does not support”
“I tested both for weeks and they didn't really saved that much money for Opus model.”
“To reduce token count on command outputs you can also use RTK”
“some people see that changing how commands output stuff can confuse some models”
“tools that can help to reduce token usage cost so you can get more prompts in within your same plan”
“It uses hooks to replace certain commands with optimized ones and helps reduce the number of input tokens”
“quite useful for reducing token usage”
“seems to be a good balance between culling out of context and not just killing everything”
“In 1 week. Numbers speak for themselves.”
“That's significant token budget reclaimed.”
“Biggest surprise was rtk find — directory listings are insanely wasteful.”
“This is a "scratching my own itch" project born from using Claude-code.”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.