ASADULELAHBOOK A CALL →

Home / Learn

Learn with Asadulelah · Lesson 4

Why does Claude Code use up my usage limit so fast?

By Asadulelah, a Kerala-based builder of custom software and AI systems for businesses. I build by directing a fleet of AI agents, and this is how I actually do it.

WHO THIS IS FORHeavy Claude Code users (and anyone running agents) who keep hitting the 5-hour or weekly limit and assume the model or effort level is the problem.

WHAT YOU'LL HAVE AT THE ENDA clear picture of where your usage actually goes, and the context habits that cut it without making the work worse.

Claude Code uses up your limit fast because every turn re-reads the whole conversation: every file it opened, every command output, every message. When I measured my own usage, about 97% of the raw tokens were that re-reading, not my prompts and not the answers, so the fix is keeping context small, not switching to a cheaper model.

The model was not the problem in my case. Almost all my turns were on the same top model the whole time. What changed between a good week and a terrible one was how big each session's context had grown.

How I found out

In October all my Claude accounts ran out on the same day. I told my assistant: "You're burning out three accounts at the same time. Do a full audit." Then I made it the top priority: "We cannot buy as many accounts as we want. It costs money to run you."

The audit looked at two days of turns across every session. The answer was boring and clear. Output (what the model writes) was a small slice. Fresh input (what I type) was close to zero. Nearly everything was cache reads: the context being read again on each turn. And most of that came from turns where the context had grown past a couple of hundred thousand tokens. A small session costs little per turn. A session that has read fifty files costs a lot on every turn after that, even for a one-word reply.

The other surprise: volume came from parallel fleets. A single 12-hour window with many workers running took a huge share of the two days.

The steps

1. Cap how big a session can grow

I put a small wrapper in front of the claude command that sets a 250k auto-compact window, so no session silently grows toward a million tokens:

#!/bin/sh
export CLAUDE_CODE_AUTO_COMPACT_WINDOW=250000
exec /path/to/real/claude "$@"

Then a Claude Code update quietly replaced my wrapper with the plain binary. Twice. Workers ran uncapped again and peaked near a million tokens before I noticed. Now my worker launcher also sets the variable itself, and after every update I check the wrapper is still there with head -3 ~/.local/bin/claude.

2. Start fresh with a handoff instead of compacting

/compact keeps a session alive but loses detail, and I could feel the quality drop. A fresh session that reads a good handoff note works better and starts small. My Discord bot does this automatically: past 250k of context, the old session writes a handoff of up to 700 words and a new one starts from it.

3. Warn the human before it gets expensive

The person in the chat can't see the context size. I couldn't: "I cannot guess bro. I cannot even see the account usages." So my assistant now warns me at about 150k of context, loudly past 250k, and tells me to hand off and open a new session.

4. Keep raw output out of the main context

Most of the biggest contexts were raw tool output: full test logs, whole files, long search results. Every worker brief I write now ends with a hygiene rule: filter command output (tail, grep, quiet flags), read files by the line range you need, and push screenshot walks, full test runs and wide code searches into a subagent that returns a short verdict. The subagent's mess stays in its own context and dies with it.

5. Choose effort levels from your own tests

Effort mostly changes output, which is the small slice. I still tested it. Building from a clear spec came out the same at every level, with "high" at about half the tokens of "xhigh". On planning, "max" scored the same as "xhigh" for about five times the tokens. So: xhigh for unattended client work and planning, high for building, medium for chores, and no max at all.

6. Size fleets by turns times context

Five small workers can cost less than one worker with a giant context. Before a big parallel job, I estimate how many turns each lane will take and how large its context will get, and I gate new launches on the usage meter. Lanes that only wait for something (a deploy, a lock) should be a shell loop, not an AI session burning turns to check a status.

7. Count usage as one number

I have used more than one account. It doesn't matter which one a job runs on: "no matter which account we use, it just does not matter... make it collective." One budget, one meter, one stop line.

Mistakes I made

What I'd do next

If you hit your limit often: first look at how long your sessions run and how much raw output they read. Start a new session per task, with a short note of where you are. Put big reads in subagents. After the changes, my median context dropped by more than a third and the share of usage from giant contexts kept falling. The next thing I want is a per-lane meter, so I see which kind of job eats the week before the week is gone.