forecast

forecast is a command for Claude Code from rhan1/crewline. It costs 29 tokens per session (435 once invoked), scanned A, original, MIT.

A command that estimates which five-hour usage windows are occupied by running or waiting jobs across sessions and shows queued work. It also provides a dry run for checking whether a proposed job would fit.

In plain words
What is it for?
Use it to check current capacity, identify jobs filling a window, see queued jobs and reset times, or test a proposed provider, tier, and job size before running it.
Why use it?
It avoids starting work in a full usage window and explains when waiting jobs can begin, so operators do not need to calculate capacity manually.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; mentions subagents; mentions Codex.

Good fit Use it to check current capacity, identify jobs filling a window, see queued jobs and reset times, or test a proposed provider, tier, and job size before running it.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rhan1/crewline/forecast
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/rhan1/crewline

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for forecast

README.md
[![agentmods](https://agentmods.dev/badge/commands/rhan1/crewline/forecast/github.svg)](https://agentmods.dev/commands/rhan1/crewline/forecast)
Your own site
<a href="https://agentmods.dev/commands/rhan1/crewline/forecast"><img src="https://agentmods.dev/badge/commands/rhan1/crewline/forecast/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for forecast

Your own site · 80×15
<a href="https://agentmods.dev/commands/rhan1/crewline/forecast"><img src="https://agentmods.dev/badge/commands/rhan1/crewline/forecast.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00435
Opus 5.5 $0.00012 $0.00174
Sonnet 5.5 $0.00006 $0.00087
Haiku 4.5 $0.00003 $0.00044

Measured 10d ago against content hash a68e64c0d140, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

forecast scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/forecast.md · 26 lines

What it actually says

Run the usage forecast and explain it in plain English.

node ~/.claude/scripts/quota-forecast.mjs

Then give a short read-out — the call, not the arithmetic:

  1. What's full — any window marked FULL/OVER/TIGHT: which sessions' jobs fill it and when it frees up (the reset time).
  2. What's waiting — jobs in the "waiting" list, whose they are, and when they start on their own (they re-check every 2 minutes and start the moment they fit; nothing needs doing).
  3. What to do — usually nothing. Say so. Only if an urgent job is waiting: re-run it with DISPATCH_PRIORITY=pin, or DISPATCH_ADMIT=off to force it.

If asked "will X fit?", answer with a dry run, e.g.:

node ~/.claude/scripts/quota-forecast.mjs --admit --provider codex --tier high --size L --task what-if --dry-run

(--provider agy --tier flash for Gemini; sizes S/M/L/XL.)

Claude agents: running Claude subagents (all sessions) are counted on the Claude 5h row; they never wait — the agent router just avoids sending work to a 5h window that is already spoken for. The "Window sizes" line says whether the daily re-measure of each window's size changed anything.

How it decides (for questions): the caller picks the model from the task's needs; the forecast only decides when a job starts. It never switches vendor or downgrades a model. First come, first served; while another project is waiting, no project takes more than its fair share; a DISPATCH_PRIORITY=pin job goes first; a running job is never stopped. A job may fill a window to 85 % (100 % in the window's last hour).

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 26 lines · 29 tokens per session scan A a68e64c0d140

Subscribe to this mod's changes

forecast is a command published in the GitHub repository rhan1/crewline (2 stars, last pushed 11d ago), licensed MIT. It adds 29 tokens to every session and 435 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.