0:00Cloud code limits ran out on a lot of people this month
0:03and a few days ago,
0:04anthropic gave everybody on a paid plan one free reset of their limits
0:08and said it had fixed a few small issues
0:10that used more limits than intended.
0:11The fix most people reach for is a skill called caveman.
0:15It makes Claude talk like a caveman
0:16so it writes fewer tokens.
0:18Julius Bruce built it. It has about 120,000 stars on Github,
0:22more than Google's Gemini CLI.
0:24But then Julius measured where the tokens go
0:27and the numbers say that what Claude writes back wasn't the big part.
0:30So if it's not what Claude says,
0:32what is eating your limit and what cuts it?
0:36Let's start with what Claude says because Caveman's read me tests that.
0:39Caveman's tagline is why use many token when few do trick?
0:43One post from April made the case for it.
0:45Claude loves starting with sure,
0:47I'd be happy to help and you pay for that every call.
0:50So in the read me, they ran 10 prompts with no instruction about length.
0:54Claude wrote almost 7,000 tokens of replies
0:57with the plain instruction answer concisely
0:59it was about forty three hundred
1:01and with the caveman voice about forty one hundred.
1:03So two ordinary words got almost all of the saving
1:06and the caveman voice added a little on top.
1:09A developer named Max Taylor ran a test like it in April
1:12against the words be brief
1:13and wrote That caveman didn't outperform it,
1:15so you can just put answer concisely in your Claud MD
1:18and you don't have to install a skill.
1:20But that won't save your limit.
1:22You ask Claude code to add stripe checkout to your app
1:25over the morning. It runs your tests again and again.
1:28It reads your dev server's log
1:29and it asks the stripe connector for your products and your prices.
1:33You typed maybe 10 messages and Claude wrote back about as much.
1:37Then your limit runs out and checkout still doesn't work,
1:40so the tokens went somewhere else.
1:43Here's what Claude code does.
1:44When you send a message. It doesn't send the model,
1:46just your new words. It sends the whole conversation so far.
1:49That's your earlier messages,
1:51Claude's replies, and the results of the tools Claude used.
1:54And when Claude uses a tool in the middle of a reply,
1:57Claud Code sends another request
1:58and that request carries the whole conversation again.
2:02Anthropics docs say it pretty directly.
2:04A one line question in a session that's been open all day
2:08still draws usage for the whole conversation.
2:10Caching does make the repeated part cheaper,
2:13but it doesn't make it free.
2:15Joel Spolsky told a story about this kind of problem in 2001.
2:19There's a painter named schlemiel
2:20and he's painting a road and he leaves the paint can at the start.
2:24So every day he has to walk further back to dip his brush
2:27and every day he gets less Painted in a long Claude code session,
2:31every message goes back through the conversation from its first line.
2:36So what's in that conversation?
2:38Mostly it's the things Claude read for you.
2:40Somebody posted a real test run in an issue on Caveman's Github,
2:44300 passing tests and one failing.
2:46And the output came to about sixty two hundred tokens.
2:49You might think Claude code cuts that down.
2:51It does a bit. When a test fails,
2:54it keeps the start and the end.
2:55On this run,
2:56that's still a couple thousand tokens going into the conversation.
2:59That morning, Claude ran the tests eight times.
3:02Each of those runs is in the conversation
3:04along with the server log
3:05and the product list from the stripe connector.
3:07And each one gets sent again with every message that comes after it.
3:11Anthropic found the same thing inside Claude Code itself.
3:14When Claude Code runs a helper agent in the background,
3:16the helper has a conversation of its own
3:18and you see a one line status for it.
3:20That line updated every 30 seconds
3:22and each update used to reread the helper's whole conversation.
3:26Anthropic changed that and now each update costs about 99% less.
3:30To see what's in your own conversation,
3:32type slash context in the app and it lists what's taking up the space.
3:36It's not only Claude Code.
3:37Codex keeps what it reads in the chat too.
3:39And Open AI says your usage depends on how much goes in.
3:43The fix is To shrink the output before Claude reads it,
3:46Claude code can run a small program of yours at a set moment,
3:49like right before it runs a command
3:50and that's called a hook. A hook can catch the test command
3:54and hand Claude a short version of the output.
3:56Caveman has a command for this called shrink.
3:59On that run of 300 and one tests,
4:01shrink took those 60 two hundred tokens down to 293.
4:04And the failing test, its error and the summary line were still there.
4:08Anthropics page on managing costs says
4:10a hook that returns only the error lines of a log
4:13takes it from tens of thousands of tokens down to hundreds.
4:16And that page has a hook you can copy
4:17which keeps the last hundred lines of test output.
4:20Hooks run in the desktop app too.
4:21You can install caveman with one N P x command.
4:24It's on screen
4:25and it comes with a hook that can shrink commands like n p.
4:27M test and pie test.
4:29Or you can copy anthropics hook that handles your tests and your logs.
4:33And the connectors are still left.
4:35When Claude asks the stripe connector for your products,
4:37the whole raw answer goes into the conversation.
4:40That's every field of every product.
4:42Even if Claude only needed three prices.
4:45Julius rebuilt caveman around this.
4:47In Julius's words, the original caveman cut what an agent says.
4:51Caveman code cuts what it reads.
4:53Caveman Code is a separate app and In it,
4:55the model writes a short program.
4:57That program calls the connector,
4:59picks out the three prices
5:00and sends back only those in Julius's day long runs.
5:04By the evening,
5:04Claude Code's requests had grown to between 318,000 and 601,000 tokens.
5:10And caveman codes were between 79,000 and 113,000.
5:14But those runs used an API key.
5:17Julius says a Pro or Max plan only runs inside Anthropic's Claud code,
5:21so caveman code can't use it
5:22and those savings don't apply there inside Claude Code.
5:25Anthropic shipped something like it on November 12.
5:28It's called Code Mode.
5:29Claude writes code that calls its tools and only the result comes back.
5:33Cloudflare published that idea back in 2025.
5:36Anthropics docs name the built in tools
5:38like running commands and reading files
5:40and they don't say yet whether it covers connectors.
5:42It only runs in the terminal for now,
5:44not in the desktop app or VS code.
5:46And anthropic hasn't published a number for it.
5:48One user changed one word across a project on Opus
5:51and reported 14% of the 5 hour limit without it
5:54and 5% with it. That's one run each.
5:57If you work in the terminal,
5:58you turn it on with one environment variable,
6:00the one on screen, set to one.
6:02So if cutting what Claude reads is what saves the limit,
6:05should you just cut as much as you can?
6:08Two researchers at a company called point 5 tested that.
6:12They ran three tools that shrink tool output Against plain Claude code,
6:16and it was almost 3,000 runs at API prices.
6:19With the setup that cut the most,
6:21Claude read 38.4% fewer tokens of tool output
6:25and the Bill went up 6.8%.
6:27The lighter setups saved a little
6:29and the researchers couldn't be sure of even that.
6:31They say that when a cut removes something the agent needed,
6:34the agent can go looking for it again.
6:35It can run more tests and take more turns.
6:38So which lines are safe to cut?
6:40There's an old Unix rule for that.
6:42When a program has nothing surprising to say,
6:44it should say nothing.
6:45300 passing tests aren't a surprise and the one failure is.
6:49So you cut the lines that say nothing and you keep the failure hole.
6:53Caveman's shrink keeps the failure and it keeps the full output too.
6:56So Claude can ask for the part it cut.
6:58But is there a cut that can't go wrong like that?
7:01There is and it's ending the conversation.
7:04Say checkout works now and you ask for a receipt email.
7:07In the same chat, that short message goes out with the 8 test runs,
7:11the server log and the product list.
7:13But if you start a new session instead,
7:15the receipt task starts without them.
7:16In the app, you just open a new session and in the terminal,
7:19you type slash clear, which anthropics docs say costs nothing.
7:23There's also a compact command
7:25which swaps the conversation for a summary of it.
7:27That one isn't free to write the summary.
7:29The model has to read the whole conversation again.
7:32So compacting is a big request by itself.
7:35Only one of these numbers was measured against a plan limit,
7:38and that was one run each way.
7:40And anthropic doesn't publish how cash tokens count
7:42against Pro or max limits.
7:44So the way to know is to watch your work type slash context
7:47before you send a message.
7:49Then watch the usage ring in the app,
7:51the little circle that shows how much of your limit is gone
7:53across a day where you finished features
7:55or run slash usage in the terminal.
7:57What you're looking for is how much of the ring
7:591 finished feature takes, not how many tokens went by.
8:02Caveman also has a command called trial.
8:05It records one real session of yours
8:07and it estimates what shrinking would have saved.
8:09It doesn't run the session a second time,
8:11so it is an estimate.
8:13Caveman's command line tool also sends usage data by default
8:17and Caveman Telemetry off turns that off.
8:21So what eats your Claude code limit?
8:24It's not what Claude says.
8:25It's what Claude read for you,
8:27sent again with every message after.
8:29So put answer concisely in your Claude MD,
8:32shrink the lines that say nothing,
8:34and start a new session when the task is done.