Hacker ApprovedDepartments

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%
Each figure is one person. RecommendsCriticizes

Recommended in 8 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. 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”
  • 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”
  • 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”

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”
  • 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”
  • 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”
  • 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.

RTK compared with 2 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
RTKThis page434449%81 mo4 owners—
Sibyllinesoft Scribe7188%5——
AgentReady5183%3——
See all 3 prompt compressors, ranked

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”

RecommendsComment from 29 Oct 2026 in “The concept of wrapping your CLIs to make them more token-efficient [video]”

“I just looked at the RTK gain, and it seemed to do the job.”

RecommendsComment from 28 Oct 2026 in “The concept of wrapping your CLIs to make them more token-efficient [video]”

“RTK has save me a lot of usage there.”

RecommendsComment from 12 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”

“since rtk defaults to persisting that savings stat, it breaks sandboxing”

MixedComment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”

“I kept seeing the model get confused in the reasoning text and retry a command bypassing rtk”

CriticizesComment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”

“rtk gain mechanism is oversimplified. 1 token != 4 bytes for the standard prompt / context window at coding agent.”

CriticizesComment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”

“I believe RTK would work well in that use case.”

RecommendsComment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”

“I wrote article about it couple months ago that I didn't believe it works”

MixedComment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”

“tell your agent to use its quiet mode or rtk”

RecommendsComment from 11 Sep 2026 in “RTK reports token savings, but our cost benchmarks disagree”

“agents on average perform *more* turns and use *more* tokens to accomplish one task”

CriticizesComment from 6 Sep 2026 in “Portal by Spotify cut my Claude Code token usage by 90%”

“we're all at a loss for how effective rtk is, because there are no benchmarks measuring its performance”

CriticizesComment from 19 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”

“setting up a combination of both tools could reduce token consumption by 50%”

MixedComment from 19 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”

“I've watched agents go around in circles or use ridiculous workarounds after being confused by rtk output.”

CriticizesComment 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”

RecommendsComment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”

“on my Mac I've shaved off roughly 51k input tokens, and 23k output tokens, and saved an average of 3 seconds per command”

RecommendsComment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”

“Sure your saved 70% tokens on that tool call, but nothing in the metrics says whether you ran 3 tool calls instead of 1.”

CriticizesComment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”

“forking these tools, benchmarking, verifying the output quality matches our needs”

RecommendsComment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”

“I just ran the steps to reproduce and got `Error: prettier produced no output` on rtk (0.42.2)”

MixedComment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”

“I doubt it's saving much, but the quality of the work feels similar.”

MixedComment from 18 Jun 2026 in “The Token Compression Illusion: Why I'm Skeptical of RTK”

“although it seems an interesting idea, I am pretty sure there are many caveats”

MixedComment from 14 Jun 2026 in “Don't trust large context windows”

“You can minimize the token waste using rtk as a proxy”

RecommendsComment from 10 Jun 2026 in “Is Grep All You Need? How Agent Harnesses Reshape Agentic Search”

“for agentic coding e.g. Claude Code I found this useful”

RecommendsComment from 9 Jun 2026 in “Ask HN: What works for cutting AI token costs?”

“the model got stuck just running and rerunning and rerunning in a loop, until I killed it”

CriticizesComment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”

“using their default setup which is to prepend rtk to everything is more trouble than its worth”

MixedComment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”

“my agent got stuck in a loop with a faulty RTK command and could not escape it since RTK hard overwrites anything automatically”

CriticizesComment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”

“the number of turns to complete went up so the overall cost of the conversation was higher”

CriticizesComment from 18 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”

“when it doesn't support eg. a cli flag of find, it gives an error message rather than sending the full output”

CriticizesComment from 17 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”

“it gives an error message rather than sending the full output of the command instead”

MixedComment 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”

MixedComment from 17 May 2026 in “Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep”

“I tested both for weeks and they didn't really saved that much money for Opus model.”

MixedComment from 10 May 2026 in “Teaching Claude Why”

“To reduce token count on command outputs you can also use RTK”

RecommendsComment from 16 Apr 2026 in “Claude Opus 4.7”

“some people see that changing how commands output stuff can confuse some models”

RecommendsComment from 16 Apr 2026 in “Claude Opus 4.7”

“tools that can help to reduce token usage cost so you can get more prompts in within your same plan”

RecommendsComment from 8 Apr 2026 in “Sonnet 4.6 Elevated Rate of Errors”

“It uses hooks to replace certain commands with optimized ones and helps reduce the number of input tokens”

RecommendsComment from 31 Mar 2026 in “Ask HN: Gemini CLI vs. Claude Code”

“quite useful for reducing token usage”

RecommendsComment from 13 Mar 2026 in “Prompt-caching – auto-injects Anthropic cache breakpoints (90% token savings)”

“seems to be a good balance between culling out of context and not just killing everything”

RecommendsComment from 1 Mar 2026 in “Stop Burning Your Context Window – How We Cut MCP Output by 98% in Claude Code”

“In 1 week. Numbers speak for themselves.”

RecommendsComment from 11 Feb 2026 in “Show HN: RTK – Wrap your CLI commands, save 60-90% of tokens in AI coding agents”

“That's significant token budget reclaimed.”

RecommendsComment from 11 Feb 2026 in “Show HN: RTK – Wrap your CLI commands, save 60-90% of tokens in AI coding agents”

“Biggest surprise was rtk find — directory listings are insanely wasteful.”

RecommendsComment from 11 Feb 2026 in “Show HN: RTK – Wrap your CLI commands, save 60-90% of tokens in AI coding agents”

“This is a "scratching my own itch" project born from using Claude-code.”

RecommendsComment from 9 Feb 2026 in “Ask HN: What Are You Working On? (February 2026)”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.