Enjoying this issue?
Get tomorrow's AI & engineering digest in your inbox — hand-picked, summarized, and always spam-free.
TLDR
Claude's token limit is less about how much you use it and more about three habits that break prompt caching: switching models mid-session, keeping one long session for everything, and overloading project instructions. An Anthropic engineer explains that a high cache hit rate is what makes generous subscription limits possible, and small changes like picking a model upfront, using separate sessions per task, and keeping Claude.md under 200 lines can dramatically reduce token waste.
Key points
Claude reads about 200 tokens for every token it writes in a typical session.
Switching models mid-session breaks the cache and costs more than staying on the original model.
Anthropic's own engineers cut 80% of Claude Code's system prompt with no measurable drop in results.
A single long session costs more than the same work spread over multiple short sessions.
Prompt caching on a cloud subscription stays warm for about an hour after the last message.
Tools mentioned
Techniques
- prompt caching
- prefix matching
- progressive disclosure
Stop scrolling. Start reading smarter.
Receive the day's most important AI & engineering updates in one concise email. No spam.
Transcript (captions)
An Anthropic engineer who helped build Claude code just explained why you keep hitting your token limit. And it's probably not because you're using Claude too much. It's actually because of three
small habits that make Claude work twice as hard and use twice as many tokens. And the thing is most people do these every single day without realizing they're throwing tokens down the drain.
That's why in this video I'm going to break down these three small habits and tell you what you should be doing instead so that you can keep working on your projects without hitting your
weekly usage limits. So let's get into it. Okay, so first we need to understand why Claude keeps burning through your limits so fast in the first place. And the best way to understand this is by
thinking about texting a friend on your phone. Imagine that every time you send them a message, they have to scroll all the way up and re-read your entire chat. So by message 200 they'd spend more time
re-reading than actually answering you. And that's pretty much how Claude works. Claude basically doesn't remember anything between messages. So every time you hit enter, your entire conversation
has to be resent and re-read again. Your instructions, your files, and every message that you've sent so far. And in a really long session that can be tens or even hundreds of thousands of tokens
with every single message that you sent. And of course I saw this on my own logs. Last month I ran seven real tasks through Opus and I added up all the tokens. Claude read about 160 million
tokens and only wrote more like 500,000. So for every token it wrote, it read about 200 of them. And that's why Anthropic built something called prompt caching. Prompt caching saves the part
of the conversation that Claude already processed so it only has to fully work through what's new. And if you're really digging through the tokens, you'll see this referred to as like the cached
input. And Anthropic charges a 10th of the normal price for that cached input or even less on certain models. So it's kind of like your friend finally remembering the whole chat so they only
read your newest text. So don't focus on using Claude less, focus on not making it start from scratch. And this is what Anthropic's engineers built Claude code around. But there are three small habits
that make Claude do way more work than it needs to. So the first habit that wastes your tokens is something that most people do because it actually feels like the smart move. So imagine you
spent an hour building a LEGO tower and then you decide to swap one brick near the bottom. You can't just pop out that You kind of have to take off every brick above it and then build the whole thing
again. And that's what happens to Claude every time you change something in the middle of a session. And you pay for it with your usage limit. And the worst part is you don't even notice. And the
Anthropic team noticed that people were doing this. So Thoric, an engineer on the Claude Co team, said that they built the entire tool around caching. They even set up alarms for it. So if the
cache starts missing too often, they treat that like an emergency because he said a high cache hit rate is what helps them give subscription plans more generous limits. And he shared an
example about this. Let's say you're 100,000 tokens into a chat and you're using Claude Opus and you have a pretty easy question that you're about to ask. So what you might think is smarter to do
is to switch that to a cheaper model like Haiku in order to save yourself some tokens and save yourself some weekly usage. But Thoric says that switch will actually cost more than just
letting Opus answer, which I know sounds a little bit backwards because Haiku is way cheaper by the token. But the reason is because of something that he calls a prefix match. So a prefix is basically
just the start of your conversation. So that's things like your settings, your tools, and your instructions that all sit at the top [music] because Claude can only reuse what it saved if
everything from the top down stays exactly the same. If you change one little thing, everything after it has to be reprocessed all over again and you don't get that cached [music] price. And
each model obviously is going to keep its own cache. So when you switch to Haiku, it has to work through all 100,000 tokens from scratch. So yes, you save a little on that one answer, but
you're still paying to reread the whole chat anyways because you broke the cache. Now to be fair, Thoric wrote that back in April and the exact numbers might shift every time new models come
out, but every model still keeps its own cache because of this whole prefix matching thing. So switching still means rebuilding it. So to avoid this, there's one little thing that you can do, which
is to set everything up at the start and after that only add new messages to the bottom. If you've ever like built a skill mid-session and then you realize like it's kind of hard to invoke that
via slash command in that session, but you can do it in a new one, it's because of that whole prefix thing. It's like building the base of your tower first and only ever stacking bricks on top.
Here's how you do it. You pick your model before you start and then you stay on that model. You type slash model when you open a session, you choose the one that fits the job, and then you don't
switch until you're done. If a small task needs a cheaper model, then what you want to do is just hand it off to a subagent or hand it off to a new session because a subagent has its own chat and
its own cache. So your main session will say untouched. And you can literally just tell Claude something like, hey, use a Haiku subagent to summarize these files or to, you know, do that research.
And the last thing is something that a lot of people forget to do. Connect your apps before the first message. The Claude code docs say that if your tools load upfront, adding one can break the
cache. So don't add a new tool in the middle of a session. Decide which ones you need, connect them, and then just start working. Your cache also doesn't last forever. So on a cloud
subscription, it stays warm for about an hour after your last message. And on the API, it's just 5 minutes. So if you step away from a big session and you come back, your next message has to process
the whole thing again. So what I did here is I had Claude build me a mod that sits right above my prompt box, and it shows me if my cache is warm or cold and how much time I have left and what I'd
pay for it if it expires. And it also warns me about 5 minutes before it goes cold so I can just shoot off a quick prompt to keep it warm. Now in one of my sessions, if I was to rebuild a 400,000
token cache, it would cost me about three, almost three and a half bucks of usage, and keeping it warm was only about 8 cents. Now I know those might seem like small numbers. Oh, it's just
three bucks, but that will add up quick if you keep breaking the cache. And in order to make a mod like that, you don't have to code any of it. You just say, hey Claude, make me a mod that does that
exact same thing for my sessions. Real quick guys, I've got this completely free kit that I want to give to you all on helping you build your own AI OS. Whether you need to build it or whether
you need to scale it up, this is the full kit. It's based on my actual framework. I call the Herk Loop, context, connections, capabilities, and cadence. This thing comes with six
skills. It helps you set up a brain. It helps you set up your priorities in your business and it interviews you. It is exactly how I built my own actual AI operating system and it's how I'm able
to move so fast. If you guys want this, the link for this is down in the description. But anyways, let's get back to the video. Okay, so the second habit now is why long messages burn through
your limit even when your cache is working perfectly. Most people keep one session open all day and just use it for everything. It's kind of like a general use session. They fix a bug in there,
they might write an email in there, they might plan a whole project all in that same chat. Now Anthropic says that one long session costs more than the same work being spread over multiple short
sessions. It's like hiking up a mountain with every bag from every trip you've ever taken. But if Claude only carries what the current task needs, every message costs less. And that's what Brad
Abrams, who leads products for Claude platform, told developers at a conference. He basically said Claude code's cache hit rate usually runs in the 90s, meaning it can often reuse
context that it already processed. But even a cheap reread adds up when Claude's carrying a whole day of tasks. So his advice was to keep anything Claude isn't using out of its context.
So of course, here are some things that you can do to make sure Claude is not flooded with context. Each task should have one session. When you finish something and you want to start
something new, type /clear. This will wipe the chat so Claude can basically start that new task with clean context. And then you can also compact when one part of a task is done. So you can type
/compact and Claude turns the whole conversation into a short summary that it can use to keep working from there. Now I created my own skill that's basically a compact. So what I do is I
do a /handoff or /session handoff. And then after that, I paste that handoff into a new session. So I just like that better than running the default compact. And if you want that skill, also in my
free school community. Now another thing that you can do is to be more specific about where files live because then it can find them quicker without having to do all the searching. So if you said
something like look through my project and find the bug, Claude might open dozens of files and every one of them lands in the context. Instead, you should say something more like, hey, the
bug is in, you know, checkout.js in the total price function. That way it'll read one file instead of dozens. And that's actually why the top of my own cloud.md basically a routing map. It
tells Claude which folder each kind of work lives in, so it goes straight there instead of digging through the whole project every time. So think of every task as its own trip. Pack only what you
need for that trip and empty the bag before you start the next trip. So your limit is going to go a lot further when you do that. All right, now this last habit is the sneakiest one because it
feels like you're making Claude smarter, but you're just confusing it. Most people think the more instructions that you give Claude, the better it works. So every time Claude does something they
don't like, they add another rule to their cloud.md their project instructions. But that whole file loads into every single session, whether the task you're working on needs those rules
or not. And the topic says that a long file doesn't just cost more tokens, but it also makes Claude less likely to follow your rules because there's just too much going on. Anthropic's own
engineers realized that they were doing that exact same thing. So what they did is their team, they cut out about 80% of Claude code system prompt for Opus 5 and Fable 5, especially as the models have
been getting smarter over time. The system prompt is the set of instructions that Claude code gives Claude behind the scenes before you type a single word. And they saw no measurable drop in their
test results after they cut 80% of that system prompt. He said that they'd been giving Claude too many rules in their system prompts and in their own Claude that MD files. And some of those rules
even conflicted with each other or kind of fought each other, like one saying to leave documentation and another one saying not to add comments. And as the models get smarter, like I said, they
probably need less direction. They need fewer rules and fewer examples, and they just need high-level goals. So if you want Claude to burn fewer tokens, give it less to read up front and let it read
the rest only when it needs it. And that 's why when new models drop, you should test them out on your skills and make sure they actually still need those skills. Boris Turney, the creator of
Claude code, actually also came out in an interview and said every 6 months you should delete all your skills and just see with these new models if they're able to achieve what your skill wanted
them to do, but if they could do it better without the skill. Now what I found myself is that I still need the skills in there because I need things like the taste and like certain rules
that it wouldn't just know natively, but I have been able to just over time make my skills shorter and shorter and less specific cuz it's like you have something so powerful and too many
instructions actually makes it less powerful. Like if you gave, you know, the best baseball player in the world like a fluffy stuffed animal bat instead of an actual wooden bat. So two other
Anthropic engineers, Barry and Mahesh, who helped create skills, built them around this exact idea and it's called progressive disclosure. So essentially Claude only sees each skills short
description when a session starts and that's called the YML or YAML front matter. And then the full instruction, the actual like skill.md file only loads when a task [music] actually needs them.
When Claude says, hey, I need to invoke this skill. So first, cut what Claude would do on its own. So type / doctor and it will check your Claude .md for rules that Claude could probably figure
out on its own, and then it will offer to move what's left into skills that only load when needed. When I ran on my own setup, it found a Claude .md from a completely separate video project on my
desktop that was loading into every single session. And that was about 2,000 tokens that I didn't even know Claude was reading. And then aim to keep the file under 200 lines, which is what
Anthropic recommends for the Claude .md. And mine now currently is sitting at about 300, so I've got some cutting to do, but it's because I just have so many routing rules in there. But there's
definitely room for improvement. Finally, move every step-by-step process into a skill. So keep the Claude .md always for super short like, hey, you know, this is your role, this is who
Nate is, this is where all of his files live. But anything that's more process-oriented, like a content checklist or client onboarding steps, that stuff needs to live in skills or
like instruction file docs or something like that. Just tell Claude, turn this section of my Claude .md into a skill or turn this file into a skill. So very quick recap here. Pick your model and
your tools before you start. Give every task its own clean session and keep your Claude .md short. Progressive disclosure helps Claude invoke skills only when it needs them. So make sure you're
utilizing skills and progressive disclosure. Now you know how to stop wasting more tokens, but these are just the latest strategies for doing it. And Anthropic ships new models and new
features constantly, and each one of these models behaves a little bit differently. So a habit that saves you tokens today can change with the next update. So if you want to stay up to
date with the best ways to use AI, you can join my free school community with over 450,000 members. Inside you'll find active discussions, full courses, resources, skills, and a 7-day challenge
to build your first AI workflows. Basically everything you need to become an AI expert even if you're a total beginner with no technical background. And if you want weekly live calls with
me and my team plus direct support while you build your projects, then you can also join my plus community. And the link for both communities will be down in the description. But that is going to
do it for today. So if you enjoyed you learned something new, please give it a like. It helps me out a ton. And as always, I appreciate you guys making it to the end of the video and I'll see you
on the next one. Thanks everyone.