{"slug": "google-antigravity-acp-using-custom-agent-consumes-4x-quota-per-token", "title": "Google Antigravity ACP using \"custom-agent\" consumes 4x quota per token", "summary": "Google Antigravity CLI version 1.5.17 consumes exactly 4.00x the Gemini weekly and 5-hour quota per token versus 1.5.16 when run with a custom agent via `agy acp --agent`, according to a bug report filed against the google-antigravity/antigravity-cli repository. The reporter's minimal reproduction, using a tool-free custom agent and the Gemini 4 Neon (XHigh) model over a headless stdio ACP client, found no quota difference between 1.5.16 and 1.5.17 on the default agent, and the 1.5.17 release notes do not mention a 4x multiplier for custom agents.", "body_md": "## Repository navigation\n\n[1.5.17](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%221.5.17%22)\n\n[ACP](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22ACP%22)\n\n[bug](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22bug%22)Something isn't working\n\n[comp:agent capabilities](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Aagent%20capabilities%22)Background Tasks & Subagents, Permissions, Sandbox\n\n[comp:billing/quota](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Abilling%2Fquota%22)Live quota, credit reporting, SMS eligibility checks\n\n[comp:customizations](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Acustomizations%22)Plugins & Skills, MCP, Status Line, Window Title\n\n[regression issue](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22regression%20issue%22)To spot regression issues from previous updates\n\n[subtype:ubuntu/Linux](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22subtype%3Aubuntu%2FLinux%22)Ubuntu/Linux build, execution, or keybinding issues\n\n## Description\n\n### Antigravity CLI Version\n\n1.5.17 (regressed vs 1.5.16)\n\n### Environment Context\n\n- **OS:** Linux x86_64 (Fedora 45)\n- **Shell:** bash\n- **Terminal Emulator:** not applicable (reproduced via headless`agy acp` stdio client)\n- **Runtime Version:** Antigravity CLI 1.5.16 vs 1.5.17 (consumer OAuth plan, Gemini Models)\n- **Hardware Details:** x86_64 desktop, single isolated process per run (no concurrent sessions)\n\n### Steps to Reproduce\n\n**Summary**\n\nStarting in `agy` **1.5.17**, running `agy acp --agent <custom-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.\n\n**Minimal reproduction**\n\n1. 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` :\n\n```\n---\nname: notools-custom\ndescription: Minimal custom agent with no tools\nmainAgent: true\nsubagent: false\ntools: []\ninheritCustomizations: false\nexcludeDefaultComponents: true\n---\nYou are a terse assistant. Answer directly.\n```\n\n2. Check baseline quota until two consecutive reads agree:\nRecord\n\n```\nAGY_CLI_DISABLE_AUTO_UPDATE=1 agy -p \"/usage\" --output-format json\n```\n\n `remaining_fraction` for`gemini-weekly` and`gemini-5h` under`Gemini Models` .\n3. 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):\nPrompt used (with a fresh UUID nonce per run to avoid caching):\n\n``` python\nimport json, os, subprocess, sys, threading\n\nbinary, work, prompt = sys.argv[1], sys.argv[2], sys.argv[3]\nextra = sys.argv[4:]  # e.g. [\"--agent\", \"notools-custom\"]\nproc = subprocess.Popen(\n    [binary, \"acp\", *extra], cwd=work,\n    env={**os.environ, \"AGY_CLI_DISABLE_AUTO_UPDATE\": \"1\"},\n    stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,\n    text=True, bufsize=1,\n)\nresults, lock, nid = {}, threading.Condition(), [0]\n\ndef send(obj):\n    proc.stdin.write(json.dumps(obj) + \"\\n\")\n    proc.stdin.flush()\n\ndef req(method, params):\n    nid[0] += 1\n    rid = nid[0]\n    send({\"jsonrpc\": \"2.0\", \"id\": rid, \"method\": method, \"params\": params})\n    with lock:\n        while rid not in results:\n            lock.wait(timeout=300)\n        return results.pop(rid)\n\ndef reader():\n    for line in proc.stdout:\n        msg = json.loads(line)\n        if \"method\" in msg and \"id\" in msg:\n            send({\"jsonrpc\": \"2.0\", \"id\": msg[\"id\"], \"error\": {\"code\": -32601, \"message\": \"unsupported\"}})\n        elif \"id\" in msg:\n            with lock:\n                results[msg[\"id\"]] = msg\n                lock.notify_all()\n\nthreading.Thread(target=reader, daemon=True).start()\ntry:\n    init = req(\"initialize\", {\"protocolVersion\": 1, \"clientCapabilities\": {\"fs\": {\"readTextFile\": False, \"writeTextFile\": False}, \"terminal\": False}})\n    methods = (init.get(\"result\") or {}).get(\"authMethods\") or []\n    if methods:\n        req(\"authenticate\", {\"methodId\": methods[0][\"id\"]})\n    res = req(\"session/new\", {\"cwd\": work, \"mcpServers\": []})[\"result\"]\n    sid = res[\"sessionId\"]\n    pick = next(m[\"modelId\"] for m in res[\"models\"][\"availableModels\"] if \"Neon (XHigh)\" in m[\"name\"])\n    req(\"session/set_model\", {\"sessionId\": sid, \"modelId\": pick})\n    req(\"session/prompt\", {\"sessionId\": sid, \"prompt\": [{\"type\": \"text\", \"text\": prompt}]})\n    print(\"session:\", sid)\nfinally:\n    proc.terminate()\n    proc.wait(timeout=10)\n```\n\n `Nonce <uuid>. List the first 25 prime numbers, give their sum, and state in one sentence why 1 is not prime. Then stop.`\n4. 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/<session>.db` (`gen_metadata` ).\n5. Repeat step 2–4 with `agy`**1.5.16** vs**1.5.17** , and as a control without`--agent` (default agent).\n\n### Expected Behavior\n\nA 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).\n\n### Actual Behavior / Error Screenshots\n\nIn 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.\n\nNormalizing each run by native Neon token usage at API rates ($3/M uncached input, $15/M output; 0 cached tokens on fresh sessions):\n\n| Run | `agy` version | `agentScript` | `streamGenerateContent` calls | Native Neon tokens (in / out) | API equiv. ($) | Weekly Δ (pp) | 5h Δ (pp) | $/weekly pp | Relative burn | \n|---|---|---|---|---|---|---|---|---|---|\n| `agy acp --agent notools-custom` | 1.5.16 | `true` | 2 | 740 / 2,441 (2,307 thinking + 134 resp.) | $0.038835 | 0.006470 pp | 0.025886 pp | **$6.0022** | 1.00× | \n| `agy acp --agent notools-custom` | 1.5.17 | `true` | 2 | 737 / 3,066 (2,924 thinking + 142 resp.) | $0.048201 | 0.032133 pp | 0.128532 pp | **$1.5001** | **4.001×** | \n| `agy acp` (default agent, run 1) | 1.5.16 | `false` | 2 | 12,007 / 2,868 | $0.079041 | 0.013173 pp | 0.052696 pp | **$6.0004** | 1.00× | \n| `agy acp` (default agent, run 2) | 1.5.16 | `false` | 2 | 12,009 / 2,741 | $0.077142 | 0.012857 pp | 0.051421 pp | **$6.0001** | 1.00× | \n| `agy acp` (default agent, run 1) | 1.5.17 | `false` | 2 | 12,001 / 3,317 | $0.085758 | 0.014293 pp | 0.057173 pp | **$5.9999** | 1.00× | \n| `agy acp` (default agent, run 2) | 1.5.17 | `false` | 2 | 12,003 / 3,014 | $0.081219 | 0.013536 pp | 0.054145 pp | **$6.0001** | 1.00× | \n\nNotes:\n\n- 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](https://github.com/google-antigravity/antigravity-cli/issues/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](https://github.com/google-antigravity/antigravity-cli/issues/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](https://github.com/google-antigravity/antigravity-cli/issues/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).\n- Is this 4× quota weighting for custom agents an unintended regression in 1.5.17, or an intentional (currently undocumented) change?\n\n### Logs & Configurations\n\nRelevant lines from `~/.gemini/antigravity-cli/log/acp-server-*.log` for the two `--agent notools-custom` runs:\n\n**1.5.16:**\n\n```\nLanguage server version: 1.5.16\nCreating new cascade trajectory (agentScript=true)\n# Exactly 2 streamGenerateContent calls in the log; 0 monitor calls; 0 resumes.\n```\n\n**1.5.17:**\n\n```\nLanguage server version: 1.5.17\nCreating new cascade trajectory (agentScript=true)\n# Exactly 2 streamGenerateContent calls in the log; 0 monitor calls; 0 resumes.\n```\n\nAgent file (`.agents/agents/notools-custom.md`):\n\n```\n---\nname: notools-custom\ndescription: Minimal custom agent with no tools\nmainAgent: true\nsubagent: false\ntools: []\ninheritCustomizations: false\nexcludeDefaultComponents: true\n---\nYou are a terse assistant. Answer directly.\n```\n\n## Activity\n\n1. added[bug](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22bug%22) Something isn't working[subtype:ubuntu/Linux](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22subtype%3Aubuntu%2FLinux%22) Ubuntu/Linux build, execution, or keybinding issues[comp:agent capabilities](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Aagent%20capabilities%22) Background Tasks & Subagents, Permissions, Sandbox[comp:customizations](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Acustomizations%22) Plugins & Skills, MCP, Status Line, Window Title[comp:billing/quota](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Abilling%2Fquota%22) Live quota, credit reporting, SMS eligibility checks[regression issue](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22regression%20issue%22) To spot regression issues from previous updateson Nov 26, 2026\n2. Experiencing this too. 5-hour Usage limits drained in 45 minutes Vs 4-5 hours before.\n3. Experiencing this too. 5-hour Usage limits drained in 10 minutes Vs 4-5 hours before. Reacted by Aleksandar Puharic [Rolfs] and Yixuan\n4. 我是使用了一个完整的五小时配额，然后周配额也清空了，我记得在五小时配额使用之前当时周配额还有一半以上的。 Reacted by Yixuan, kaku717813694, Lunar Dev, uni1k and z121245017-ai\n5. Experiencing this too。\n6. same\n7. 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.Reacted by yiruxiao262Reacted by Aleksandar Puharic, Luna, qvsix, lolmatikx, juziguai, wsw3939, xiaoyiru92-cmd, shinkimea, many bear, tsukumi and 214 moreReacted by Emilia296, Dolutech, IA20201 and yiruxiao262Reacted by yiruxiao262Reacted by Si1entroom, yiruxiao262 and safwan6363Reacted by yiruxiao262Reacted by yiruxiao262Reacted by SourceCodeplz, Fabison Andrea de Souza, zuiailaoda and Matt\n8. ### 15 remaining items\n9. So why not disable customize agent feature, since it's useless? Reacted by DM3GA, NazukiMio, Lennard and David Zhang\n10. Then you should remove the entire `.agents/agents/*` feature, and delete this page:[https://antigravity.google/docs/subagents/](https://antigravity.google/docs/subagents/) Reacted by aeongdesu, ryank231231, Hunter-Chen, Neodon, losewayy, AdamWangXX, tisfeng, Yufan Kuang, DM3GA, NazukiMio and 4 more\n11. Google is always low. They have done some pretty disgusting stuff about AI subscription / billing / API etc in the past year. most people didn't know because Gemini was dead for nearly a year and nobody cared. \n Let me show you one example. They expanded the kv cache pool a week ago so that we now have a normal cache hit rate. This only happened because so many people were complaining on X that they couldn't pretend they aren't aware anymore. But the cache hit and TTFT issues actually predate Gemini 4 era (even on vertex). A very small group of people had to live with these issues. Some of them complained and Google didn't do anything.\n There are a lot of similar examples, but I think my point is made.\nSo for anyone furious and complaining, know that they will only fix this when more and more people are aware and complaining. We should spread the words🤣 that's the only wayReacted by Raul Garrido, DM3GA, NazukiMio, 1PercentSync, yuchenfei, Lennard and safwan6363\n12. added a commit that references this issueon Nov 28, 2026\n13. added a commit that references this issueon Nov 28, 2026\n14. Same problem, and i didnt use --agents, just using neon week limit is over in 4-5 hours, maybe less. \n [@yaoshengzhe](https://github.com/yaoshengzhe) Reacted by Raul Garrido and DM3GA\n15. 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](https://github.com/google-antigravity/antigravity-cli/issues/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. Reacted by DM3GA\n16. [@yaoshengzhe](https://github.com/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. Reacted by Raul Garrido, 123bbt, Alaestor Weissman, banzhe, IA20201, Yufan Kuang, DM3GA and NazukiMio\n17. added a commit that references this issueon Nov 28, 2026\n18. Closing this as \"intentional\" without any prior notice, release note, or UI warning is a serious trust issue for paying subscribers. \n  1. **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.\n  2. **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.\n  3. **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.\n At minimum, please: \n  - Document the exact multiplier and scope in the release notes and docs;\n  - Show an explicit warning before a `--agent` / custom-agent session starts and itemize multiplier usage in`/usage` ;\n  - Reconsider penalizing legitimate custom agents running inside Antigravity's own harness.\nReacted by Alaestor Weissman, Mr-Cong, Neodon, sssysy, IA20201, Zephyr, Ryan Ray, Femoon, BlueRain-debug, ttys001 and 18 more\n19. added a commit that references this issueon Nov 28, 2026\n20. added a commit that references this issueon Nov 28, 2026\n21. 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](https://github.com/yaoshengzhe) Reacted by Illustar0\n22. 是不是gpt不行了谷歌你们就觉得可以蹬鼻子上脸了 Reacted by Tsuki, NazukiMio, liziyuanliziy-sys, Lennard, TSAO, East, zanllp and Pref2rence\n23. Four times the burn rate. No changelog. No warning before the request. No line \n item in /usage. And the issue gets closed as \"intentional\" while the only\n question that matters — why does a one-line custom agent with tools: [] and\n subagent: false cost 4× — is never answered.If the real concern is people stripping the harness to turn a subscription into \n an API proxy, then say that, name the abuse, and target it. Blanket-taxing every\n legitimate custom agent and hiding the meter is not a policy, it's a trap for\n paying users. Announce the multiplier, show it before the first request, itemize\n 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 \nbreath. Intentional means you knew. It doesn't mean you told us.Reacted by NazukiMio, egorlepa and TSAO\n\n## Metadata\n\n## Metadata\n\n### Assignees\n\n### Labels\n\n[1.5.17](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%221.5.17%22)\n\n[ACP](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22ACP%22)\n\n[bug](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22bug%22)Something isn't working\n\n[comp:agent capabilities](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Aagent%20capabilities%22)Background Tasks & Subagents, Permissions, Sandbox\n\n[comp:billing/quota](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Abilling%2Fquota%22)Live quota, credit reporting, SMS eligibility checks\n\n[comp:customizations](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22comp%3Acustomizations%22)Plugins & Skills, MCP, Status Line, Window Title\n\n[regression issue](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22regression%20issue%22)To spot regression issues from previous updates\n\n[subtype:ubuntu/Linux](https://github.com/google-antigravity/antigravity-cli/issues?q=state%3Aopen%20label%3A%22subtype%3Aubuntu%2FLinux%22)Ubuntu/Linux build, execution, or keybinding issues", "url": "https://wpnews.pro/news/google-antigravity-acp-using-custom-agent-consumes-4x-quota-per-token", "canonical_source": "https://github.com/google-antigravity/antigravity-cli/issues/1890", "published_at": "2026-11-29 10:46:31+00:00", "updated_at": "2026-11-29 11:14:21.887982+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "agent-protocols", "large-language-models"], "entities": ["Google", "Antigravity CLI", "Gemini", "Gemini 4 Neon", "Agent Client Protocol"], "also_reported_by": [], "takeaway": "Antigravity CLI 1.5.17 charges 4.00x Gemini weekly and 5-hour quota per token for `agy acp --agent <custom-agent>` runs versus 1.5.16, while the default agent is unaffected — pin 1.5.16 or avoid custom agents until fixed.", "recommendation": {"advice": "Pin Antigravity CLI to 1.5.16 or avoid `--agent` custom agents on 1.5.17, and check `/usage` remaining_fraction before and after runs to catch the 4x quota multiplier.", "playbook": "llm-cost", "playbook_url": "https://wpnews.pro/playbooks/llm-cost"}, "alternates": {"html": "https://wpnews.pro/news/google-antigravity-acp-using-custom-agent-consumes-4x-quota-per-token", "markdown": "https://wpnews.pro/news/google-antigravity-acp-using-custom-agent-consumes-4x-quota-per-token.md", "text": "https://wpnews.pro/news/google-antigravity-acp-using-custom-agent-consumes-4x-quota-per-token.txt", "jsonld": "https://wpnews.pro/news/google-antigravity-acp-using-custom-agent-consumes-4x-quota-per-token.jsonld"}}