limitcast limitcast.dev

Stretch your Claude Code plan

limitcast is a command-line tool that shows what fills your context, warns you before a usage window runs out, and stops new subagents that would use up the rest of it. Then it shows you what that saved. It reads data already on your machine. No logins.

$ limitcast trim
Every Claude Code session starts at 102.7k tokens before your first message.

## Measured savings: ~6.2k tokens per session (6% of your starting context)
- Disable 9 MCP servers you haven't used in 14 days (~0.9k): postman, context7, ...
- Hide 66 skills from the model (~5.3k): dataviz, block-kit, ...

Where your plan goes

Claude Code and Codex plans meter usage in rolling windows, such as a 5-hour window and a weekly one. Two things use them up faster than most people notice.

Starting context

Every session loads about 100k tokens before you type: hook output, MCP server instructions and tool lists, skill listings, agent lists and CLAUDE.md files. That block is sent again on every turn and to every subagent.

Subagents

Each subagent starts with its own copy of that context. A few parallel subagents late in a window can use up the rest of it, and you find out when you're locked out.

What limitcast does

Each feature shows the exact text limitcast prints. The numbers are an example; yours come from your own readings and transcripts.

Runout forecast

Free limitcast status
$ limitcast status
window     used  burn      runs out  resets     today     status
claude 5h  71%   +18.2%/h  16:40     17:00      -         AT_RISK
claude 7d  41%   +0.6%/h   -         Sun 03:00  6% left   OK
codex 5h   22%   +4.1%/h   -         18:12      -         OK

# in the status line:
5h 71% ⚠ out 16:40 · 7d 41% · today 6% left

Benefit: you see the lockout coming while there's still time to slow down, switch tools, or move heavy work past the reset.

Trim advisor

Free totals Pro names and cuts limitcast trim [--days N] [--share] [--apply]
$ limitcast trim --apply
✓ Hid 66 skills from the model (`/name` still works): dataviz, block-kit, …
✓ Turned off 9 MCP servers for ~/work/api: postman, context7, …
Takes effect in your next Claude Code session. Undo: `limitcast trim --undo`

$ limitcast trim --codex --apply
✓ Turned off 3 Codex MCP servers (enabled = false in ~/.codex/config.toml): firecrawl, icm, node_repl

Benefit: every token you cut is saved on every turn of every session and every subagent. The numbers come from your own transcripts, not estimates.

Subagent guard

Free preview Pro blocks limitcast install --guard
# a new subagent, 21 minutes before the window runs out:
limitcast: Claude 5h limit is 93% used and on pace to run out in ~21 min, before it resets. Finish with the agents already running, or set LIMITCAST_ALLOW=1 to spawn anyway.

# a new subagent while the window is tight:
limitcast: Claude 5h limit is 88% used; this subagent runs on Sonnet. Set LIMITCAST_ALLOW=1 to keep the main model.

Benefit: stops the most common way people lose the end of a window: a burst of subagents started when the window is nearly gone.

Subagent receipts and budgets

Pro limitcast budget subagents <percent>|off
limitcast: that Explore subagent used ≈2.1% of your 5-hour window (34 calls, 180k new tokens).

$ limitcast budget subagents 15
Subagent budget: 15% of each 5-hour window. Used this window so far: ≈6.4%. Once it's spent, the guard holds new subagents until the window resets.

Benefit: you see which subagents are expensive while you're still working, and a cap keeps one busy hour of agents from eating the whole window.

Cold-cache warning

Free preview Pro limitcast install --guard
limitcast: this session sat idle for 75 minutes, so its prompt cache has expired. Your message re-sends 300k tokens of context: ≈1.8% of your 5-hour window (≈0.03% if the cache were still warm). Send it again to go ahead, or run /compact first to shrink it.

Benefit: a "continue" after lunch no longer quietly costs a slice of your window; you decide whether to compact first.

Burn report

Pro limitcast report [--days N] [--out FILE]
$ limitcast report --days 7
| tool   | tokens | output | cache reads | share |
| claude | 863.6M |   2.9M |      840.8M |   99% |
| codex  |  12.9M |  44.1k |       12.6M |    1% |

Subagents used 21% of Claude tokens.

Benefit: shows which projects, models or habits use up your plan, across all three tools in one report.

Starting-context alerts

