AI News Today
← All episodes
Episode 65 · July 6, 2026 · 09:27

Claude: Save 82% Tokens with RTK!

RTK Token Savings: Cut LLM Token Usage by ~80% (Plus Ponytail, Headroom & Caveman)

The script explains testing RTK, an open-source filter that sits between an AI agent and the shell to remove padding and duplicate output from common commands, reducing token usage while keeping results the same. The presenter reports 82.9% average token savings in their tests, cites RTK’s README claim of 60–90% savings, and notes minimal added latency (~14 ms). An example shows swapping git diff to an RTK version that strips repeated headers and unchanged lines, cutting output from 373,000 to 29,000 characters (92% less) while saving full unshortened output to a file if needed. RTK is described as easy to install on Linux/macOS, small (6.6 MB), and capable of shortening outputs for about 100 everyday commands. The script also covers stacking RTK with other open-source tools—Ponytail, Headroom, and Caveman—to further minimize tokens, and promotes the Agent OS setup and AI Profit Bot community.

00:00 RTK Token Savings Intro
00:55 How RTK Works
01:47 Real Test Results
02:28 Step by Step Example
04:42 Testing Method
05:07 Install and Command Support
05:38 Does It Lose Info
05:51 Token Minimizer Stack
06:36 Caveman Mode Demo
07:39 Fable 5 Efficiency Wins
08:23 Agent OS and Community
09:25 Wrap Up

Full transcript

Today, we've been testing out RTK, which is a really powerful way to reduce the amount of tokens you use. In fact, on our own tests, and I'll show you proof in a minute, we actually saved 82.9% in tokens. Now, the README of RTK actually claims 60 to 90% savings in tokens. And this is just a really powerful way to get more out of your models without paying more because you can reduce the amount of tokens you use and be more efficient, which means you can get more out of it.

Especially if you use this for like Fable 5 on the subscription, there'll be models in the future that you probably need this for as well. I'm also going to show you how to combine this with other open source projects to reduce the amount of tokens you use even more in terms of being more efficient. So this is a really powerful system, and it's got 68,000 GitHub stars, it's trending right now, pretty fast to use. And if you're wondering, okay, what does this do in plain English, because you'll probably read this and wonder, okay, well, what on earth does this mean?

So it basically means that you have a filter that sits in the middle between you and your AI agent. So you still get the same back, you still get the same outputs, and they're just as good. But all the padding, all the fluff, about 80% of it actually gets removed in between. And so what this means, essentially, is that you just reduce the amount of tokens you use, depending on what you're trying to do.

And you can see a bunch of tests that they've run over here, average saving was 80%. And it's pretty quick and easy to install, it works on Linux and Mac OS, so you can install it one single command. And then once you've done that, you can start using it. Now, this could work, for example, inside Claude, it could work inside all your favorite coding agents, and it's pretty simple and easy to use.

So I'll give you an example. On one test that we did, we had 82.9% less text for the AI to read across all of our tests. And we ran loads of different stuff, which I'll show you in a second. Also, there's no real delay.

So it was like a 14 millisecond delay between using the filter and not using it. So an extra 14 milliseconds, which is not too bad. That's not going to slow you down when you're using it as well. It's basically like a sieve for your computer's replies.

And that just removes all the fluff in between. So let's say, for example, you ask Claude to fix a bug, well, this would be super useful. Or if Claude asks your computer a question, those sort of things will reduce the amount of tokens you use massively. So here's how it works step by step.

So if you asked Claude to fix a bug on something you're building, that could be a website, tool, app, game, whatever. Then Claude would ask your computer a question to check that it works. Now without RTK, my computer would reply with like 373,000 characters according to our tests. And we got Fable 5 to test this all out in terms of the facts and everything else.

And so Claude has to read all of it. And that text sits in its memory being read. That means that you use a lot more tokens on every message after that. If you use RTK, then a small rule swap swaps a command to RTK git diff instead of git diff before it runs.

And that means Claude doesn't really know, but it typed the same thing it always types. And so this means that it runs the exact same git command, but it strips out all the padding. So all the repeated headers, all the unchanged lines, all the decoration, and what's left is the actual change. So in the end, we would normally get 373,000 characters back, but with this, we got 29,000 characters back.

And so it was 92% less for Claude to read. So Claude then reads the short version, fixes the bug exactly the same before, you know, you get the same result. But it's using a fifth of the tokens hour after hour, command after command. And if something actually goes wrong, then RTK saves a complete unshortened reply to the file and prints it where it is.

