Blog / Cost
Claude Code Habits That Burn Usage Limits (Our Data)
Six Claude Code habits ranked against our own transcripts: huge contexts, Opus for everything, cold resumes, marathon sessions, idle gaps, model switches.

We priced 792 Claude Code sessions from about 7.5 weeks of our own transcripts and looked for the habits that cost the most. Large contexts and Opus as the only model dominate the dollars. Cold resumes cost $681. Marathon sessions are rare but expensive. Two more habits come from Anthropic's docs.
Table of contents
- Summary
- How we measured, and what the numbers mean
- Habit 1: sessions that grow past 200k tokens of context
- Habit 2: Opus for everything
- Habit 3: cold resumes after a long break
- Habit 4: marathon sessions
- Habit 5: idle gaps of 5 to 60 minutes
- Habit 6: switching model or MCP servers mid-session
- The habits side by side
- What to change first
- Frequently asked questions
- Key takeaways
Summary
Anthropic does not publish token counts for the Pro and Max limits, so nobody can say exactly which habit eats your allowance. What we can do is price our own usage and see where the money went. Dollars are a stand-in here, not the plan's own unit, but the habits that cost the most dollars are also the ones that send the most tokens.
| Habit | What we measured | Size |
|---|---|---|
| Contexts over 200k tokens | Requests with 200k+ tokens of context | 24,731 requests, 63.8% of cost |
| Contexts over 400k tokens | Requests at 400k+ | 11,611 requests, $2,474 |
| Opus for everything | Opus 5.5 share of cost | 99.2% ($5,952 of $5,998) |
| Cold resumes | Requests after a gap over 1 hour that rewrote the cache | 405 resumes, $681 (11.4% of cost) |
| Marathon sessions | Cost per session | p90 $17.35, max $144.47, median $3.28 |
| Idle gaps | Gaps of 5 to 60 minutes between requests | 1,692 gaps, cost not attributed |
| Switching model or MCP servers mid-session | Documented by Anthropic | Not measured by us |
All of this is one team's usage over a short period, mostly on one model. It says nothing about Claude Code in general. The next section explains what we counted, so you can judge the numbers.
Read the method before the conclusions.
How we measured, and what the numbers mean
The data comes from the Claude Code transcripts of one small team that runs its own products on Claude Code every day: the seventeen sites and stores on the Code Tycoon home page, plus Code Tycoon itself. A script read the 1,036 transcript files under ~/.claude/projects on 2026-11-23 and kept totals only. No prompt text, file names or project names were kept.
| Item | Value |
|---|---|
| Period | 2026-10-02 to 2026-11-23 (about 7.5 weeks) |
| Sessions with model usage | 792 |
| Model requests | 54,344 |
| Total, at API list prices | $5,998 |
| Median session | $3.28 (p25 $1.78, p75 $7.96) |
| Prompts per session | median 2, mean 3.5 |
Cost is API list-price equivalent, not what we were billed. We multiplied tokens by Anthropic's published per-million prices: Opus 5.5 at $4 input, $20 output and $0.20 cache read; Sonnet 5.5 at $2, $10 and $0.10; Haiku 5.5 at $0.10 and $0.50. Cache writes are 1.25 times the input price for the 5-minute cache and 2 times for the 1-hour cache (Anthropic pricing). Claude Code itself calculates its session cost figure the same way, locally "from token counts at list price," and for Pro and Max the figure "isn't relevant for billing purposes" (Claude Code costs docs). If you pay a flat plan fee, read our dollars as the value of the usage, not as a bill.
Each API message is counted once, de-duplicated by message ID, and subagent work is included.
Context size means input plus cache read plus cache write tokens of one request. Claude Code "sends your full conversation with every request" (costs docs), so context size is the best single measure of what a request weighs.
A cold resume is a request more than 60 minutes after the previous one in the same transcript, that wrote over 20,000 tokens to the cache and read less than it wrote.
Caveats, stated once so they apply to everything below. It is one team's usage. Opus 5.5 handled almost all of it, so we cannot say what a Sonnet-heavy team would see. Seven and a half weeks is short. The team's sessions are often single tasks handed over by a task board, with a median of two prompts, which is not how everyone works. And dollars at list price are not your plan's limit, which Anthropic does not publish in tokens: its help center says "Pro and Max plans have a five-hour session limit and a weekly limit" and that "these limits are shared across Claude and Claude Code" (Using Claude Code with your Pro or Max plan), with no counts.
Habit 1: sessions that grow past 200k tokens of context
Every request carries the whole conversation. The longer a session runs without a reset, the more every later request weighs. Here is how our requests and dollars split by context size.
| Context size of the request | Requests | Cost |
|---|---|---|
| Under 50k | 165 | $7 |
| 50k to 100k | 7,014 | $567 |
| 100k to 200k | 22,434 | $1,599 |
| 200k to 400k | 13,120 | $1,351 |
| 400k and over | 11,611 | $2,474 |
Requests over 200k were 24,731, which is 45.5% of all requests and $3,825, or 63.8% of the total cost. The 11,611 requests at 400k and above cost more than the 22,434 requests in the 100k to 200k band, on about half as many requests.
That is the largest effect in our data, and it comes from letting contexts grow. Anthropic's docs describe the cause: "Stale context wastes tokens on every subsequent message," and the recommended fix is "Use /clear to start fresh when switching to unrelated work" (costs docs).
One caution on interpretation. Large contexts are partly cheap, because cached tokens are read at a fraction of the input price (Opus 5.5 cache reads are $0.20 per million against $4 for fresh input). We priced them that way. The cost still adds up because there are so many requests at that size. And a long context is not always a mistake: large codebases and long tasks need it. The habit that burns allowance is carrying a big context into unrelated work.
What to do: run /clear between unrelated tasks, and start a new session for a new task. For a longer comparison of /clear and /compact, see the Claude Code cost per month post, which uses the same dataset.
Habit 2: Opus for everything
Opus 5.5 accounted for 99.2% of our cost: $5,952 of $5,998 across 53,848 of 54,344 requests. Sonnet 5.5 cost $44 over 315 requests, one other model $1.88 over 11, and Haiku 5.5 $0.38 over 170.
This is partly a default. Claude Code's docs say Opus 5.5 is the default model for Pro, Max, Ultra, Team, Enterprise and API accounts (model config docs). If you never change it, everything runs on Opus.
At list prices, Sonnet 5.5 costs half of Opus 5.5 per token ($2 input and $10 output per million against $4 and $20). The costs docs say "Sonnet handles most coding tasks well and costs less than Opus. Reserve Opus for complex architectural decisions or multi-step reasoning" (costs docs). They also list "Opus left as the default model" among the usual causes of unexpectedly high spend on an API plan.
Our data shows that nearly every dollar went to one model, and the docs name that as a common cost driver. Our Opus vs Sonnet cost post works through the trade-off, and the subagent model post covers cheaper models for delegated work.
Habit 3: cold resumes after a long break
When you return to a session after the prompt cache has expired, the first request has no cache to read. It sends the whole history as fresh input and writes it back to the cache. Anthropic's costs docs say: "your first message after a break longer than the cache lifetime misses the cache and reprocesses your full context" (costs docs).
We found 405 cold resumes under our definition (a gap over one hour, over 20,000 tokens written to cache, less read than written). The cache rewrites cost $681, which is 11.4% of the total.
How long the cache lasts depends on how you use Claude Code. Per Anthropic's Claude Code caching docs, "Unless you choose a TTL yourself, Claude Code requests the one-hour TTL only on a Claude subscription within your plan's included usage." On an API key or with usage credits the main conversation gets the five-minute lifetime, and subagents and compaction default to five minutes (prompt caching docs). We chose a gap of one hour as our cutoff because it sits past both lifetimes, so these resumes are misses on either setting.
What to do: finish or close sessions you will not touch for an hour. If you must return to an old session, starting a new session with a short summary of the state avoids re-reading the whole history. Our post on prompt caching and cold resumes goes through the mechanics, and Claude Code cost per month puts the same figure in a monthly picture.
Habit 4: marathon sessions
Session cost is heavily skewed. The median session cost $3.28. The 90th percentile was $17.35, and the most expensive single session cost $144.47.
| Percentile | Cost per session |
|---|---|
| p25 | $1.78 |
| Median | $3.28 |
| p75 | $7.96 |
| p90 | $17.35 |
| Max | $144.47 |
The maximum is far above the median. A long session carries a growing context (habit 1), may hit cold resumes (habit 3), and keeps every earlier mistake in the conversation. Anthropic's docs name "long sessions that were never cleared" as a typical cause of unexpectedly high spend.
The tail is the point. A few sessions account for a disproportionate share of cost, so watching your most expensive session each week is a cheap check. Claude Code's /usage command shows a session's cost and plan usage (commands docs), and our comparison of ccusage, /cost and Code Tycoon covers tools that rank sessions across projects.
What to do: set a rule that any session over a certain cost, or over a certain number of hours, gets closed and restarted with a short brief. Choose the threshold from your own median, not ours.
Habit 5: idle gaps of 5 to 60 minutes
We counted 1,692 gaps of 5 to 60 minutes between consecutive requests in the same transcript. They are the pauses in which you read a diff, answer a message or step away.
The reason this habit is on the list is the five-minute cache lifetime. If the cache lasts five minutes, a gap longer than that means the next request misses it. But our data does not show that these gaps were misses, and we want to be careful here. Claude Code's main conversation may use a one-hour cache, depending on your plan and settings: the docs say it requests the one-hour lifetime "only on a Claude subscription within your plan's included usage," and five minutes with usage credits, an API key or a cloud provider (prompt caching docs). On a subscription, many of our 1,692 gaps would have stayed warm. On an API key, many would not.
So 1,692 is a count of pauses, not of misses. If you pay by API key, the gaps between 5 and 60 minutes are the ones to watch. If you are on a plan, the 60-minute line matters more, which is habit 3.
What to do: check which cache lifetime you actually have before you change your habits. Anthropic documents a promptCacheTtl setting and a CLAUDE_CODE_PROMPT_CACHE_TTL variable that take 5m or 1h (v2.1.242 or later, per Claude Code's docs as of 2026-11-23). Do not assume the five-minute rule applies to you.
Habit 6: switching model or MCP servers mid-session
This one is documented, not measured. Our data does not capture it, so we have no count or cost for it.
Anthropic's prompt caching docs list what invalidates the cache in Claude Code: switching models, because each model has its own cache; MCP servers connecting or being removed when their tools are not deferred; plugin changes; compaction; fast mode; accumulating images; and upgrading Claude Code (prompt caching docs). Each of those makes the next request pay for the full context again.
The practical consequence is simple. If you switch from Opus to Sonnet halfway through a long session, the next request reprocesses the whole conversation for the new model. Switching is not wrong, but it is cheapest at the start of a session or right after /clear.
What to do: choose the model and the MCP servers before the session starts, and keep them for its length. If you need a different model for a different task, start a new session. If an MCP server is connected only for one occasional job, check whether a skill or plugin would do it more cheaply; this guide to what skills, MCP servers and plugins are each for helps you decide.
The habits side by side
| # | Habit | Evidence | How big | Where to read more |
|---|---|---|---|---|
| 1 | Contexts over 200k | Our transcripts | 63.8% of cost | Costs docs |
| 2 | Opus for everything | Our transcripts | 99.2% of cost | Model config docs |
| 3 | Cold resumes | Our transcripts | 405, $681 | Prompt caching docs |
| 4 | Marathon sessions | Our transcripts | p90 $17.35, max $144.47 | Costs docs |
| 5 | Idle gaps, 5 to 60 min | Our transcripts | 1,692 gaps; misses unknown | Prompt caching docs |
| 6 | Mid-session switches | Documentation only | Not measured | Prompt caching docs |
The first four overlap. A marathon session is usually a large-context session, and cold resumes happen mostly in old ones, so you cannot add the percentages. Rank them as a list of things to look at, not as a budget.
What to change first
If you change only three things, change these, in this order.
- Clear between tasks. Contexts over 200k carried 63.8% of our cost.
/clearbetween unrelated tasks addresses habits 1 and 4 together and costs nothing. - Pick the model on purpose. Do not leave the default model on for every task. Decide per session, at the start, which tasks need Opus. This also avoids habit 6.
- Close sessions you will not touch for an hour. It removes most cold resumes, which cost us $681 over seven and a half weeks.
For parallel work these multiply: five sessions each carrying a large context draw on the same shared allowance. Our guide to running several sessions at once covers the setup, and Claude Code usage limits covers what is published about the limits. If you choose between a plan and the API, see Claude Code API vs subscription.
You can find your own versions of these numbers with /usage, with community tools, or with Code Tycoon, which reads your transcripts locally, prices every session and flags oversized contexts and cold resumes. It also ranks wasteful habits in dollars, in the working with Claude view. The self-hosted version is free.
Frequently asked questions
What burns Claude Code usage limits fastest?
In our own transcripts, long contexts: requests over 200k tokens were 45.5% of requests and 63.8% of cost at API list prices. Anthropic does not publish token counts for the Pro and Max limits, so we cannot map dollars to your limit exactly. It is one team's data.
How much does a cold resume cost?
We counted 405 cold resumes (a gap over one hour that rewrote more than 20,000 tokens to the cache) that cost $681, or 11.4% of our total. The figure is list-price equivalent and covers one team over seven and a half weeks.
Is it bad to use Opus for everything?
Opus 5.5 was 99.2% of our cost. Anthropic's docs say Sonnet handles most coding tasks and costs less, and that Opus left as the default is a common cause of high spend.
Do idle gaps of a few minutes cost me a cache miss?
Not necessarily. The default cache lifetime is five minutes, but Claude Code requests a one-hour lifetime for the main conversation on a subscription within plan usage. On an API key the main conversation gets five minutes. We counted 1,692 gaps of 5 to 60 minutes in our data.
Does switching models mid-session cost extra?
Per Anthropic's prompt caching docs, yes: each model has its own cache, so a switch means the next request reprocesses the full context.
Are these numbers my bill?
No. They are API list-price equivalents of token usage. On a Pro or Max plan you pay a flat fee, and Claude Code's own cost figure is not relevant for billing there.
How do I measure my own habits?
Run /usage for session cost and plan usage, price your transcripts with a tool such as ccusage, or use Code Tycoon. Compare your own percentiles to ours before changing anything.
Key takeaways
- Contexts over 200k tokens carried 63.8% of our cost at list prices. Clear between unrelated tasks.
- Opus 5.5 was 99.2% of cost. Choose the model per session, at the start.
- 405 cold resumes cost $681. Close sessions you will not touch for an hour.
- Session cost is skewed: median $3.28, p90 $17.35, max $144.47. Watch the top of your own list.
- Idle gaps and mid-session switches may cost you, depending on your cache lifetime and settings. The first we counted in our data; the second comes from Anthropic's caching docs.
- This is one team over seven and a half weeks, mostly on one model. Check your own numbers.
If you want your own habits ranked in dollars, self-host Code Tycoon or start with Claude Code usage limits.
Related articles
- Claude Code cost per month: the same transcript dataset in a monthly view.
- Claude Code prompt caching and cold resumes: how the cache lifetime works.
- Opus vs Sonnet for Claude Code cost: the model trade-off in detail.
About this research
Anton Goldshtein is a two-time founder who previously bootstrapped a company to $100M in revenue. His team runs its own products on Code Tycoon every day.
The numbers come from our own Claude Code transcripts, read on 2026-11-23, covering 2026-10-02 to 2026-11-23: 792 sessions and 54,344 model requests from one small team, priced at Anthropic's list prices. Only totals were kept. The documentation quotes were read on 2026-11-23 from Anthropic's pricing, Claude Code and help-center pages. Code Tycoon prices sessions and flags these habits. Your own transcripts will show your own numbers.
Content reviewed and updated: 2026-11-26
Keep reading
Cost Per Committed Task: Benchmarking Your Claude Code Use
Cost per session hides what you got. Our 792 sessions show a $3.28 median overall and $6.59 for sessions that committed. How to measure yours, with caveats.
Context Size vs Cost: When to /clear and When to /compact
Long Claude Code contexts cost more per request. When to use /clear, when /compact pays for itself, with list-price arithmetic and numbers from 54,344 requests.
Claude Code API Billing vs Subscription: When Max Pays Off
Compare Claude Code API billing with Pro and Max: break-even math at Opus 5.5 prices, what each route caps, and which one fits solo, heavy and team use.