Guide · AI coding
Antigravity custom agents burn 4x quota: how to check your setup and switch back
Since CLI 1.5.17, custom and plugin agents in Google Antigravity use up Gemini quota about 4x faster than the default agent. Google says it's intentional. Here's how to check and fix your setup.
The short version
- On Antigravity CLI 1.5.17, a user's test found a custom agent used 4.00x the Gemini quota per token that the same agent used on 1.5.16. The default agent stayed at 1.00x.
- A Google maintainer replied that this is intentional: custom agents, plugin agents and their subagents are billed at a higher rate, and the default and built-in agents are not.
- The multiplier isn't in any of the release notes from 1.5.16 to 1.5.20, on the Plans page or in the /usage docs (checked 29 November 2026).
- To get the standard rate back, run the default agent and move your instructions into AGENTS.md rules and skills.
In this article · 7 sections
If you run a custom agent in Google Antigravity, it now uses up your Gemini quota about 4x faster per token than the default agent does. A user measured this on CLI 1.5.17 against 1.5.16, and a Google maintainer confirmed on GitHub that it's intentional. The higher rate applies to custom agents in .agents/agents/, agents that come with plugins, and their subagents. The default agent and the built-in agents aren't affected. To get the standard rate back, switch to the default agent and move your instructions into rules and skills. The steps are below.
What the user measured
The report (issue #1890, opened 26 November 2026) used a deliberately tiny custom agent: no tools, excludeDefaultComponents: true, and a one-line system prompt. The reporter ran the same prompt on Gemini 4 Neon through agy acp and read the weekly and 5-hour quota before and after. They then priced the tokens used at the API rates the reporter gave for Neon ($3 per million input tokens, $15 per million output tokens).
| Run | Version | API value of tokens per weekly quota point | Relative burn |
|---|---|---|---|
| Custom agent | 1.5.16 | $6.00 | 1.00x |
| Custom agent | 1.5.17 | $1.50 | 4.00x |
| Default agent (2 runs) | 1.5.16 | $6.00 | 1.00x |
| Default agent (2 runs) | 1.5.17 | $6.00 | 1.00x |
Every run made exactly two model calls, with no tool use, no safety-monitor calls and no rate-limit errors, so nothing else explains the gap. The reporter says the custom agent drew exactly 4.00x the quota per token on both the weekly and the 5-hour meter (4.001x in their results table).
On the reporter's plan, one weekly percentage point bought about $6 of Neon tokens at API prices. That makes a full week roughly $600 of API-equivalent work at the normal rate and about $150 at 4x. The issue says the account was on a consumer plan but not which tier, so those numbers apply to that one account and aren't a published allowance. Google doesn't publish absolute quota figures. The Plans page only says Pro and Ultra quotas refresh every five hours up to a weekly limit.
Other users in the thread say their 5-hour windows ran out in 45 minutes, and in one case in 10 minutes. Those are anecdotes, not measurements.
What Google said, and what it hasn't said
On 27 November, maintainer yaoshengzhe answered: "This is intentional, not a regression." Conversations run by a custom agent "are billed as custom-agent requests, which draw quota at a higher rate than the default agent." The advice was to "run without --agent and put your instructions in rules (AGENTS.md/GEMINI.md) or skills." The issue was closed as completed, and the reply had 331 thumbs-down as of 29 November.
Still missing as of 29 November 2026:
- The release notes for 1.5.16 through 1.5.20 (24 to 29 November) say nothing about custom agents being billed differently.
- The Plans, Custom subagents and /usage pages don't mention a multiplier. One user in the thread says
/usagehas no line item for it either. - Google hasn't said whether the rate is exactly 4x on every plan and model. The 4x figure comes from one test on Gemini 4 Neon.
- A follow-up, issue #1998, asks for documentation, a warning before a custom agent runs and a line item in
/usage. Google hasn't replied yet.
The test was run in the CLI over ACP. The maintainer's wording covers "conversations run by a custom agent" in general, but Google hasn't said whether the app and IDE bill the same way. Until it does, assume they do.
Check whether you're running a custom agent
You're paying the higher rate if any of these apply:
- You picked an agent in
/agents. The Agent Manager lists "Default agent" and your custom agents under Available Agents. Anything other than Default agent counts. - You or your editor pass
--agent. Check your shell aliases and scripts, plus the command line that Zed, JetBrains or any other editor uses to launchagy acp. Runagy agentsto list the agents available. - You have files in an agents folder. Look in
.agents/agents/in the repo, in~/.gemini/config/agents/, and in theagents/folder of any plugin you installed. Plugins can bring their own agents. - Your default agent hands work to a custom subagent. The maintainer's reply covers custom agents "and their subagents." It doesn't say whether a custom subagent called from the default agent is billed at the higher rate too. The Subagents section of
/agentsshows what ran.
The maintainer says built-in agents are unchanged; the subagents docs list the built-in subagents as research, browser and self.
Measure it on your own account
You can repeat the reporter's test in a few minutes. Open /usage (alias /quota) and note the weekly and 5-hour numbers for the Gemini group. The headless docs list /usage among the slash commands the CLI answers directly, and the reporter read it with agy -p "/usage" --output-format json. We haven't run that command ourselves, so check that its output looks right on your version.
- Read
/usageuntil two reads in a row match. - Run one short prompt with the default agent, for example
agy -p "List the first 25 primes and their sum". - Read
/usageagain and note how much it dropped. - Run the same prompt with
--agent <your-agent>and compare the two drops.
If the drop with the custom agent is several times larger for a similar answer, you're paying the higher rate. Start a fresh session for each run so cached context doesn't skew the comparison.
Get back to the standard rate
Google's suggested fix is to stop using custom agents and move what they did into the files the default agent reads:
- Standing instructions go in
AGENTS.mdorGEMINI.mdat the repo root, or in.agents/rules/*.md. A rule can usetrigger: always_on,trigger: model_decision, ortrigger: globwith file patterns, so a test-writing persona can load only when the agent touches*_test.go. Always-on and global rules share a 20,000-token budget, and any file over 24,000 bytes gets truncated. - Procedures (release steps, a review checklist) go in a skill at
.agents/skills/<name>/SKILL.md. The agent sees only the skill's name and description until it needs the rest. That keeps context small, which was the main reason to use a custom agent in the first place. - Switch the CLI back in
/agents: highlight Default agent, press Enter, then Esc. According to the docs, this forks your current session, so you keep the context.
The default agent can do the conversion for you. Run this in the repo, without --agent:
Read every agent file in .agents/agents/ and ~/.gemini/config/agents/. For each one:
1. Move its standing instructions into a rule file at .agents/rules/<agent-name>.md.
Use trigger: glob with the file patterns it works on if that is clear from the file,
otherwise trigger: model_decision with a one-line description of when it applies.
2. Move any step-by-step procedure into a skill at .agents/skills/<agent-name>/SKILL.md
with a name and a description that says when to use it.
3. Do not delete the original agent files. List what you moved and anything you could
not map, such as tool restrictions or a fixed model.
Show me the diff before writing anything.
Some settings won't carry over. The agent file's tools, model and commandExecutionPolicy fields don't appear in the documented frontmatter for rules or skills. If you rely on a locked-down tool list or a fixed model per role, the custom agent may still be worth the 4x. If you don't, the default agent with rules and skills does the same job at the normal rate.
Stop it spilling into paid credits
On Pro or Ultra, once your quota runs out, usage can continue on AI credits, which the Plans page says are consumed at standard Gemini Enterprise consumption pricing. If you're worried a custom agent or plugin will use up your quota early, turn Use AI Credits off in /config (in settings.json, set "useG1Credits": false). The credits docs say that with it off, fallback billing to your credits is restricted once plan quota runs out.
What the plans cost
Antigravity comes with Google AI plans. These are US prices, checked 29 November 2026 on Google's plans page:
| Plan | Price a month | Antigravity quota |
|---|---|---|
| Free | $0 | Weekly refresh, Gemini 4 Hydrogen |
| Google AI Plus | $4.99 | Weekly refresh, Gemini 4 Hydrogen |
| Google AI Pro | $19.99 | Refreshes every 5 hours up to a weekly limit, Gemini 4 Neon |
| Google AI Ultra 5x | $99.99 | Agent requests "Higher" (Gemini app limits 5x Pro) |
| Google AI Ultra 20x | $199.99 | Agent requests "Highest" (Gemini app limits 20x Pro) |
The 5x and 20x labels on Google's plans page are for Gemini usage limits; for Antigravity agent requests the table only says "Higher" and "Highest", so it doesn't tell you how much custom-agent work a 4x rate leaves on Ultra. If you're comparing Antigravity with Claude Code on price, our Claude pricing breakdown prices out four real setups.