So you don't ever actually lose anything if you need to revert it back. And also the good thing about this is it doesn't change how you work, doesn't change how the AI works. The replies just get shorter. So here's an example of how it works.

So normally you have your agent, it'll run like git diff, then the shell answers honestly, and you get your context back like 373,000 tokens. With your agent, it would run the same, but it gets filtered through RTK. The same command runs in the shell, and then you get much lower context back. You get 92% less context back.

And so when it filters and truncates everything that's doing and reduces to duplicates, you just use a lot less tokens. Now, the way that we've tested it is we used it on our agent OS dashboard. We ran every test with one command, but we ran it twice, one the normal way and one through the RTK in the same folder on the same machine with the same minute. And we measured the size of what came back.

So every command answers in text, and we counted the characters of both answers because that text is exactly what an AI has to read and exactly what you're usually paying for in terms of tokens. Now it's pretty easy to install. So it's just like one line to install this, and then you get the latest RTK version. And it's a really small program.

It's like 6.6 megabytes. And it knows how to shorten replies of 100 everyday commands that Claude would normally use. So we tested it, for example, with auto rewrite hook, with 14 agents, including Hermes, a bunch of other stuff like this. But everything seemed to reduce the amount of tokens that we were using.

Now you might say, if you're filtering stuff, you know, if you're filtering the output, doesn't that mean you lose information? But you actually don't lose information. It just reduces the amount of tokens that your agent would use. Now also what's interesting about this is if you want to reduce the tokens even more, you could stack this in with the rest of our token minimization playbook.

So the things that we're using right now is Ponytail, and that's basically way more efficient in coding. We have RTK, which shrinks what commands return. And then you can also use Headroom, which compresses the whole context. Now, if you're not familiar with each of those, RTK is the open source project for reducing LLM token consumption.

Then you have Ponytail, which basically makes your AI agent think like a lazy senior developer to be super efficient. And additionally, you have Headroom, which compresses the amount of tokens you use as well. Now, on top of that, you can also use something called Caveman. And these are all free open source projects.

They're all pretty popular. I mean, for example, Caveman has 85,000 GitHub stars. And this basically means that when you're using Caveman, it will reply to you with less output. And so each one of these playbooks helps you reduce the amount of tokens you use.

So for example, if you're using Caveman, if we say, for example, what is my name, it just says Julian Goldie. And it's like Caveman mode is now live in the session, which means it's going to reply to me in a very short, brief way to reduce the amount of output tokens it uses. So if you have a look before and after, with a normal agent, it would give you a long response like that with a lot of fluff. With Caveman, it would be much shorter.

With Ponytail, it reduces the amount of code it creates. And then with RTK, this just filters the amount of tokens that it uses as well. So these are all like good ways to reduce the amount of tokens you use to be way more efficient. And then you can plug them all into your agent to reduce the amount of tokens you're using.

And this is actually part of something we call the token minimizer playbook. Especially when you're using Fable 5, this is a great way to get more out of Fable 5. So for example, this week we've been testing Fable 5 relentlessly with loads of different tests, 47 different tasks. But we use that all on the subscription of Claude because we were minimizing the amount of tokens we use.

We created some pretty crazy stuff here, as you can see, like full real world games, as you can see. So if you want to get more out of your plans, out of your subscriptions, and bear in mind, like the bigger the context window of each of these models gets, the more tokens you're going to use. So when you can be more efficient with these playbooks, it's just going to help you save a lot more. So that's basically it.

They're free to try as well. So you can test them out, see what you think. If you want to get a full machine, I mean, this is part of the agent OS setup. So if you want to know what the agent OS is, it's an agent operating system where you can plug in Claude, open Claude, you can add Hermes, you can add memory systems inside there.

And a lot of people say, like, won't this use a lot of tokens? But we use it with our existing CLI plans and free APIs, simply because we have smarter playbooks in place to reduce the amount of tokens we use across everything that we do. So if you want to get that, it's inside my AI Profitable Boredom community. Link in the comments description or go to the AIProfitableBoredom.com.

Inside the community, you can ask questions and I answer them personally with a video tutorial every single day. Inside the classroom, you can get access to all my best trainings, including new daily updates. We've got the agent OS system here. We update it daily.

You get a video tutorial for it and also a zip file to install it. And then we add new daily guides based on what's actually useful, as you can see right here. We also have four weekly coaching calls so you can get help and support in real time. And inside the map, you can meet people in your local area who are building with AI agents like you.

So feel free to get that link in the comments description or just go to the AIProfitableBoredom.com. Thanks for watching.

More episodes

Browse all episodes →