Skip to content

Claude per-model weekly caps, model-aware limit estimate, and Since Codex reset - #1

Merged
Longado merged 2 commits into
mainfrom
feat/claude-model-limits
Nov 25, 2026
Merged

Longado merged 2 commits into
mainfrom
feat/claude-model-limits

Conversation

@Longado

@Longado Longado commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Shows Claude's per-model weekly caps (Fable) next to the all-models week, and keeps the "100% ≈ $" estimate steady when the model mix shifts.

What changes

Per-model caps (2f56496)

  • Claude's get_usage now reports a weekly cap per model (limits entries of kind weekly_scoped, or model_scoped) and each model's share of the all-models week (weekly_scoped_shares). The popover shows the cap as its own row ("7d Fable"), and tokenly --quota lists it too.
  • "100% ≈ $" prices each model's usage at that model's own rate. Before, it fell whenever more of the week went to Fable.

Earlier work that was running in the installed app but never committed (ef9e47e)

  • New period: Since Codex reset. It shows Codex usage from the current weekly allowance's reset time, including other devices when that is enabled.
  • The live Codex limit also refreshes on manual refresh.
  • Prices: added claude-opus-4-8, gpt-6.2-astra and gpt-6.2-sol. GPT-6.2 requests above 272,000 input tokens use the long-context rate (input ×2, output ×1.5) with the built-in prices.
  • Codex cache writes are no longer counted as input as well.
  • Zero-token records and placeholder models (<…>) are skipped.
  • README updated to match. Build number 31 → 34.

Checked

  • 14 unit tests pass (python3 -m unittest discover -s tests).
  • tokenly.py usage tables and --quota run against real local logs.
  • This build has been installed in /Applications since Nov 24 and renders correctly (popover snapshot).

🤖 Generated with Claude Code

Longado and others added 2 commits November 24, 2026 00:10
Carried over unchanged from the main checkout's working tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude reports a weekly cap per model (Fable) and how many points of the
all-models week that model used. Tokenly now shows the cap and prices each
model's usage at its own rate, so "100% ≈ $" no longer drops when the
mix shifts toward Fable. The CLI's --quota lists the caps too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Longado
Longado merged commit cbb1ca5 into main Nov 25, 2026
4 checks passed
@Longado
Longado deleted the feat/claude-model-limits branch November 25, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant