Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>WhyLimitNew to Visual Studio Code? Get it now.
WhyLimit

WhyLimit

phusy2001

|
1 install
| (0) | Free
Unofficial usage insights for Claude Code: what is contributing to your limits usage, in plain language, with a drill-down and concrete actions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WhyLimit

Unofficial usage insights for Claude Code. Not affiliated with or endorsed by Anthropic.

A VS Code extension that answers: "What is contributing to my limits usage, and what should I do about it?"

It reads the history Claude Code already keeps on your machine, explains where your usage goes in plain language, shows how close you are to the 5-hour and weekly limits, compares it with your own past, and gives actions you can paste into Claude. No network calls, no runtime dependencies.

WhyLimit overview

Features

  • Status bar: size of the conversation you are working in (Chat: 87k → Long chat → Too long · /compact), plus a warning when a limit is close.
  • Verdict and suggestions: what costs you most, with ready-to-copy fixes (/compact, /model, /mcp, or a rule for your CLAUDE.md).
  • Health cards: long conversations, start-up cost, expensive model, helper agents, long replies.
  • Quota: your real 5-hour and weekly percentages (cached by Claude Code), reset times and weekly pace.
  • Trends: against the previous period, per project, and a warning when today costs far more than a typical day.
  • Culprits: costliest shell commands, repeated reads, start-up breakdown, a session-by-session replay and hand-off notes.
  • Progress: did a suggestion actually help? Before/after, usage by week, Markdown export.
  • English, Vietnamese, Japanese, Simplified Chinese and Spanish.

Install

Download whylimit-<version>.vsix from Releases and use Extensions → … → Install from VSIX…. Requires VS Code 1.85+.

From source (Node.js 20+):

npm ci
npm run install-local   # builds, links into ~/.vscode/extensions; then Developer: Reload Window

Use

  1. A WhyLimit item appears in the status bar. Click it, or run WhyLimit: Show Insights.
  2. Read the verdict in Overview, press a copy button and paste it into Claude Code.
  3. If Quota shows no figures, run /usage in Claude Code once.

Try it without real history: npm run demo opens VS Code on made-up data.

Command What it does
WhyLimit: Show Insights Open the panel
WhyLimit: Calibrate with /usage Enter the weekly % (only needed without real figures)
WhyLimit: Copy Hand-off for Current Session Copy a summary to start a fresh session
WhyLimit: Export Report Save a Markdown report
WhyLimit: Enable / Disable Reminder Hook Optional hook that nudges Claude to limit long command output
WhyLimit: Keep 90 Days of Claude Code History Stop Claude Code deleting old transcripts after 30 days

Settings

Setting Default Description
whylimit.scope workspace workspace or all projects
whylimit.days 7 Period analysed
whylimit.language en en, vi, ja, zh-CN, es
whylimit.contextWarnK / contextAlertK 0 (auto) Yellow / red conversation length, in thousands of tokens
whylimit.extraDirs [] Copies of another machine's ~/.claude/projects to include
whylimit.routineSkills commit-style skills Skills counted as simple, repetitive work
whylimit.exportSessionTitles false Include session titles in exports

Privacy

WhyLimit reads ~/.claude/projects and a few fields of ~/.claude.json, and never sends anything anywhere. It writes only: its own settings and state in VS Code, a small daily summary in ~/.claude/whylimit/daily.json (costs, no titles or content), and, only when you ask, one hook entry or cleanupPeriodDays in ~/.claude/settings.json (with a timestamped backup) and the report file you choose. Details: docs/how-it-works.md.

Limitations

  • Costs are API-price equivalents estimated from local transcripts, not Anthropic's accounting. Signed-in (Pro/Max) users see the real quota % as the headline and costs labelled as an API-price equivalent; with an API key the estimate is checked against Claude Code's own per-session cost.
  • It sees Claude Code on this machine (plus extraDirs), not claude.ai or other computers, whose use is only inside the real quota figures. Once there are enough real figures, WhyLimit shows how much of the quota this computer does not explain. That share is a lower bound, and outside use that always grows in step with local use cannot be told apart.
  • Claude Code's file formats are not a public API. WhyLimit warns when records lose the fields it needs, when the price table is missing or fixed prices cover much of the cost, and when its tokens or costs drift more than 15% from the cost record Claude Code writes in each transcript; the warnings name the Claude Code version.
  • Hands-on testing so far is on macOS. Unit tests run on Linux, macOS and Windows, and CI also runs the extension in a real VS Code on all three. Japanese, Simplified Chinese and Spanish are machine-translated and not yet reviewed by native speakers; wording fixes are very welcome (see docs/i18n-glossary.md and CONTRIBUTING.md).

More

  • Status bar, panel, suggestions, quota, how the numbers are computed
  • Troubleshooting
  • Contributing · Security · Changelog · MIT License
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft