Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: jamsession-get-agent-usage description: "Report provider usage, quotas, remaining capacity and reset times; not installation or authentication-only checks."
Get Agent Usage
- Run
jamsession usage --jsonfor all providers, or `jamsession usage
<provider> --json when the user names one provider. Use usage, not status`, 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 |
|---|
- Use title-case provider names, concise window labels, and percentage signs on
remaining_percent. Do not show used_percent. Keep gpt-reserve; it is the Codex base_model_inference weekly bucket, although Codex does not expose which exact models or fallback path consume it. Label Claude's useful windows All Models (weekly) and Fable (weekly). Show a provider name only on its first row when it has multiple windows.
- 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 as Sept 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, preserve observed_at as an “as of” note rather than presenting a retained observation as a live balance.
- For a provider whose usage is unavailable, include one row with
Usage unavailable in 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 /usage screens 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 CLI usage/read method, falling back to its local /usage screen 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_observed means 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 /usage command without a model turn. Keep its Gemini and Claude/GPT quota windows separate; neither represents quota in another provider's native harness.
- After the table, state how many providers returned usage out of the total.
Mention unavailable providers in one concise sentence. If diagnostics show why collection failed, state that briefly; distinguish an unreadable usage screen from an authentication failure. Do not dump raw JSON unless asked.