Pro limitcast install --alerts
limitcast: your Claude Code starting context grew ~3.4k tokens since your last session (MCP server instructions: linear new~2.1k, Instruction files: ~/CLAUDE.md +~1.3k). Run `limitcast trim` for details.

limitcast this week: 2 limits reached, warned ahead on 2 (avg 38 min), guard blocked 3 subagents, moved 5 to Sonnet, 1.9M tokens not re-sent. Details: limitcast results

Benefit: catches a new plugin, a growing CLAUDE.md or a chatty hook the day it appears, not weeks later.

Results

Free limitcast results [--days N] [--share]
$ limitcast results
Since limitcast started watching
- 2.9M tokens not re-sent. Your sessions now start smaller than the first one limitcast measured…
  Against your limit: ≈ 0.31% of a 5-hour window. From your own readings, 1% of it is about 167.0k new tokens or 11.2M cached ones…
- Warned you before 1 of the 1 limits it watched you approach, on average 40 min ahead.

Limits reached
- Claude 7d: hit Sat, Oct 24, 20:51, warned 40 min ahead

Benefit: you can check that limitcast works, and see what it's worth, from your own data.

Acts for you

Pro notify · budget · after-reset · results --html
# desktop notification (and your phone or Slack, if you set one):
limitcast — Claude 5h limit is on pace to run out at 16:40, before it resets at 17:00.
limitcast — Your Claude limit looks smaller: 1% of the 5-hour window now takes ~139k new tokens, down from ~167k.

# status line, when you need it:
limitcast: ⇄ other account 5h 12% · 7d 30% · ctx 162k · /compact

$ limitcast after-reset --detach -- claude -p "run the full test suite"
Will run at 17:00 (after the claude 5h reset), in the background.

Benefit: you hear about a limit before you hit it, and the heavy work waits for the reset instead of you.

Setup and upkeep

Free install · uninstall · doctor [--fix] · trial
$ limitcast doctor
✓ Status-line recorder installed
✓ Hook launcher points at this Node and limitcast
✓ Claude Code subagent guard installed
✓ Codex subagent guard installed and trusted
✓ Last Claude reading 0 min ago

Privacy

Free and Pro

Free Pro
Price $0 $79/year or $9/month, 14 days free. Team: $69/seat/year, 3 seats minimum
Runout forecast with NEAR warnings and the daily allowance ✓ ✓
Starting-context total and how much you never use (Claude Code and Codex) ✓ ✓
Results: value since install, limits warned about ✓ ✓
Subagent guard Preview Blocks, switches to Sonnet
Names each item to cut, and cuts it (trim --apply) ✓
Burn report, alerts, weekly summary ✓
Subagent receipts and a subagent budget per window ✓
Cold-cache warning Preview ✓
Notifications (desktop, phone, Slack or Discord), limit-change alerts, after-reset jobs, account pointer, dashboard ✓

What happens when you buy

  1. Start the trial. Pick yearly or monthly; Polar handles checkout. Nothing is charged for 14 days.
  2. Get your key. It's in Polar's customer portal, linked from your confirmation email, and starts with LIMITCAST-.
  3. Turn on Pro, in one minute. limitcast activate <key>, then limitcast install --guard --alerts and limitcast notify on. Restart Claude Code.
  4. Check it in a week. limitcast results shows what it warned you about, stopped and saved. Not worth it? Cancel in the portal before day 14 and pay nothing.

What works with which tool

Claude Code Codex Grok
Runout forecast ✓ ✓ No limit data on disk
Subagent guard ✓ ✓ Never blocks
Burn report ✓ ✓ ✓
Results ✓ ✓ -
Trim advisor ✓ - -

Get started

npm install -g limitcast     # or: brew trust samstull9007/limitcast && brew install samstull9007/limitcast/limitcast
limitcast install            # free: status-line recorder
limitcast trial              # Pro free for 7 days, no card
limitcast activate <key>     # Pro
limitcast install --guard    # the subagent guard (free: preview only)
limitcast doctor
limitcast results            # what limitcast did for you

Requires Node 20 or later on macOS or Linux. Homebrew 7 and later asks you to trust a third-party tap before installing from it, hence the brew trust. Restart Claude Code after installing. To add the slash commands, run claude plugin install limitcast --marketplace SamStull9007/limitcast in a terminal, or inside Claude Code /plugin marketplace add SamStull9007/limitcast, then /plugin install limitcast@limitcast.