16 comments

  • cityofdelusion3 hours ago
    I am glad articles like this are finally starting to get some momentum around what I call the LLM magic box industry. From caveman mode to RTK to semantic search and everything in between. Developers have become magicians that cast spells instead of engineers. It sucks at work especially with everyone so sure that their magic spell is the one for ultimate token savings.<p>My criteria are: if it’s not in a harness it’s probably not that good (the best ideas float up to Codex&#x2F;Claude imo) and any GitHub advertising some percent of token savings is not to be trusted.<p>It’s hard to avoid the snake oil and I hope people start thinking critically on this stuff.
    • AndyNemmity1 hour ago
      This is why I Blind A&#x2F;B test everything.<p>I burn a ton of tokens, but things actually have to prove their value. And the vast majority of things do not come close to doing so.<p>I have my own AI agent full of stuff. I blind A&#x2F;B test everything, but I also don&#x27;t think the results are all that useful as a signal to others.<p>Just because I Blind A&#x2F;B test it 4 months ago, it&#x27;s maybe not meaningful today.<p>Maybe the word choices I use dramatically impact things.<p>I do it, because I can prove the value, and see it with my own eyes. I don&#x27;t even bother publishing the specific Blind A&#x2F;B tests.<p>Also, I&#x27;ve seen other people try to Blind A&#x2F;B test and get it very wrong. If your measurements aren&#x27;t good, the test is meaningless.<p>I don&#x27;t know. We&#x27;re all working on these problems together. There&#x27;s a lot of black magic (which is why I rely on hooks a lot). I&#x27;m sure I have tons of black magic, I have a large little AI Agent.<p>But what I know for certain, is it works for me. All it takes is for me to not use it, and I honestly don&#x27;t know how everyone currently works with AI.<p>I will link it, but it is not an endorsement for what you do. Mostly only other software engineers use it. And it&#x27;s so very specific to the things I have to do.<p>At best, maybe it sparks an idea for you to implement on your own.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;notque&#x2F;vexjoy-agent" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;notque&#x2F;vexjoy-agent</a>
    • tontinton33 minutes ago
      Totally wrong, you underestimate the frontier&#x27;s incompetence in anything other than building LLM models (ehm ehm flickering TUI for a year &quot;written like a game engine&quot;).<p>I ran a bunch of benchmarks and there are proven ways to reduce tokens while achieving the same results (finding the same CVEs &#x2F; finding the same bugs in CRs, etc...).<p>See <a href="https:&#x2F;&#x2F;maki.sh" rel="nofollow">https:&#x2F;&#x2F;maki.sh</a>, it&#x27;s my own little proof.
      • rescbr10 minutes ago
        Maki is awesome. Thanks! I&#x27;m using it on my X220 and it flies in comparison to OpenCode et al.
    • lopsotronic10 minutes ago
      Oh, this gold rush has breathed new life into the old school Semantic guys.<p>Lord knows the DITA priesthood has been running low on rubes, so this new era is a godsend.<p>Re-coding all of your org&#x27;s content into a verbose granular schema, that&#x27;s what will fix these AI things. It&#x27;s going to give your LLM superpowers! Semantic superpowers!<p>While everyone completely ignores the utter lack of coupling between the actual language and whatever nonsense is in the element &#x2F; structure naming. Or the fact that every single thing has to go through some horrible 1990s era parser, which breaks constantly, and now everyone&#x27;s shovelling the full markup into the very tiny confused mouth of the AI. Or that now everyone needs specialized software to display anything. Or the <i>everything</i>.<p>My dudes, the thing you&#x27;re trying to do with this stuff is <i>already done in the vectorizations</i>. You can use math for a lot of it now, instead of someone hand coding &quot;poplar&quot; as &quot;tree&quot; in a totally flat tree structure.
    • arcanemachiner3 hours ago
      The idea itself is sound: If you can reduce the signal-to-noise ratio in the context window, then that&#x27;s a good thing.<p>Whether or not RTK actually does this has not been established. I would be glad to see some proper benchmarks done on the actual difference this tool makes (not some meaningless &quot;up to 90%&quot; type of language).
      • lackoftactics3 hours ago
        I was wondering if that impacts the accuracy, obviously the rtk output wasn&#x27;t in the training dataset, but maybe it doesn&#x27;t matter at the end
    • philipbjorge1 hour ago
      I&#x27;ll go further and note that some of the optimizations I&#x27;ve seen in rtk for things like `git status` have actually bubbled up into the model layer -- Codex is regularly making tool calls like `git status --short` instead of `git status`.
    • lackoftactics2 hours ago
      I have to say I made a similiar mistake with trusting semantic search is the next big thing. My opinion shifted, but it made sense for me for too long
    • blubber3 hours ago
      There is a conflict of interest, though.
    • striking2 hours ago
      I mean it kind of already is in harnesses. Codex and Claude Code both have subagent tools. You could probably get a similar token output cut just by asking Claude Code to run all commands with Haiku as a summarizing subagent.
  • cephei8 minutes ago
    Many points about maintainability that this article makes seem to hold, especially with update and version output changes, but it doesn&#x27;t even offer the simplest alternative. Most of these supported commands have flags to strip out noise and reduce output. Maybe agents aren&#x27;t well trained on these.<p>As a side note, has anyone tried a dual agent setup where the command output is proxied through a lightweight local model? I can imagine a scenario where all tool output is filtered through Qwen or similar locally to compact the tool output.
  • giancarlostoro9 minutes ago
    I just typed in rtk gain on my Mac, unfortunately my main dev machine I reimaged due memory issues I had and it messing up a few things, but on my Mac I&#x27;ve shaved off roughly 51k input tokens, and 23k output tokens, and saved an average of 3 seconds per command. Not sure what the outrage is for or why they cared enough to write this up really.<p>Not sure who is piping stacktraces through RTK, I only use it for very specific programs, shoving compiler output through it seems silly, but you can always instruct your agent to only use RTK for very specific sets of commands.
  • lackoftactics3 hours ago
    Author of the text here. I will be honest with why I wrote it, the rtk ai looks very odd to me as software engineer, the number of stars, no mention of accuracy and how management is pushing that stuff to optimize costs. Now people are wrapping every possible command in rtk and trying to handle all major possible commands and decide which output you should get.
    • ianwalter1 hour ago
      Why didn’t you offer any real world usage numbers to illustrate your point? I found this unhelpful.
      • lackoftactics33 minutes ago
        That’s the fair point. The rtk promotional posts point to 60-90% tokens savings and there is no mention how they perform accuracy wise. The commenter below did great job pointing to resource showing caveman, rtk saving just couple bucks on $926 bill. Thanks, Llyoyd Christmas for linking to useful substack
      • lloyd-christmas43 minutes ago
        I read another post oddly similar earlier today that has more explicit data on that authors codebase: <a href="https:&#x2F;&#x2F;codepointer.substack.com&#x2F;p&#x2F;cutting-llm-token-costs-with-rtk" rel="nofollow">https:&#x2F;&#x2F;codepointer.substack.com&#x2F;p&#x2F;cutting-llm-token-costs-w...</a><p>TLDR; ~3-4% savings to actual API costs with rtk, caveman, and headroom combined, but nothing tangible on if those cost reductions came at a cost of quality. By their calculations, rtk saved them $4.96 on a $926 bill.
  • ziyasal55 minutes ago
    &gt; Mainstream CLIs and developer tools can easily ship a native --compact or --json-stream flag tailored for LLM consumption.<p>Until they do, they won&#x27;t soon , rtk, caveman, ponytail and many others are just trying to address every growing costs (for 2K org, its around 2.5M, for now), so these are trade-offs we are all know and adjusting, but unlike the author claims we know the trade-off well and forking these tools, benchmarking, verifying the output quality matches our needs and so on to make it work for us, so no blindly.<p>For solo devs, yes, they might not really need it, self hosting another model to save would be better option. But for orgs thats a spicy part.<p>Yes, its good that we see these articles are shedding some light but like we do with these tools, lets also consume these articles with a grain of salt.
  • compuficial3 hours ago
    &gt; 1. Gamified Savings vs. Your Actual API Bill<p>Tool use output represents a large amount of my output. I&#x27;ll take 3.7M tokens saved on 3.9M tokens of input. Tokens saved are tokens saved.<p>&gt; 3. Where Are the Accuracy Benchmarks?<p>As a user of RTK, it would be nice to see accuracy benchmarks. However, I&#x27;ve seen no evidence of the model missing anything critical as a result of the compression. As part of their design philosophy they are very strict about preserving correctness to the point that if a filter fails they fall back to raw output. For my most frequently used commands I&#x27;ve inspected the source, was happy with what I saw, they&#x27;ve earned my trust thus far.<p>&gt; The day git, cargo, npm, or grep updates its terminal formatting by a few spaces or changes an error layout, RTK&#x27;s regex and parsing filters will break. And returning to the silent failure trap, it won&#x27;t throw an explicit error; it will fail quietly, feeding corrupted or partial text to your agent.<p>Again, any filter that fails simply falls back to the raw output. One of their core pillars is avoiding this exact scenario you described. RTK should never feed corrupted or partial text to an agent.<p>Your concerns are fair but I&#x27;d like to see your criticism backed up with evidence. Have you used RTK? Have you found evidence that they are failing to preserve correctness?
    • Sayrus41 minutes ago
      &gt; Tokens saved are tokens saved.<p>Not always. RTK strips flags and other information. Sometimes you spend more tokens getting them back later. Sure your saved 70% tokens on that tool call, but nothing in the metrics says whether you ran 3 tool calls instead of 1.<p>There is also a question of whether that stripped output requires more thinking tokens or not.
    • lackoftactics3 hours ago
      I was looking through the issues as investigation. Some issues that caught my attention are looking quite bad <a href="https:&#x2F;&#x2F;github.com&#x2F;rtk-ai&#x2F;rtk&#x2F;issues&#x2F;2494" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rtk-ai&#x2F;rtk&#x2F;issues&#x2F;2494</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;rtk-ai&#x2F;rtk&#x2F;issues&#x2F;2462" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rtk-ai&#x2F;rtk&#x2F;issues&#x2F;2462</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;rtk-ai&#x2F;rtk&#x2F;issues&#x2F;2395" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rtk-ai&#x2F;rtk&#x2F;issues&#x2F;2395</a>
      • compuficial3 hours ago
        Fwiw, I just ran the steps to reproduce and got `Error: prettier produced no output` on rtk (0.42.2). Not saying this isn&#x27;t valid for the users environment but I could not reproduce on linux.
        • lackoftactics2 hours ago
          appreciate the engineering effort and skin in the game. I might try on macos today as the author of issue.
  • trjordan1 hour ago
    The core of the problem is that there are a million tools that make AI better, and no ways to measure whether AI is working better.<p>Big companies with popular products have it. They do something between normal product analytics and chatbot evals to figure out if users are being successful in their sessions. That&#x27;s the job.<p>But any given dev, with between 3 and 50 sessions a day? Like, I have no idea what makes the LLM better. It&#x27;s all vibes.<p>My company has a whole stack here. Preferred harnesses, preferred models, skills, the shape of our code, everything. There&#x27;s gotta be a way to measure whether this setup is working for us, at 1 &#x2F; 1-million-th the scale of a Claude Code.
  • tlarkworthy3 hours ago
    I tried it and it does not compress messages which was 90% of my context, so it only compresses a small part of my token usage. If you read it carefully you will realize that is exactly stated. If you look at &#x2F;context you will probably see that tool calls are not where you are spending token on, so a proxy that compresses tool calls will not make much impact, whilst still being true that it compresses tool calls by 8x. Its just not that important for long coding sessions for me.<p>&quot;native&#x2F;built-in Read or cat tools, the data is not intercepted by RTK&#x27;s shell hook&quot;
  • graphememes2 hours ago
    I don&#x27;t disagree with the article, but I also don&#x27;t disagree with RTK. The output of these commands is not optimized for agents (or humans) for that matter.
  • arcanemachiner3 hours ago
    I&#x27;ve been trying out RTK and it seems kinda alright. I doubt it&#x27;s saving much, but the quality of the work feels similar.<p>But if it&#x27;s making a dent in token usage (which I have not personally measured), then that&#x27;s great.<p>I had to add some system prompt instructions to Pi to help it work (GPT 5.5 initially got confused when `git status` looked different than expected). The Claude Code extension appears to do a proper job of informing the agent about the unexpected shape of the output without any extra work on my part.
    • lackoftactics3 hours ago
      so how do you justify it&#x27;s usage if it&#x27;s not saving much and the work feels similiar. They have 664 issues open and some of them are quite funny, the tools are called and return success even though they aren&#x27;t even installed.<p>My take is that handling so many versions and so many different tools shouldn&#x27;t be the work of any single repo. The responsibility should be either on coding agent to compress or best case scenario people who are responsible for cli tool
      • arcanemachiner3 hours ago
        I&#x27;m not justifying its usage, and I don&#x27;t have to.<p>I&#x27;ve been trying it out for a couple days and it seems kinda OK or whatever. If that upsets you, then that&#x27;s your problem.<p>I might dump it later on if it doesn&#x27;t provide much if a benefit. I typically try out new things, then cull whatever doesn&#x27;t work. This tool seems pretty neutral for now, at least.
        • lackoftactics3 hours ago
          no, it doesn&#x27;t upset me. I am open for discussion, there might be things I miss and don&#x27;t understand. I am just trying to get why it&#x27;s been pushed so hard lately and if the benefits are really there. Sorry, if I sounded upset to you, but I am trying to be really civil and just genereally curious
          • arcanemachiner2 hours ago
            Well, I&#x27;m sorry as well. I mistakenly assumed you were being confrontational.<p>There are a lot of people who have negative knee jerk reactions to any AI stuff, new workflows (I&#x27;ll agree there is a lot of garbage being shilled in this space), etc., and I jumped the gun by lumping you into that group.
            • lackoftactics2 hours ago
              Nope, I am doing my master thesis on finetuning llms at 36, so I am into this stuff, but it’s been very weird lately. I’ve been self-taught dev and I definitely was missing computer science concepts so excited to fill the gaps, although the timing wasn’t perfect.<p>Good conversation! Great pushback against my arguments. That’s what I signed on with hacker news and missing that spirit recently
  • old_sysadmin3 hours ago
    I feel like the state of the art is baked into the compaction logic, and I&#x27;ve had a lot of problems with compaction (absent other prompting) losing key bits of state.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;toon-format&#x2F;toon" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;toon-format&#x2F;toon</a> is another interesting one, and I feel like it takes on a much more achievable goal - reduce whitespace and verbosity of JSON, not overall context compression.
    • arcanemachiner3 hours ago
      Personally, I find compaction to be unreliable, which forces me to rely heavily on session-specific planning documents and inter-agent handoff messages.
  • Catloafdev3 hours ago
    I don&#x27;t agree with the conclusion at all. I can see the value of RTK - whether it is buggy or vibe coded is kind of secondary. That basically comes down to how severe and often the bugs are.<p>There&#x27;s no gamification of savings here. Tool output can be meaty.<p>Is the author skeptical of the concept, or the implementation? Because only one of those is worth critiquing.
    • lackoftactics2 hours ago
      Hey, author here, I am skeptical of implementation starting from Rust Token Killer and looking to monetize on Rust love by other developers.<p>Concept is fine to me and I believe we should optimize, but a repo that will handle all tools sounds like Sisyphus rolling a rock up the hill.
  • SubiculumCode3 hours ago
    I feel like what is needed is not compression, but aggressive context management with subagents.
    • minraws3 hours ago
      so burn more tokens to save more tokens, so that we can spend more on X token but save on Y tokens?<p>not the question is which X tokens and which Y tokens? and since the output is non-deterministic how do you validate this?<p>LLMs aren&#x27;t random and that enforces something that people are too dumb to realize that random-ness could be normally distributed but LLMs have no reason to be normally distributed or follow any sort of curve of understanding.<p>They are non-deterministic but with bias so their output might be just be worse with T&#x27; transformation for the class of problems A is solving but work great for B. or vice versa.<p>You can&#x27;t reproducibly test LLMs and that allows all sorts of benchmarks to exist which can make any model look good or bad as much as we want. Enlightening stuff.<p>Not much different from sociological or psychological sciences where with enough bias in data you can prove anything.
    • arcanemachiner3 hours ago
      Use the right tool for the job.<p>If you need a piece of information that is buried somewhere, or a high-level summary&#x2F;distillation of a larger body of info, then subagents may be the right tool for the job.<p>If you need all the gathered context for later use (i.e. distilled context is insufficient), then subagents probably are not the right tool for the job.
      • cyanydeez3 hours ago
        if your corebase requires a million tokens, then youre probably going to break more than you fix
        • arcanemachiner3 hours ago
          If you are using a million tokens in a single context window, you are using the entire toolbox incorrectly.
    • lackoftactics3 hours ago
      I am the author the text.<p>What do you mean by aggresive context management with subagents? Would you add a lopp that would trim the context?<p>Both of those tasks seem even more difficult
      • SubiculumCode3 hours ago
        First, I only say this because of what I learned as a phD inhuman memory, not as someone who authors agentic workflows or does AI.<p>How human cognition tends to work by simultaneously utilizing and combining&#x2F;separating multiple frequency scales of information. A simple way of thinking about is this: We tend to encode and retrieve both the gist of what is happening, and the verbatim details of what happened. The gist can be thought of as low frequency information, almost like bullet points, that contain the big overview goal, keypoints). The verbatim traces, are the high resolution memory that contains all the details. The gist helps encoding and recall by providing encoding and retrieval context cues. There are also levels in between those two, but I was keeping it simple. During human development, verbatim memory capacity increases first, but then hits a wall&#x2F;plateau. Further performance increases begin to depend on the ability to utilize and gain from gist-like representations that can guide encoding and retrieval of verbatim details within contexts.<p>You don&#x27;t need to keep everything in the context window. My untested, perhaps naive hypothesis is that what is needed is that sub-agents dealing with verbatim tasks (actually writing code), their context window should be managed by an agent above that is tuned to information at a lower frequency, and it by another above it on even lower frequency information. Lowest frequency information context windows feel up slowly. High-frequency information fills up fast. Use the low frequency information to retrieve the needed high frequency information.
      • skinfaxi3 hours ago
        I believe they mean aggressive delegation to minimize context bloat in the coordinating agent.
        • svachalek1 hour ago
          This is a really useful technique in my experience. The harnesses are starting to do it more on their own but if you encourage the use of more subagents, I find it&#x27;s typically nothing but win.
        • lackoftactics3 hours ago
          that would make more sense, trimming context with subagents sounds like an overkill
  • blubber3 hours ago
    &quot;Where Are the Accuracy Benchmarks?&quot;<p>I wish the author would have provided one.
  • iam-TJ3 hours ago
    Am I the only one that thought RTK was Real-Time Kinematics used for precision with satellite navigation?
    • dayjaby3 hours ago
      No. I clicked here for the same reason.
      • lackoftactics3 hours ago
        I might have picked better title, but they are literally called rtk <a href="https:&#x2F;&#x2F;github.com&#x2F;rtk-ai&#x2F;rtk" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rtk-ai&#x2F;rtk</a><p>and it stands for Rust Token Killer
  • breadislove3 hours ago
    slop complaining about other slop
    • lackoftactics3 hours ago
      thank you, author here. I will stay civil here and focus on the rtk as that was the goal of article.<p>So do you think rtk cli is ai slop? I had some suspicions looking at their repo and number of issues and their style. The prettier issue with running successfully while binary wasn&#x27;t even installed was quite entertaining
      • grey-area3 hours ago
        Did you use an LLM for the blog post? it reads like it in places.
        • danr424 minutes ago
          this is aboslutely entirely written by AI
        • lackoftactics3 hours ago
          I have raycast shortcut for fix grammar, it might done more damage than adding a, an, the or changing tenses.
          • gowld3 hours ago
            A content-free 2nd &quot;paragraph&quot; like this turned me off immediately.<p>&gt; But in the current dev tools gold rush, if something sounds too good to be true, it almost always is.<p>The people who are interested in RTK and in criticism of RTK aren&#x27;t interested in pablum like this.
            • lackoftactics3 hours ago
              ok, this one is all mine. So that&#x27;s even more hurtful as this is 100% me