Google Antigravity ACP using "custom-agent" consumes 4x quota per token

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

1.5.17 (regressed vs 1.5.16)

1.5.17 版本(相对于 1.5.16 版本出现倒退)

Starting in agy 1.5.17, running agy acp —agent consumes exactly 4.00× Gemini weekly and 5-hour quota per token compared to 1.5.16 on the exact same custom agent, model, and prompt. On the default agent (agy acp without —agent), 1.5.16 and 1.5.17 consume the exact same quota per token. Nothing in the 1.5.17 release notes mentions a 4× multiplier for custom agents.

从 agy 1.5.17 版本开始,在完全相同的自定义代理、模型和提示词下,运行 agy acp --agent <custom-agent> 所消耗的 Gemini 每 Token 周配额和 5 小时配额,正好是 1.5.16 版本的 4.00 倍。在使用默认代理(不带 --agent 参数的 agy acp)时,1.5.16 和 1.5.17 版本的每 Token 配额消耗完全相同。1.5.17 版本的发行说明中并未提及自定义代理存在 4 倍乘数。

Nonce . List the first 25 prime numbers, give their sum, and state in one sentence why 1 is not prime. Then stop.

随机数 。列出前 25 个质数,给出它们的总和,并用一句话说明为什么 1 不是质数。然后停止。

A custom agent with no tools and a minimal prompt should draw Gemini quota at the same per-token rate in 1.5.17 as in 1.5.16 and as the default agent (~$6.00 API-equivalent per weekly percentage point on Gemini 4 Neon).

一个没有工具且提示词极简的自定义代理,在 1.5.17 版本中理应与 1.5.16 版本以及默认代理保持相同的每 Token Gemini 配额消耗率(在 Gemini 4 Neon 上约为每周百分点 6.00 美元的 API 等价额度)。

In 1.5.17, —agent notools-custom draws exactly 4.00× the Gemini weekly and 5-hour quota per token compared to 1.5.16 and compared to the default agent in 1.5.17.

在 1.5.17 版本中,--agent notools-custom 所消耗的 Gemini 每 Token 周配额和 5 小时配额,正好是 1.5.16 版本以及 1.5.17 版本默认代理的 4.00 倍。

Normalizing each run by native Neon token usage at API rates ($3/M uncached input, $15/M output; 0 cached tokens on fresh sessions):

按 API 费率(未缓存输入每百万 Token 3 美元,输出每百万 Token 15 美元;新会话缓存 Token 为 0)对每次运行的原生 Neon Token 使用量进行标准化:

Relevant lines from ~/.gemini/antigravity-cli/log/acp-server-*.log for the two —agent notools-custom runs:

来自 ~/.gemini/antigravity-cli/log/acp-server-*.log 中关于两次 --agent notools-custom 运行的相关日志行:

Agent file (.agents/agents/notools-custom.md):

代理文件 (.agents/agents/notools-custom.md):

Experiencing this too. 5-hour Usage limits drained in 45 minutes Vs 4-5 hours before.

我也遇到了这种情况。5 小时使用限额在 45 分钟内就耗尽了,而之前需要 4-5 小时。

Experiencing this too. 5-hour Usage limits drained in 10 minutes Vs 4-5 hours before.

我也遇到了这种情况。5 小时使用限额在 10 分钟内就耗尽了,而之前需要 4-5 小时。

我是使用了一个完整的五小时配额,然后周配额也清空了,我记得在五小时配额使用之前当时周配额还有一半以上的。

I used up a full five-hour quota, and then the weekly quota was also cleared. I remember that before the five-hour quota was used, the weekly quota was still more than half full.

Experiencing this too。

我也遇到了这种情况。

