Claude Code weekly limit: what used it and what reduced it
Measured Claude Code usage: where the tokens went, the two changes that lowered weekly limit use per commit, and what did not help.
In this guide
In this guide
On a Claude subscription, the weekly limit can fall fast when you run long sessions and subagents. The goal here is the same work at the same quality with less limit use, not less work. This guide reports one measurement, dated 2026-11-09, and the two changes that helped in it.
The problem#
Claude Code shows the weekly limit as a percentage in /usage. It does not show which part of a session spent it. Without that, it is hard to tell whether to change models, prompts, tools or habits.
How it was measured#
The measurement used local Claude Code session logs. Each request was attributed to a context source, such as the main conversation, a subagent or an instruction file. Cost was modeled at API list prices, in units relative to base input:
- cache write: 1.25× (5-minute cache) or 2× (1-hour cache);
- cache read: 0.1×, or 0.05× for Opus 5.5 and Sonnet 5.5;
- output: 5×.
The real weekly limit was read with claude -p /usage. Everything in this guide except the limit percentages is modeled, not billed.
As a stability check, 1% of the weekly limit corresponded to 6.3 to 7.4 million modeled units across repeated readings, about 7 million. In this measurement the model tracks the limit well enough to compare periods. The unit of comparison is the commit: modeled units, and limit percentage, per commit. Edits per commit were similar before and after (about 1.9 to 2.0).
Where the tokens went#
Before any change, a one-hour subagent prompt cache was already on. That period used 135 million modeled units for 113 commits: 1.20 million per commit, about 0.18% of the weekly limit per commit. An earlier period without that cache used 1.40 million per commit.
| Share of modeled spend | |
|---|---|
| Cache reads | 43% |
| Cache writes | 36% |
| Output | 21% |
| Main conversations | 41% |
| Subagents | 59% |
| Thinking (about) | 20% |
The largest single factor was context size. Requests with more than 500k tokens of context made up 29 to 34% of spend before the changes. A few long main sessions reached 850 to 965k tokens. Every request in a long session re-reads the whole context, so cache reads grow with it.
The two changes that worked#
After both changes, the same measurement showed 120.9 million modeled units for 149 commits: 0.81 million per commit. That used 19 points of the weekly limit, about 0.13% per commit, or about 6.4 million units per 1%. Compared with before, that is about 32% fewer modeled units per commit and about 29% less limit per commit. The two changes cannot be fully separated.
1. Short instruction files#
Two project CLAUDE.md files were 105 to 123 KB (654 to 706 lines). They were cut to about 9 KB (under 200 lines), with detail moved to linked documents. Nested CLAUDE.md files load on demand when an agent touches a directory, so linked detail is read only when the work needs it. The share of spend attributed to instruction files fell from 16.7% to 2.0%.
On its own, this change moved cost per commit from 1.23 million to 1.01 million in the first hours after it. That covers only 15 commits, so treat it as a direction, not a size.
2. Earlier auto-compaction#
Models with a native 1M window compact at about 967K tokens by default. Setting /autocompact 500k lowered the threshold. The setting is saved per model in user settings. Sessions that were already open need the command run inside them; one missed session kept growing to 646k.
Requests over 500k made up 8.2% of spend in the after period, and all of them came from before every session had the threshold. After that point there were none, and the largest main context was about 465k. Subagents reached at most 369k, so the threshold was not verified for them.
A simulation of compaction thresholds assumed 30k to 100k tokens of re-reading after each compaction:
| Threshold | Simulated effect |
|---|---|
| 500k | 9 to 18% lower spend in the larger samples |
| 300k | Results varied by day |
| 200k | Could cost more, up to +66%, because re-reading outweighed the saving |
Compaction can lose detail. The effect on quality was not measured.
What did not help#
- One-hour subagent cache. It was confirmed active, but it was already on before the drop, so it does not explain it. Modeled input saving was 8 to 20%. One-hour writes cost 2×, so short read-only roles paid more: about +46 to +50% one night.
- A local coordination tool. It cost 1.4 to 2.5% as context, and at most 5 to 8% including the turns it triggered.
- Waiting, test output and repeat file reads. None was significant.
- Removing old worktrees. It saved nothing by itself, since an idle worktree costs no tokens.
Steps you can take#
- Read
/usagefirst, so you have a baseline to compare against. - Check the length of your
CLAUDE.md. Keep it under about 200 lines and move detail into linked files. Agent Policy Kit 0.6.0doctorwarns when aCLAUDE.mdis over 200 lines. - Run
/autocompact 500kfor each model you use, and again inside each session that is already open. Agent Policy Kit 0.6.0 can set this with--claude-auto-compact. - Run
/clearwhen you switch tasks, so the next task does not carry the old context. - Do not set a threshold near 200k without measuring it on your own work.
The Agent Policy Kit page describes the tool and its subagent presets. This guide did not test those presets.
Limits of the measurement#
- The main result covers one developer and the periods described above.
- Commits do not measure quality.
- The two changes cannot be fully separated.
/usageshows whole percentages.- How a subscription counts tokens is not published, so modeled units are an approximation.
- Subagents stayed under 500k (at most 369k), so the threshold was not verified for them.
- The compaction simulation is a model, not a measured outcome.
Check the result on your own work: limit use per accepted change, rework and missed details after compaction.