Title: [BUG] One 7.7-minute agy CLI run (gemini-4-hydrogen-high) used ~43% of the weekly Gemini quota. Two short Sonnet runs then hit the Claude/GPT 5-hour limit

Title: [BUG] One 7.7-minute agy CLI run (gemini-4-hydrogen-high) used ~43% of the weekly Gemini quota. Two short Sonnet runs then hit the Claude/GPT 5-hour limit

Plan: Google AI Pro
Client: agy CLI 1.5.12 on Windows, print mode (-p, --output-format json), Roblox Studio MCP enabled
Date: 19 Nov 2026 (times are UK, UTC+0)

What happened

  1. At 17:51 the Models & Usage page showed Gemini Models Weekly Limit Remaining 44% (refresh in 6 days) and Five Hour Limit 87%. The previous 56% had been used over about 2 days of normal agent work, including two Neon runs of 45 and 39 minutes.
  2. From 18:08 to 18:16 I ran ONE agent task with gemini-4-hydrogen-high. Nothing else used Gemini in that window apart from a 15k-token test.
  3. After 7.7 minutes it failed with:
    RESOURCE_EXHAUSTED (code 429): Individual quota reached. Resets in 127h10m26s.
    error_id: a9eee81e-e05c-4aad-8a4d-abbf27cd926f-109
    conversation_id: c89891c3-ef1e-47cf-b96e-6bb83252cf0c
  4. The CLI reported this usage for that run: input 263,606 / output 57,864 / thinking 33,326 / cache_read 5,381,365 / total 321,470.
  5. Afterwards the page showed Weekly 1% (refresh in 5 days 7 hours), but the Five Hour Limit at 99%.

Same pattern on the Claude/GPT pool

  • Two short claude-sonnet-5-5-high runs: 9.3 min (275k total + 5.9M cache_read), then 3.6 min (179k total + 2.3M cache_read). The second ended with “Individual quota reached. Resets in 4h28m34s” (error_id 9f6594b0-1b38-44cf-87e7-d4b74079d465-81).
  • The Claude/GPT weekly limit went from 100% to 66% from those ~13 minutes.

Questions

  1. How are cache_read tokens counted against the weekly and 5-hour limits? A single agent run re-reads its context millions of times, and that seems to be what is being charged.
  2. Is gemini-4-hydrogen-high weighted differently from Neon or Flash? About 43% of a weekly quota in under 8 minutes seems far out of line with the earlier usage.
  3. Why did the 5-hour limit read 99% while the weekly limit fell by about 43 points over the same few minutes?
  4. Could you please review my account’s quota accounting for 19 Nov and restore the Gemini weekly quota if this was a metering error?

I can provide the before and after quota screenshots and the full CLI JSON output. Thank you.

Hi @Justin_Ray,

Welcome to the Forum.

Thanks for the breakdown. Here’s what to check and how quotas work:

  • Update to CLI v1.5.13: Fixes agents starting a swarm without /swarm (which uses far more quota) and runs multi-step work in fewer turns. Lowering --effort to medium or low (/effort) and disabling unused MCP servers via /mcp (/context) can also help.
  • Cached Tokens & Limits: cache_read_tokens carry much lower quota weight than uncached input tokens, and agy -p uses the same buckets and weights as interactive sessions. Each model group shares 5-hour and weekly limits (/usage) tied to work performed. Google AI Pro refreshes 5-hour quota every five hours until the weekly limit is reached (Plans), so a refresh can reset it near 100% while weekly stays low.
  • Quota Restoration: We cannot review account records or restore quotas here. Please contact Google One Support for billing adjustments.

Feel free to share your before-and-after quota screenshots so we can investigate further.

Thanks @Rebbanpalli_Naveen, that helps. Here’s the data you asked for, with before and after screenshots attached.

The run

  • 19 Nov, 18:08–18:16 UTC, one headless run: agy -p --output-format json, model gemini-4-hydrogen-high, agy 1.5.12 (it updated itself to 1.5.13 on 20 Nov).
  • The CLI’s usage report: 7.7 minutes, 263,606 input tokens, 5,381,365 cache_read, 57,864 output, 33,326 thinking.
  • It ended with “Individual quota reached… Resets in 127h”, error_id a9eee81e-e05c-4aad-8a4d-abbf27cd926f-109.
  • Nothing else used Gemini in that window apart from a ~15k-token test.

Screenshots

  • 17:47: Gemini weekly 44%, 5-hour 87%.
  • 18:42: Gemini weekly 1% (refreshes in 5 days 7 hours), 5-hour 99%.

About the swarm fix: I never typed /swarm, and the run’s output doesn’t mention one. Could 1.5.12 have started a swarm inside a headless -p run without it showing in the JSON result? If it did, would the usage figures above include the swarm’s workers?

What I’ve changed: I’m on 1.5.13, I’ve dropped effort from high to medium, and the prompts are shorter so there’s less context to re-read.

Questions

  1. Roughly what weight do cache_read tokens carry compared with uncached input? Without that I can’t tie these numbers to a 43-point drop in the weekly limit, or predict what a run will cost.
  2. Does gemini-4-hydrogen count differently from Neon or 3.8 Flash?
  3. Can a headless run report how much of the weekly limit it used, so I can log it per run?

Thanks again.