jamsession-get-agent-usage
БесплатноБез исполняемых скриптовНе проверенReport provider usage, quotas, remaining capacity and reset times; not installation or authentication-only checks.
от jamonholmgren★ 26 звёзд на GitHubОб этом скилле
Get Agent Usage
Run
jamsession usage --jsonfor all providers, orjamsession usage <provider> --jsonwhen the user names one provider. Useusage, notstatus, because this task needs structured quota data rather than readiness diagnostics.Treat exit status 2 as a valid partial result and format every provider returned. If the command produces no valid JSON, report the command failure plainly.
Omit session windows and Codex Spark primary/secondary windows. Present the remaining useful quota windows in command provider order:
Provider Window Remaining Resets Forecast The command lists a weekly window before a 5-hour session window. Failover uses that longer window for its threshold. When a row includes
account, show that login in the Provider cell (Claude (personal)) and keep each account's windows separate. Accounts are different quota pools. Do not add them together. When a row includesspend, show that calendar month'susdagainstbudget_usdfor that account. Do not add spend across accounts.Use title-case provider names, concise window labels, and percentage signs on
remaining_percent. Do not showused_percent. Keepgpt-reserve; it is the Codexbase_model_inferenceweekly bucket, although Codex does not expose which exact models or fallback path consume it. Report only Claude'sAll Models (weekly)window; omit its separate Fable window. Repeat the provider name on every row, including when it has multiple windows. Put a remaining-quota indicator immediately before the name in the Provider column: 🟢 above 70%, 🟡 above 50% through 70%, 🟠 above 0% through 50%, 🔴 at 0%, and ⚪️ when usage is unavailable. Do not add a Used column. For Cursor, report Included and Auto as separate breakdown rows when available, but omit its API/Other models category entirely; never include that category in a usage report.Fill the Forecast column with one of
📉 Run out,🎯 Just rightor📈 Extra. It says where usage lands at reset if the pace so far continues. Projectused_percent ÷ fraction of the window elapsed, usingwindow_minutesand the reset time to find the elapsed fraction. A projection of 110% or more is📉 Run out, 90% to under 110% is🎯 Just right, and under 90% is📈 Extra. A window already at 0% remaining is📉 Run out. A window with 0% used is📈 Extra. Use an em dash when usage is unavailable, or when the window length or reset is unknown and usage is above 0%. Antigravity exposes no window length: when it has a reset, assume a 7-day window, mark its forecast with an asterisk, and say after the table that the window is assumed. Early in a window the projection is noisy; say so in one sentence after the table when a row's window is under 20% elapsed. State the thresholds once after the table.Normalize every reset to Pacific time. Format dates as
Sept 14 (in 7 days). For today or tomorrow only, add the compact reset time, such asSept 8 (tomorrow @ 9:12pm). Use calendar-day differences, not elapsed 24-hour periods. Cursor's monthly plan resets on the 21st; when its CLI does not expose a reset, use the next applicable 21st and calculate the day count. Devin may expose only a reset countdown; retain it without inventing a precise reset timestamp. For Muse, preserveobserved_atas an “as of” note rather than presenting a retained observation as a live balance. A reset of1970-01-01T00:00:00Zis an empty value: showNot exposed.For a provider whose usage is unavailable, include one row with
Usage unavailablein the Window column and em dashes elsewhere. Do not imply that the provider itself is unavailable or unauthenticated. Grok and Copilot collection opens their supported interactive/usagescreens through a local Python PTY. Copilot runs in a fresh temporary folder, accepts only the session-local trust prompt, and uses plan mode; do not substitute model-reported usage, session-token counts, or a private API. Devin reads its startup subscription screen without a prompt. Muse uses its official CLIusage/readmethod, falling back to its local/usagescreen in a fresh temporary folder with shell and writes disabled. Preserve the screen's literal as-of/reset text when no full timestamp is exposed.usage_not_observedmeans neither source provided quota, not that the account is unauthenticated or unused. Do not start a model turn or login/reset to manufacture a report. Antigravity (agy/gemini) reads the native print-mode/usagecommand without a model turn. Report one row,Gemini Models. Its Claude and GPT window matches Gemini, so omit it.After the table, state how many providers returned usage out of the total. Mention unavailable providers in one concise sentence. If diagnostics show
Установить jamsession-get-agent-usage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл jamsession-get-agent-usage?
Report provider usage, quotas, remaining capacity and reset times; not installation or authentication-only checks.
Как установить скилл jamsession-get-agent-usage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jamsession-get-agent-usage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic