If you use Claude Code on a Pro or Max subscription, two limits decide when you have to stop: a rolling session limit and a weekly limit. Hitting either one in the middle of a refactor is the usual way people find out they exist.
The 5-hour limit
Your session limit counts usage in a window that starts with your first message and resets five hours later. Heavy agent runs, long files in context and bigger models use it faster.
The weekly limit
On top of that there is a weekly cap, and some plans also have a separate weekly cap for a specific model. The weekly limit resets at a fixed time, which Claude shows in its usage panel.
Watching both without leaving the editor
- Claude's usage panel shows both percentages, but you have to open it.
- Quotabar puts the current percentage in the Windows tray and shows both limits and their reset times on click.
- With Pro, Quotabar warns you at 80% and 95%.
Habits that stretch a window
Start a fresh session for unrelated tasks, keep only the files you need in context, and save long refactors for right after a reset.