首页 > AI前沿 > Google Antigravity ACP using "custom-agent" consumes 4x quota per token

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

Hacker News 2026-11-29 18:46 21 阅读 查看原文
[Bug]: agy acp --agent consumes 4x Gemini quota per token in 1.5.17 vs 1.5.16 #1890 Description Antigravity CLI Version 1.5.17 (regressed vs 1.5.16) Environment Context OS: Linux x86_64 (Fedora 45) Shell: bash Terminal Emulator: not applicable (reproduced via headless agy acp stdio client) Runtime Version: Antigravity CLI 1.5.16 vs 1.5.17 (consumer OAuth plan, Gemini Models) Hardware Details: x86_64 desktop, single isolated process per run (no concurrent sessions) Steps to Reproduce Summary 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. Minimal reproduction Create an empty directory with a .git/ folder and a minimal custom agent (no tools, minimal 1-line prompt) at .agents/agents/notools-custom.md: --- 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. --- 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. Check baseline quota until two consecutive reads agree: AGY_CLI_DISABLE_AUTO_UPDATE=1 agy -p "/usage" --output-format json Record remaining_fraction for gemini-weekly and gemini-5h under Gemini Models. AGY_CLI_DISABLE_AUTO_UPDATE=1 agy -p "/usage" --output-format json Run one turn against agy acp --agent notools-custom with Gemini 4 Neon (XHigh) using a minimal stdio ACP client (initialize → authenticate → session/new with mcpServers: [] and no _meta → session/set_model → session/prompt, then exit): import json, os, subprocess, sys, threading binary, work, prompt = sys.argv[1], sys.argv[2], sys.argv[3] extra = sys.argv[4:] # e.g. ["--agent", "notools-custom"] proc = subprocess.Popen( [binary, "acp", *extra], cwd=work, env={os.environ, "AGY_CLI_DISABLE_AUTO_UPDATE": "1"}, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True, bufsize=1, ) results, lock, nid = {}, threading.Condition(), [0] def send(obj): proc.stdin.write(json.dumps(obj) + "\n") proc.stdin.flush() def req(method, params): nid[0] += 1 rid = nid[0] send({"jsonrpc": "2.0", "id": rid, "method": method, "params": params}) with lock: while rid not in results: lock.wait(timeout=300) return results.pop(rid) def reader(): for line in proc.stdout: msg = json.loads(line) if "method" in msg and "id" in msg: send({"jsonrpc": "2.0", "id": msg["id"], "error": {"code": -32601, "message": "unsupported"}}) elif "id" in msg: with lock: results[msg["id"]] = msg lock.notify_all() threading.Thread(target=reader, daemon=True).start() try: init = req("initialize", {"protocolVersion": 1, "clientCapabilities": {"fs": {"readTextFile": False, "writeTextFile": False}, "terminal": False}}) methods = (init.get("result") or {}).get("authMethods") or [] if methods: req("authenticate", {"methodId": methods[0]["id"]}) res = req("session/new", {"cwd": work, "mcpServers": []})["result"] sid = res["sessionId"] pick = next(m["modelId"] for m in res["models"]["availableModels"] if "Neon (XHigh)" in m["name"]) req("session/set_model", {"sessionId": sid, "modelId": pick}) req("session/prompt", {"sessionId": sid, "prompt": [{"type": "text", "text": prompt}]}) print("session:", sid) finally: proc.terminate() proc.wait(timeout=10) Prompt used (with a fresh UUID nonce per run to avoid caching): Nonce . List the first 25 prime numbers, give their sum, and state in one sentence why 1 is not prime. Then stop. import json, os, subprocess, sys, threading binary, work, prompt = sys.argv[1], sys.argv[2], sys.argv[3] extra = sys.argv[4:] # e.g. ["--agent", "notools-custom"] proc = subprocess.Popen( [binary, "acp", *extra], cwd=work, env={os.environ, "AGY_CLI_DISABLE_AUTO_UPDATE": "1"}, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True, bufsize=1, ) results, lock, nid = {}, threading.Condition(), [0] def send(obj): proc.stdin.write(json.dumps(obj) + "\n") proc.stdin.flush() def req(method, params): nid[0] += 1 rid = nid[0] send({"jsonrpc": "2.0", "id": rid, "method": method, "params": params}) with lock: while rid not in results: lock.wait(timeout=300) return results.pop(rid) def reader(): for line in proc.stdout: msg = json.loads(line) if "method" in msg and "id" in msg: send({"jsonrpc": "2.0", "id": msg["id"], "error": {"code": -32601, "message": "unsupported"}}) elif "id" in msg: with lock: results[msg["id"]] = msg lock.notify_all() threading.Thread(target=reader, daemon=True).start() try: init = req("initialize", {"protocolVersion": 1, "clientCapabilities": {"fs": {"readTextFile": False, "writeTextFile": False}, "terminal": False}}) methods = (init.get("result") or {}).get("authMethods") or [] if methods: req("authenticate", {"methodId": methods[0]["id"]}) res = req("session/new", {"cwd": work, "mcpServers": []})["result"] sid = res["sessionId"] pick = next(m["modelId"] for m in res["models"]["availableModels"] if "Neon (XHigh)" in m["name"]) req("session/set_model", {"sessionId": sid, "modelId": pick}) req("session/prompt", {"sessionId": sid, "prompt": [{"type": "text", "text": prompt}]}) print("session:", sid) finally: proc.terminate() proc.wait(timeout=10) Nonce . List the first 25 prime numbers, give their sum, and state in one sentence why 1 is not prime. Then stop. Nonce . List the first 25 prime numbers, give their sum, and state in one sentence why 1 is not prime. Then stop. Re-read AGY_CLI_DISABLE_AUTO_UPDATE=1 agy -p "/usage" --output-format json until two consecutive reads agree, and compare the quota delta against the token usage recorded in ~/.gemini/antigravity-cli/conversations/ .db (gen_metadata). Repeat step 2–4 with agy 1.5.16 vs 1.5.17, and as a control without --agent (default agent). Expected Behavior 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). Actual Behavior / Error Screenshots 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. Normalizing each run by native Neon token usage at API rates ($3/M uncached input, $15/M output; 0 cached tokens on fresh sessions): Notes: This is unrelated to [Bug]: agy CLI: when the background safety pre-check hits HTTP 429, every tool call is re-reviewed by a larger model and silently drains the plan's 5-hour and weekly quota (about 2.6x normal burn rate) #1886 (safety monitor 429 escalation) and [Bug]: agy acp 1.5.17 resumes another live process's conversation at startup, and a new session can get that conversation's MCP server #1872/ [Bug]: 1.5.17 print-mode / concurrent CLI startup auto-resumes live conversations (server.go:5311), causing exponential fork-bomb and runaway spend #1884 (startup conversation resume): every run used zero tools, made zero safety-monitor calls, logged zero 429s and zero conversation resumes, and made exactly 2 streamGenerateContent calls (title generation + main turn). Is this 4× quota weighting for custom agents an unintended regression in 1.5.17, or an intentional (currently undocumented) change? Logs & Configurations Relevant lines from ~/.gemini/antigravity-cli/log/acp-server-*.log for the two --agent notools-custom runs: 1.5.16: Language server version: 1.5.16 Creating new cascade trajectory (agentScript=true) # Exactly 2 streamGenerateContent calls in the log; 0 monitor calls; 0 resumes. 1.5.17: Language server version: 1.5.17 Creating new cascade trajectory (agentScript=true) # Exactly 2 streamGenerateContent calls in the log; 0 monitor calls; 0 resumes. Agent file (.agents/agents/notools-custom.md): --- 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. Activity manirajc added bugSomething isn't working subtype:ubuntu/LinuxUbuntu/Linux build, execution, or keybinding issues comp:agent capabilitiesBackground Tasks & Subagents, Permissions, Sandbox comp:customizationsPlugins & Skills, MCP, Status Line, Window Title comp:billing/quotaLive quota, credit reporting, SMS eligibility checks regression issueTo spot regression issues from previous updates ACP 1.5.17 on Nov 26, 2026 lolmatikx commented on Nov 26, 2026 lolmatikx on Nov 26, 2026 More actions Experiencing this too. 5-hour Usage limits drained in 45 minutes Vs 4-5 hours before. 👍React with 👍1Reacted by Erol Ozcan lolmatikx commented on Nov 26, 2026 Experiencing this too. 5-hour Usage limits drained in 45 minutes Vs 4-5 hours before. Pgooone commented on Nov 27, 2026 Pgooone on Nov 27, 2026 More actions Experiencing this too. 5-hour Usage limits drained in 10 minutes Vs 4-5 hours before. 👍React with 👍2Reacted by Aleksandar Puharic [Rolfs] and Yixuan Pgooone commented on Nov 27, 2026 Experiencing this too. 5-hour Usage limits drained in 10 minutes Vs 4-5 hours before. uni1k commented on Nov 27, 2026 uni1k on Nov 27, 2026 More actions 我是使用了一个完整的五小时配额,然后周配额也清空了,我记得在五小时配额使用之前当时周配额还有一半以上的。 👍React with 👍5Reacted by Yixuan, kaku717813694, Lunar Dev, uni1k and z121245017-ai uni1k commented on Nov 27, 2026 我是使用了一个完整的五小时配额,然后周配额也清空了,我记得在五小时配额使用之前当时周配额还有一半以上的。 EricGao-Byte commented on Nov 27, 2026 EricGao-Byte on Nov 27, 2026 More actions Experiencing this too。 EricGao-Byte commented on Nov 27, 2026 Experiencing this too。 dbrenzis commented on Nov 27, 2026 dbrenzis on Nov 27, 2026 More actions same dbrenzis commented on Nov 27, 2026 same yaoshengzhe commented on Nov 27, 2026 yaoshengzhe on Nov 27, 2026 Collaborator More actions 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. For the standard rate, run without --agent and put your instructions in rules (AGENTS.md/GEMINI.md) or skills. 👍React with 👍1Reacted by yiruxiao262 👎React with 👎263Reacted by Aleksandar Puharic, Luna, qvsix, lolmatikx, juziguai, wsw3939, xiaoyiru92-cmd, shinkimea, many bear, tsukumi and 253 more 😄React with 😄4Reacted by Emilia296, Dolutech, IA20201 and yiruxiao262 🎉React with 🎉1Reacted by yiruxiao262 😕React with 😕4Reacted by Si1entroom, yiruxiao262, safwan6363 and Matias Iseas ❤️React with ❤️1Reacted by yiruxiao262 🚀React with 🚀1Reacted by yiruxiao262 👀React with 👀4Reacted by SourceCodeplz, Fabison Andrea de Souza, zuiailaoda and Matt yaoshengzhe commented on Nov 27, 2026 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. For the standard rate, run without --agent and put your instructions in rules (AGENTS.md/GEMINI.md) or skills. yaoshengzhe closed this as completedon Nov 27, 2026 21 remaining items Load more 21 remaining items bgrablin commented on Nov 28, 2026 bgrablin on Nov 28, 2026 More actions I reproduced this on agy 1.5.19 with the plain CLI (agy -p), without ACP. I ran the same task four times on Gemini 4 Neon (Low), alternating between the default agent and a minimal no-tools custom agent selected with --agent. After weighting the recorded input and output tokens at the API rates in the original report, the custom agent used about 4x as much quota for equivalent work in both the 5-hour and weekly buckets. Separately, #1886 reports background tool-safety reviews even when using the default agent. Those calls appear in logs but aren't itemized in /usage. The reports suggest they draw from the same plan quota, but that hasn't been confirmed. I'd prefer the standard rate for a single top-level custom agent that uses no tools and launches no subagents. If the higher rate is staying, please publish the multiplier, say which plans and models it applies to, and show it before the first affected request. Either way, please break down /usage so I can distinguish normal model use, extra quota from custom-agent weighting, and any safety reviews that count against my plan. 👍React with 👍1Reacted by DM3GA bgrablin commented on Nov 28, 2026 I reproduced this on agy 1.5.19 with the plain CLI (agy -p), without ACP. I ran the same task four times on Gemini 4 Neon (Low), alternating between the default agent and a minimal no-tools custom agent selected with --agent. After weighting the recorded input and output tokens at the API rates in the original report, the custom agent used about 4x as much quota for equivalent work in both the 5-hour and weekly buckets. Separately, #1886 reports background tool-safety reviews even when using the default agent. Those calls appear in logs but aren't itemized in /usage. The reports suggest they draw from the same plan quota, but that hasn't been confirmed. I'd prefer the standard rate for a single top-level custom agent that uses no tools and launches no subagents. If the higher rate is staying, please publish the multiplier, say which plans and models it applies to, and show it before the first affected request. Either way, please break down /usage so I can distinguish normal model use, extra quota from custom-agent weighting, and any safety reviews that count against my plan. frankzvitale commented on Nov 28, 2026 frankzvitale on Nov 28, 2026 More actions @yaoshengzhe what possible reason could there be to implement a change like this quietly when just recently according to the antigravity blog this is considered a recommended approach to actually save on agent context and cost? This also doesn't make any sense from a technical perspective, why would a custom agent cost any more to run vs an agent that gets fed context via an AGENTS.md/GEMINI.md or even agent skills? Very unfortunate move. 👍React with 👍10Reacted by Raul Garrido, 123bbt, Alaestor Weissman, banzhe, IA20201, Yufan Kuang, DM3GA, NazukiMio, LoopControl and RN frankzvitale commented on Nov 28, 2026 @yaoshengzhe what possible reason could there be to implement a change like this quietly when just recently according to the antigravity blog this is considered a recommended approach to actually save on agent context and cost? This also doesn't make any sense from a technical perspective, why would a custom agent cost any more to run vs an agent that gets fed context via an AGENTS.md/GEMINI.md or even agent skills? Very unfortunate move. alexderz added a commit that references this issue on Nov 28, 2026 fix(custom_agent): disable --agent by default to avoid 4x Gemini quot… ... 65f8135 fix(custom_agent): disable --agent by default to avoid 4x Gemini quot… yibol9768-alt commented on Nov 28, 2026 yibol9768-alt on Nov 28, 2026 More actions Closing this as "intentional" without any prior notice, release note, or UI warning is a serious trust issue for paying subscribers. Zero disclosure: Neither the 1.5.17 release notes, the custom agents documentation, nor /usage mentions a 4× quota multiplier. Paying users had to reverse-engineer local SQLite logs just to discover why their 5-hour and weekly quotas vanished 4× faster. Contradicts official guidance: Antigravity's own docs and blog explicitly promoted .agents/agents/* as the recommended way to keep context clean and reduce token waste. Silently turning a documented feature into a 4× quota penalty—then telling users to dump everything back into GEMINI.md/AGENTS.md—undermines confidence in every other documented feature. Blunt collateral damage: If the real goal is to prevent people from stripping the harness (tools: [] + excludeDefaultComponents: true) to abuse consumer subscriptions as a raw API proxy, applying a blanket 4× tax to all custom agents and plugin agents punishes legitimate users who are staying inside Antigravity's own harness. At minimum, please: Document the exact multiplier and scope in the release notes and docs; Show an explicit warning before a --agent / custom-agent session starts and itemize multiplier usage in /usage; Reconsider penalizing legitimate custom agents running inside Antigravity's own harness. 👍React with 👍35Reacted by Alaestor Weissman, Mr-Cong, Neodon, sssysy, IA20201, Zephyr, Ryan Ray, Femoon, BlueRain-debug, ttys001 and 25 more yibol9768-alt commented on Nov 28, 2026 Closing this as "intentional" without any prior notice, release note, or UI warning is a serious trust issue for paying subscribers. Zero disclosure: Neither the 1.5.17 release notes, the custom agents documentation, nor /usage mentions a 4× quota multiplier. Paying users had to reverse-engineer local SQLite logs just to discover why their 5-hour and weekly quotas vanished 4× faster. Contradicts official guidance: Antigravity's own docs and blog explicitly promoted .agents/agents/* as the recommended way to keep context clean and reduce token waste. Silently turning a documented feature into a 4× quota penalty—then telling users to dump everything back into GEMINI.md/AGENTS.md—undermines confidence in every other documented feature. Blunt collateral damage: If the real goal is to prevent people from stripping the harness (tools: [] + excludeDefaultComponents: true) to abuse consumer subscriptions as a raw API proxy, applying a blanket 4× tax to all custom agents and plugin agents punishes legitimate users who are staying inside Antigravity's own harness. At minimum, please: Document the exact multiplier and scope in the release notes and docs; Show an explicit warning before a --agent / custom-agent session starts and itemize multiplier usage in /usage; Reconsider penalizing legitimate custom agents running inside Antigravity's own harness. soyelmismo added a commit that references this issue on Nov 28, 2026 fix(custom_agent): disable --agent by default to avoid 4x Gemini quot… ... 3a488d4 fix(custom_agent): disable --agent by default to avoid 4x Gemini quot… semantic-craft added a commit that references this issue on Nov 28, 2026 refactor(agents): migrate custom agents to 1x built-in subagents and … ... 017323b refactor(agents): migrate custom agents to 1x built-in subagents and … NazukiMio commented on Nov 29, 2026 NazukiMio on Nov 29, 2026 More actions 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. For the standard rate, run without --agent and put your instructions in rules (AGENTS.md/GEMINI.md) or skills. Is there any evidence that custom agents cause harm to Antigravity? Or is it simply because you arrogantly believe that your own system prompts are the absolute best in the world? @yaoshengzhe 👍React with 👍2Reacted by Illustar0 and Luna NazukiMio commented on Nov 29, 2026 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. For the standard rate, run without --agent and put your instructions in rules (AGENTS.md/GEMINI.md) or skills. 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. For the standard rate, run without --agent and put your instructions in rules (AGENTS.md/GEMINI.md) or skills. Is there any evidence that custom agents cause harm to Antigravity? Or is it simply because you arrogantly believe that your own system prompts are the absolute best in the world? @yaoshengzhe pingg241 commented on Nov 29, 2026 pingg241 on Nov 29, 2026 More actions 是不是gpt不行了谷歌你们就觉得可以蹬鼻子上脸了 👍React with 👍10Reacted by Tsuki, NazukiMio, liziyuanliziy-sys, Lennard, TSAO, East, zanllp, Pref2rence, SerSmile and Sebyx07 pingg241 commented on Nov 29, 2026 是不是gpt不行了谷歌你们就觉得可以蹬鼻子上脸了 ngmhhy1145147-cn commented on Nov 29, 2026 ngmhhy1145147-cn on Nov 29, 2026 More actions Four times the burn rate. No changelog. No warning before the request. No line item in /usage. And the issue gets closed as "intentional" while the only question that matters — why does a one-line custom agent with tools: [] and subagent: false cost 4× — is never answered. If the real concern is people stripping the harness to turn a subscription into an API proxy, then say that, name the abuse, and target it. Blanket-taxing every legitimate custom agent and hiding the meter is not a policy, it's a trap for paying users. Announce the multiplier, show it before the first request, itemize it in /usage, and audit what was burned before anyone knew. You don't get to call it intentional and mark the issue completed in the same breath. Intentional means you knew. It doesn't mean you told us. 👍React with 👍12Reacted by NazukiMio, egorlepa, TSAO, Matias Iseas, Albert Cai, Mattias, LoopControl, sssysy, Punit Sureka, Riyad Parvez and 2 more ngmhhy1145147-cn commented on Nov 29, 2026 Four times the burn rate. No changelog. No warning before the request. No line item in /usage. And the issue gets closed as "intentional" while the only question that matters — why does a one-line custom agent with tools: [] and subagent: false cost 4× — is never answered. If the real concern is people stripping the harness to turn a subscription into an API proxy, then say that, name the abuse, and target it. Blanket-taxing every legitimate custom agent and hiding the meter is not a policy, it's a trap for paying users. Announce the multiplier, show it before the first request, itemize it in /usage, and audit what was burned before anyone knew. You don't get to call it intentional and mark the issue completed in the same breath. Intentional means you knew. It doesn't mean you told us. sebyx07 commented on Nov 29, 2026 sebyx07 on Nov 29, 2026 More actions If paying isn't owning, then reverse engineering isn't hacking. sebyx07 commented on Nov 29, 2026 If paying isn't owning, then reverse engineering isn't hacking. DavidPavlicek commented on Nov 29, 2026 DavidPavlicek on Nov 29, 2026 More actions So are you essentially saying that using your own elephant-goldfish model/plugin—which relies on custom agents—is now penalized, and that using it as intended is considered bad practice? DavidPavlicek commented on Nov 29, 2026 So are you essentially saying that using your own elephant-goldfish model/plugin—which relies on custom agents—is now penalized, and that using it as intended is considered bad practice? freakynit commented on Nov 29, 2026 freakynit on Nov 29, 2026 More actions Is there any company other than Google, in the entire world, that keeps shooting itself down, again and again and again .... when all it has to do is not pull the trigger. That's literally all it has to do. To not pull the trigger. 👍React with 👍4Reacted by Luna, Albert Cai, Danny Milosavljevic and Alex Speller freakynit commented on Nov 29, 2026 Is there any company other than Google, in the entire world, that keeps shooting itself down, again and again and again .... when all it has to do is not pull the trigger. That's literally all it has to do. To not pull the trigger. ericxk added a commit that references this issue on Nov 29, 2026 Antigravity 自定义 agent 防踩坑:执行过程标出按 4 倍扣额度的自定义子 agent,诊断查本机会用到的自定义 agen… ... c7f1efe Antigravity 自定义 agent 防踩坑:执行过程标出按 4 倍扣额度的自定义子 agent,诊断查本机会用到的自定义 agen… aouxwoux commented on Nov 29, 2026 aouxwoux on Nov 29, 2026 More actions can we please have a disclaimer for this in the agy cli? would be really helpful for newcomers. aouxwoux commented on Nov 29, 2026 can we please have a disclaimer for this in the agy cli? would be really helpful for newcomers. dominikbraun commented on Nov 29, 2026 dominikbraun on Nov 29, 2026 More actions Interesting product decision... A very anthropic one. dominikbraun commented on Nov 29, 2026 Interesting product decision... A very anthropic one. Metadata Metadata Assignees Labels Type Projects Milestone Relationships Development Issue actions Open in GitHub Copilot app