Why Claude Code Limits Run Out: Usage Forensics
Find out from your own transcripts why the Claude Code 5-hour or weekly limit runs out: heavy days and sessions, subagent share, context size, the tool outputs that bloat it, looping hooks. Then a ranked list of fixes.
$7
What it does
- Shows which days, sessions and subagents used your Claude Code plan limit
- Finds the tool outputs and screenshots that bloat the context
- Catches looping hooks and miscounted subagent runs; read-only script included
- Breakdown usage between your main chat and background sub-agents
- Estimates how much you can save by changing how you handle large outputs
Who it's for
Founders building with AI tools
Understand why your usage limits disappear so you can build longer without interruption.
Try asking: “Find out why I hit my 5-hour limit today.”
Freelancers using AI for coding tasks
Identify which projects or specific tools are eating up your plan's tokens.
Try asking: “Which of my coding sessions used the most tokens this week?”
Teams managing shared AI accounts
Track usage across different days and sub-agents to keep costs down.
Try asking: “Check if our sub-agents are using the most expensive models by mistake.”
Why Claude Code Limits Run Out: Usage Forensics
Example session with this skill installed
I hit my 5-hour limit again at 14:00. Find out what used it and tell me what to change.
- Read your context and instructions
- Compiled the why claude code
Example on a fictional setup.
token_ledger.py days 7: today 1,240 calls, weight 41.8, subagents 9%, median context 255k (other days 120-160k).
token_ledger.py limits 7: limit message today at 14:02; window started about 09:00.
token_ledger.py top 2026-01-15T09:00: one session took 58% of the window (main thread, max context 410k), a second 21%.
token_ledger.py ctx 01-15: 64% of today's weight came from calls above 200k context.
token_ledger.py tools 3f2a: browser automation results 380k characters (the tool echoes the code it ran, one call carried an embedded file), screenshots 14 images, shell output 95k.
Stop-hook blocks today: 0. Subagent runs from meta files: 3, all on the cheaper model.
Main cause: one long session at 250-410k context; each step re-read it. Not subagents, not long answers.
Changes, largest first: start a fresh session around 200k with a short state note (estimate: about a third less weight on days like today); write browser results and screenshots to files and print one line; keep subagents on the cheaper model for reading work. An output-compression plugin would save only a few percent here, since output is a small share.
Connects securely to your tools. The creator never sees your data.
About this skill
Hit the 5-hour limit before lunch and do not know why? This skill answers from your own session transcripts instead of guesses.
What is inside
SKILL.md: a seven-step audit. Heavy days and limit messages first, then the sessions inside the burned window (main thread or subagent, model, largest context), then what filled the context in those sessions, looping Stop hooks, and an honest count of subagent runs. It ends with a report format: the main cause in one line, the numbers, then what to change and what it should save.scripts/token_ledger.py: a read-only, standard-library script. It deduplicates API calls, weights tokens by price ratios (cache reads, cache writes, input, output) and prints per-day weight, subagent share and median context, the top sessions in a time window, context-size buckets for one day, the times of limit messages, and the tool results and attachments that filled one session. It writes nothing and makes no network calls.- A list of the patterns that usually turn up: long sessions re-reading a huge context, browser tools echoing large code into the chat, screenshots, a hook that blocks the same turn again and again, subagents silently running on the most expensive model, and usage from other devices on the same account.
Who it is for: heavy Claude Code users on a subscription plan who keep running into the limit.
Needs: Claude Code transcripts on disk and Python 3. Weights are relative (they rank days and sessions), not the plan's own meter.
This skill only sees activity on your local machine. It cannot track usage from the mobile app or web browser unless they share the same history.
This skill uses a Python script (token_ledger.py) to parse local JSON transcript files located in ~/.claude/projects or a custom CLAUDE_PROJECTS_DIR. It calculates relative weights for input, output, and cache operations (standardized at 1, 5, 1.25, and 0.1). It analyzes sub-agent metadata and hook error logs to identify looping turns. The analysis is read-only and does not modify session history.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
- Claude Code
Python 3 (standard library only)
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.