AuthonAuthon Blog
debugging7 min read

Google Antigravity Quota Running Out? Custom Agents Were Billed 4x Per Token

Google called it intentional, then reverted it on Nov 30. How to grep your agy logs for agentScript=true and confirm the fix yourself.

AW
Alan West
Authon Team
Google Antigravity Quota Running Out? Custom Agents Were Billed 4x Per Token

If your Google Antigravity quota started running out last week and your token counts didn't explain it, you probably weren't imagining it. From version 1.5.17, anything launched with agy acp --agent was billed at four times the quota per token of the default agent. Google first said that was on purpose. Three days and roughly 560 thumbs-down later, they reverted it.

The source is antigravity-cli issue #1890, which reached 633 points and 300+ comments on Hacker News. Google never published the 4x figure; it comes from one user's measurements. Those measurements make it one of the best bug reports I've read this year, so I want to walk through what it found and how you can check your own setup.

What the issue actually reports

The reporter, mascarenhas, ran a controlled test on Fedora 45 with a consumer OAuth plan. Same model (Gemini 4 Neon, XHigh), same prompt, a fresh UUID nonce in every prompt so nothing could be served from cache, one isolated process per run, zero tools, zero 429s. The client was a small Python script that talks to agy acp over stdio: initialize → authenticate → session/new → session/set_model → session/prompt, then exit.

The custom agent was about as small as you can make one:

yaml
---
name: notools-custom
description: Minimal custom agent with no tools
mainAgent: true
subagent: false
tools: []
inheritCustomizations: false
excludeDefaultComponents: true
---
You are a terse assistant. Answer directly.

They converted each run's tokens to an API-equivalent dollar cost ($3/M input, $15/M output) and divided that by the weekly quota points consumed. The results:

| Run | Version | Tokens in / out | $ per weekly point | Burn |
|---|---|---|---|---|
| --agent notools-custom | 1.5.16 | 740 / 2,441 | $6.0022 | 1.00× |
| --agent notools-custom | 1.5.17 | 737 / 3,066 | $1.5001 | 4.001× |
| default agent | 1.5.16 | 12,007 / 2,868 | $6.0004 | 1.00× |
| default agent | 1.5.17 | 12,001 / 3,317 | $5.9999 | 1.00× |

Look at the token column. The custom agent sent about 740 input tokens against the default agent's 12,000. It was the lean option, and it cost four times as much per token. The nonces already ruled out caching, and a flat 4.00× with that little noise is what a multiplier somebody set on purpose looks like.

Other people in the thread backed it up with rougher numbers. One said their 5-hour window drained in 45 minutes instead of 4-5 hours. Another compared successive quota windows on their own account and saw work per point in the 5-hour bucket drop from 5.80 to 1.45, about 4.0×, and someone reproduced roughly 4× on 1.5.19.

Google's two answers

On Nov 27 a Google collaborator replied: "This is intentional, not a regression." Custom-agent conversations (.agents/agents/*, plugin agents and their subagents) are billed at a higher rate; the default and built-in agents are unchanged. The issue was closed three seconds later. That comment ended up at 563 thumbs-down to 1 thumbs-up.

On Nov 30 the same person came back: the change was made "to combat abuse", the analytics "suggested this would not have a meaningful impact", but "analytics don't replace user feedback." Then: "We have reverted this change, no update required on your end."

The reply didn't say which version carries the revert or whether anyone gets back the quota they already burned. It also didn't say whether the multiplier was ever going to appear in the release notes; the 1.5.17 notes never mentioned it.

I have a hard time letting this go. A 4x price increase for one class of user, shipped undocumented in a patch release and then defended as intentional, is a big deal. Google's own August post introducing custom agents pitched them as a way to save tokens, as one commenter pointed out. I'm glad they reverted it, but it only happened because one user did careful accounting, and nobody paying for a subscription should have to do that.

Who was actually affected

ACP itself wasn't the trigger; the custom-agent path was. In the reporter's logs, every custom-agent run wrote this line to ~/.gemini/antigravity-cli/log/acp-server-*.log:

text
Creating new cascade trajectory (agentScript=true)

Default-agent runs were agentScript=false and billed normally in both versions. Going by Google's reply and the reports in the thread:

  • Running agy acp with the default agent, the way an editor integration normally does, was fine.
  • The default agent and built-in agents were unchanged, per Google.
  • Launching named agents with --agent, anything defined under .agents/agents/, plugin agents, and the subagents those agents spawn got the higher rate.

One open question nobody answered: a commenter running bots through Orca noticed that appending a system prompt through ACP _meta.antigravity.systemPrompt.append: true also logs agentScript=true, even without --agent. Nobody confirmed whether those sessions got the multiplier. If you build your own ACP client and inject a system prompt that way, you may have been in the 4x bucket without ever writing an agent file.

And a counterpoint: a user on a Gemini Enterprise Plus project ran six alternating default/custom runs on 1.5.20 against Cloud Monitoring counters and saw identical per-token rates. So this looks like a consumer-plan thing. Also, not every drain in that thread was this bug. At least one person said their weekly limit ran out in 4-5 hours without using --agent at all.

How to check which mode you're on

I'd still check the revert myself. It takes ten minutes.

  • Check whether your sessions are flagged as agent scripts:
  • bash
    grep -h "agentScript" ~/.gemini/antigravity-cli/log/acp-server-*.log | sort | uniq -c

    If you see agentScript=true and you didn't mean to run a custom agent, look at how your client starts sessions and whether it sends a system prompt in _meta.

  • Take a quota baseline the same way the reporter did:
  • bash
    AGY_CLI_DISABLE_AUTO_UPDATE=1 agy -p "/usage" --output-format json

    Re-run it until two reads agree, then note remaining_fraction for gemini-weekly and gemini-5h.

  • Run one turn through your normal setup, read /usage again until it's stable, and compare the drop with the token counts the CLI stores in ~/.gemini/antigravity-cli/conversations/.db (gen_metadata).
  • Do the same with the default agent. If the custom path costs noticeably more per token, you have numbers to post on the issue instead of a vibe.
  • What to use if the multiplier comes back

    Google said they'll "look into additional ways to curtail abuse," so I wouldn't assume custom agents stay at 1× forever. The workaround Google suggested, and one commenter actually measured, is to drop --agent and move your instructions into rules or skills:

    • Put your system prompt in AGENTS.md or GEMINI.md and run the default agent.
    • Load role-specific instructions as skills (SKILL.md) instead of separate agent files.

    User wbkepler ran workers through headless agy -p with no --agent and each role loaded from a SKILL.md. Over a 33-minute run on 1.5.17 they measured about 1.05× normal burn on the 5-hour quota (3.1% used, against ~11.8% at 4×), and 56% fewer tokens than built-in subagents (38.18M vs 86.69M).

    The catch is that you lose what made custom agents attractive: tools: [] and excludeDefaultComponents: true, which let you strip out the default prompt (about 11,000 extra input tokens per turn in the reporter's runs). One HN commenter who bridges Pi to agy with the default prompts said they weren't affected, and shrugged off the bloat: "it's not _my_ server that has to cache a bunch of unused context." Others on HN said they use Neon through OpenRouter or the API instead, where you at least know what a token costs.

    Sources

    Did your Antigravity quota drop faster than your token count explains, and was it actually the custom-agent path or something else? Which client are you running it through, and have you grepped your logs for agentScript=true yet?

    Google Antigravity Quota Running Out? Custom Agents Were Billed 4x Per Token | Authon Blog