Why Claude Code says you've hit your limit (and how the 5-hour and weekly windows work)
Short answer: Claude Code has two limits. A five-hour session window that starts with your first message, and a weekly limit on top. Hit either one and you wait for it to reset. Run /usage to see how much of each you've used and when it resets.
Written by GuruHat, which makes AI Meter. GuruHat is not affiliated with Anthropic; AI Meter works with Claude Code. Checked in November 2026; Anthropic changes its plans and limits from time to time, so the current numbers are on its own help pages.
Want to see the limit coming? AI Meter shows how much of your Claude Code limit is left, and when it resets, in the Mac menu bar or on the Windows taskbar. No account, no subscription.
Get AI Meter →The two windows
The five-hour session window
Your first message starts a five-hour clock. Everything you do with Claude Code (and Claude on the web, desktop and mobile, on Pro and Max plans) draws from the same allowance until the clock runs out. Messages later in the window don't extend it. The next window starts with the first message you send after the reset.
| Time | What happens |
|---|---|
| 9:10 am | First message. The window starts and will reset at 2:10 pm. |
| 11:30 am | A long agent run uses a big share of the window. The reset time doesn't move. |
| 1:15 pm | You hit the limit. Claude Code tells you to wait for the reset. |
| 2:10 pm | The window resets. Your next message starts a new five hours. |
The times above are an example, not a promise: how much fits in a window depends on your plan and on how heavy your requests are.
The weekly limit
On top of the five-hour window there is a weekly limit. Most people never see it. If you run long agent loops most days, it's the one that surprises you, because it doesn't clear at the next five-hour reset. /usage shows it, with its own reset time.
Why a few messages can use a lot
The limit follows how much work each message causes, not the message count. These are the usual culprits:
| What uses more | Why | What helps |
|---|---|---|
| A very long conversation | Each new message carries the earlier conversation with it. | Start a new conversation per task with /clear, or shrink the history with /compact. |
| Big files and whole-repo searches | Everything Claude reads becomes part of the context. | Point it at the specific files or folders you mean. |
| Agent loops, many tool calls, subagents | One request can turn into dozens of steps. | Give clear stopping points, and check progress between steps. |
| A larger model | The most capable models use more of your allowance per task. | Use a lighter model for simple edits and renames, and the larger one for hard problems. |
| A long CLAUDE.md | It's loaded into every session. | Keep it short and current. |
| Chatting elsewhere | Claude on the web, desktop and mobile shares the same allowance on Pro and Max. | Count it when you plan a heavy coding session. |
Eight habits that stretch your limit
- One task per conversation. Run
/clearwhen you switch tasks. - Compact before it gets huge.
/compactkeeps the useful summary and drops the bulk. - Name the files. "Fix the date bug in
src/dates.ts" beats "find the date bug". - Match the model to the job. Don't spend your best model on a rename.
- Plan first, then execute. A short plan you approve is cheaper than an agent heading the wrong way for ten minutes.
- Keep CLAUDE.md lean. Rules you actually need, nothing else.
- Check
/usagebefore a long run, not after it dies. - Time your big jobs. If a window resets in 20 minutes, a heavy refactor can wait for the fresh one.
What to do when you hit the limit
- Wait for the reset.
/usageor claude.ai › Settings › Usage shows when. - Do the thinking work meanwhile: write the plan or the tests by hand, or review the diff so far.
- Look at Anthropic's help pages for the current plan options, including higher tiers and pay-per-use. They change, so check them directly.
See it before you hit it
/usage is accurate, but you only see it when you ask. AI Meter by GuruHat keeps the percentage left in the Mac menu bar or on the Windows taskbar, with the reset time one click away. It uses the Claude Code sign-in already on your computer, so there's no API key and no new account. More on the built-in options in how to check your Claude Code usage limit. Using Codex too? See how to check your Codex usage.
Frequently asked questions
How long is the Claude Code limit window?
The session limit is a rolling five-hour window that starts with your first message. When it runs out you wait until it resets; /usage shows the exact reset time. A separate weekly limit sits on top of it.
Why did I hit my Claude Code limit after only a few messages?
The limit counts how much work each message causes, not how many messages you send. A long conversation, large files, many tool calls or subagents, and a larger model all use more of the window per message.
Does chatting on claude.ai use my Claude Code limit?
On Pro and Max plans, usage in Claude on the web, desktop and mobile counts toward the same allowance as Claude Code.
Does the five-hour window reset at a fixed time of day?
No. It starts with your first message, so the reset time depends on when you started. Check /usage or AI Meter for the exact time.
Is there a fixed number of messages per window?
No. The allowance depends on your plan and on how heavy your requests are, so it varies. Anthropic's own help pages have the current plan details.