This is intentional, not a regression. Conversations run by a custom agent (.agents/agents/*, plugin agents, and their subagents) are billed as custom-agent requests, which draw quota at a higher rate than the default agent. The default agent and built-in agents are unchanged.

这是有意为之,而非版本倒退。由自定义代理(.agents/agents/*、插件代理及其子代理)运行的对话被计费为自定义代理请求,其配额消耗率高于默认代理。默认代理和内置代理保持不变。

For the standard rate, run without —agent and put your instructions in rules (AGENTS.md/GEMINI.md) or skills.

若要使用标准费率,请在不带 --agent 的情况下运行,并将您的指令放入规则(AGENTS.md/GEMINI.md)或技能中。

How can I budget if you change the price / utility of tokens like this? Where did you give warning? Would you like to be on the receiving end of this as a customer? No? Well then perhaps consider that we don’t like it either.

如果你们这样改变 Token 的价格/效用,我该如何做预算?你们在哪里给出了警告?作为客户,你们愿意处于这种境地吗?不愿意?那么也许请考虑一下,我们也不喜欢这样。

feat(pi-antigravity-bridge): gate the stream-json engine behind a quo…

功能(pi-antigravity-bridge):将 stream-json 引擎置于配额限制之下……

The best Coding Agent harness is up for debate. The worst one isn’t. At this point, the model team deserves an apology from the harness team.

最好的编码代理工具框架尚有争议,但最差的那个毫无疑问。 此时此刻,模型团队理应从工具框架团队那里得到一个道歉。

Defeat from the jaws of victory yet again, Google.

谷歌,又一次在胜利在望时遭遇失败。

这啥畜生行为? Got possesed by that misanthropic virus?

What kind of beastly behavior is this? Got possessed by that misanthropic virus?

I checked for the reported 4x difference on one Gemini Enterprise Plus project and didn’t see it.

我在一个 Gemini Enterprise Plus 项目上检查了所报告的 4 倍差异,但没有发现。

I ran agy 1.5.20 six times on Gemini 4 Neon (Medium), with about 150 seconds between runs. I alternated the default agent with a minimal custom agent (tools: [], mainAgent: true, subagent: false) selected with —agent. The custom runs sent about 7,000 fewer prompt tokens. The request logs omit the system prompt, so that drop is my only server-side sign of which agent ran.

我在 Gemini 4 Neon (Medium) 上运行了六次 agy 1.5.20,每次运行间隔约 150 秒。我交替使用了默认代理和通过 --agent 选择的极简自定义代理(tools: [], mainAgent: true, subagent: false)。自定义运行发送的提示词 Token 少了约 7,000 个。请求日志省略了系统提示词,因此该减少量是我在服务器端判断哪个代理运行的唯一标志。

The project exports its pooled Antigravity allowance to Cloud Monitoring as discoveryengine.googleapis.com/quota/ratev2/agentic_wtu_tier_enterprise_plus_pp_weekly_regional/net_usage. From the console total, one unit is about $0.000002. I matched each logged response to the counter’s rise in that minute. I left out the first run, because the counter was still rising from the minute before and I couldn’t separate it.

该项目将其汇总的 Antigravity 配额导出到 Cloud Monitoring,路径为 discoveryengine.googleapis.com/quota/ratev2/agentic_wtu_tier_enterprise_plus_pp_weekly_regional/net_usage。从控制台总数来看,一个单位约为 0.000002 美元。我将每次记录的响应与该分钟内计数器的上升进行了匹配。我排除了第一次运行,因为计数器仍在从前一分钟上升,我无法将其区分开来。

The estimates assume $3 per million uncached input tokens, $0.15 per million cached input tokens and $15 per million output tokens, including thinking. Every run, default or custom, came in at 0.935 of its estimate. In the following minute the counter rose another 845 to 3,074 units, with no logged response, after both kinds of run. All six responses were logged as quotaType: REGULAR_QUOTA.

估算假设未缓存输入每百万 Token 3 美元,缓存输入每百万 Token 0.15 美元,输出(包括思考过程)每百万 Token 15 美元。无论是默认运行还是自定义运行,每次运行的结果均为其估算值的 0.935。在随后的分钟里,在两种运行方式之后,计数器又上升了 845 至 3,074 个单位,且没有记录到响应。所有六次响应都被记录为 quotaType: REGULAR_QUOTA。

So on this Enterprise Plus project, custom-agent requests drew the same allowance per token as default-agent requests. The counter is pooled, so this is a small sample rather than an exact charge per request, and I can’t say anything about consumer plans. It would help if the docs said which plans the higher rate applies to.

因此,在这个 Enterprise Plus 项目上,自定义代理请求与默认代理请求消耗的每 Token 配额相同。由于计数器是汇总的,这是一个小样本而非每次请求的精确计费,我无法对消费者计划发表评论。如果文档能说明更高的费率适用于哪些计划,那将会有所帮助。

I checked because my Claude Code plugin runs agy without —agent (https://github.com/aberoham/contained-antigravity).

我进行检查是因为我的 Claude Code 插件在运行 agy 时没有使用 --agent 参数 (https://github.com/aberoham/contained-antigravity)。

Confirming on agy 1.5.17 (Windows x86_64, Gemini pool) that running workers via headless agy -p (no —agent / —agents, role loaded via SKILL.md) avoids the 4× quota bug and tracks cleanly at ~1.0× normal consumption.

在 agy 1.5.17 (Windows x86_64, Gemini 池) 上确认,通过无头模式 agy -p(不使用 --agent / --agents,角色通过 SKILL.md 加载)运行工作进程可以避免 4 倍配额错误,并能准确跟踪在约 1.0 倍的正常消耗水平。

*Includes coordinator turns and normal active-lease reservation jitter.

*包括协调器轮次和正常的活动租约预留抖动。

Bottom line: Headless agy -p + SKILL.md keeps quota burn at 1.05× (~1× normal), cuts total token volume by 56%, and preserves ~97% prompt caching.

结论:无头模式 agy -p + SKILL.md 将配额消耗保持在 1.05 倍(约 1 倍正常水平),将总 Token 量减少了 56%,并保留了约 97% 的提示词缓存。

i wrote an open letter to google covering this issue along with the gemini cli shutdown and the third-party rules. the ask on this one is simple: announce quota changes in the release notes before they bill people. letter with sources: https://labs.anaskhan.me/open-letter/ (video thread: https://x.com/AnxKhn/status/2127112418094641219)

我写了一封致谷歌的公开信,涵盖了这个问题以及 Gemini CLI 的关闭和第三方规则。对此的要求很简单:在向用户收费之前,请在发行说明中宣布配额变更。附带来源的信件:https://labs.anaskhan.me/open-letter/ (视频帖:https://x.com/AnxKhn/status/2127112418094641219)

Seeing the same issue on 1.5.17, and it’s a serious step in the wrong direction. One carbon and four hydrogens make methane. That’s fitting, because this 4× quota burn stinks of it.

在 1.5.17 版本上也看到了同样的问题,这是一个严重的错误方向。一个碳原子和四个氢原子组成甲烷。这很贴切,因为这种 4 倍的配额消耗简直臭不可闻。

Charging 4× quota for third-party tools or external harnesses is one thing, assuming it’s actually announced. Silently burning 4× quota just for running a named agent inside the native harness is hard to justify, and slipping it into a minor release without a single mention in the changelog is worse. That’s core, first-party functionality getting penalized out of nowhere.

对第三方工具或外部框架收取 4 倍配额是一回事,前提是它确实经过了公告。仅仅因为在原生框架内运行一个命名代理就悄悄消耗 4 倍配额是难以辩解的,而在小版本更新中悄悄加入且在更新日志中只字未提则更糟糕。这是核心的第一方功能在毫无预兆的情况下受到了惩罚。

Can the team give a straight answer on whether this agentScript=true weighting is a bug or an intentional change? If it’s intentional, why is native —agent functionality being charged 4×?

团队能否给出一个直接的回答:这种 agentScript=true 的加权是错误还是有意为之的变更?如果是故意的,为什么原生的 --agent 功能会被收取 4 倍费用?

Olas con el agente por defecto: los agentes personalizados cuestan ~4…

使用默认代理时一切正常:自定义代理的成本约为 4……

Same here. Quota burned without any notice…

我也是。配额在没有任何通知的情况下被消耗了……

This is intentional, not a regression. Conversations run by a custom agent (.agents/agents/*, plugin agents, and their subagents) are billed as custom-agent requests, which draw quota at a higher rate than the default.

这是有意为之,而非版本倒退。由自定义代理(.agents/agents/*、插件代理及其子代理)运行的对话被计费为自定义代理请求,其配额消耗率高于默认代理。