Google Antigravity's ACP custom-agent has been reported to consume roughly 4 times the expected quota per token. The real problem is not that a single call is expensive; it is that budgets no longer constrain behavior. This article breaks down how quota is measured, what an Agent task actually costs, and which budget controls teams can implement now.
The source material cites GitHub Issue #1890 for Google Antigravity's antigravity-cli, which claims that using a custom-agent through ACP consumes approximately 4 times the quota per token.
The report reached the front page of Hacker News, earning 347 points and 169 comments. Interest was intense, but the available material has an important limitation: the report of “roughly 4x quota” and the ensuing discussion are confirmed, while the underlying billing implementation, eligible accounts, and multiplier calculation still require an official explanation from Google.
Original Issue: https://github.com/google-antigravity/antigravity-cli/issues/1890
Hacker News discussion: https://news.ycombinator.com/item?id=50686688
How the 4x Quota Multiplier Surfaced
Issue #1890 concerns quota consumption created by the combination of Google Antigravity, ACP, and custom-agent, rather than an ordinary one-time model call.
Developers suspected that the same token carries an additional multiplier when processed through this path. Four times sounds substantial, but judging the ratio from the token count shown in a screenshot can be misleading: the request appears short while the quota falls unusually quickly.
Verifying the multiplier requires a controlled comparison, not a simple before-and-after comparison of two balances:
- Keep the model, prompt, and context length fixed.
- Run the default Agent and the ACP
custom-agentseparately. - Record input tokens, output tokens, cache hits, tool calls, and the total quota change.
- Repeat the runs to rule out network retries, background summarization, and temporary context growth.
- Preserve complete call logs to separate model consumption from platform quota deductions.
A useful starting point is a minimal script based on call logs. The following Python code calculates the total input, output, and cache tokens:
import json
from pathlib import Path
records = []
for line in Path("agent-usage.jsonl").read_text().splitlines():
if line.strip():
records.append(json.loads(line))
input_tokens = sum(r.get("input_tokens", 0) for r in records)
output_tokens = sum(r.get("output_tokens", 0) for r in records)
cache_read_tokens = sum(r.get("cache_read_tokens", 0) for r in records)
cache_write_tokens = sum(r.get("cache_write_tokens", 0) for r in records)
total_tokens = (
input_tokens
+ output_tokens
+ cache_read_tokens
+ cache_write_tokens
)
print(json.dumps({
"input_tokens": input_tokens,
"output_tokens": output_tokens,
"cache_read_tokens": cache_read_tokens,
"cache_write_tokens": cache_write_tokens,
"total_tokens": total_tokens,
}, indent=2))
This script answers only “How many tokens were used?” It cannot independently establish whether a 4x multiplier was applied. To calculate the multiplier, divide the quota difference for the same task across the two execution paths, while confirming that account-level rate limits, concurrency rules, and plan restrictions do not affect the comparison.
In other words, the Issue provides an anomaly worth reproducing, not a published billing formula.
Tokens Are Not the Main Cost
The most common mistake in the Agent era is to continue measuring cost by “how many tokens did the final answer use?”
That approach is adequate for a chatbot. Chatbots are usually one question and one answer: the input is the user's question, and the output is the response. It does not work for Agents. An Agent may read files, search code, call tools, inspect results, and decide whether the task is complete. If it fails, it may retry, correct itself, and delegate work to another Agent.
A final response may contain only 500 tokens. Behind it, there may be:
- 20 model calls;
- 10 file or search tool calls;
- 3 failed attempts;
- 2 duplicate context payloads;
- A multi-Agent delegation chain.
The metric that matters is therefore not the token count of one response, but:
Cost per effective task = total tokens consumed before a task ends ÷ number of tasks completed successfully
If a task consumes an average of 80,000 tokens and has a 25% success rate, its model cost per successful task is 320,000 tokens. This figure is much closer to the actual business bill than “response length multiplied by 4.”
Several categories of cost also need to be separated:
| Cost category | Common mistake | More useful metric |
|---|---|---|
| Input | Counting only the user prompt | Including history, tool results, and system context |
| Output | Counting only the final answer | Including plans, reflections, and retries |
| Caching | Treating all cached tokens as new cost | Separating cache reads from cache writes |
| Tool calls | Counting only API tokens | Adding search, execution, network, and third-party API fees |
| Task turns | Equating one task with one call | Tracking average turns, failure rate, and idle-loop ratio |
The dispute over ACP custom-agent exposes a deeper problem: these costs have not previously been surfaced in a unified view.
Agent Orchestration Can Create a Quota Black Hole
Multi-Agent delegation has a practical problem: every participant may assume it has received only a small slice of the task.
A primary Agent reads the repository and identifies subtasks. A planning Agent reads the same context again. An execution Agent searches and modifies files. A review Agent then places the relevant repository content back into its prompt. If each step duplicates the full context, costs can grow rapidly along the orchestration graph.
Suppose a task has six nodes. Each uses only 10,000 tokens, which does not appear excessive. But if every node carries 20,000 tokens of shared context, actual consumption is:
6 × (10,000 actual generation + 20,000 repeated context) = 180,000 tokens
Failed retries then add further consumption:
First pass: 180,000
× 1.4 average attempts
= 252,000 tokens
If the custom-agent path also carries an approximately 4x quota multiplier, a team with a nominal 1-million-token quota could hit its hard limit much earlier than expected.
This is why “write a more token-efficient prompt for the Agent” is usually insufficient. A prompt can shape behavior, but it cannot provide the system with a hard budget boundary. A budget only acts as a control surface if the Agent checks its remaining allowance before every call. Otherwise, it is merely an invoice delivered after the fact.
Do Not Rely on One Prompt to Control an Agent
A practical implementation sets limits at both the task entry point and the orchestration layer.
A minimal task budget can include four controls:
budget:
max_tokens: 80000
max_turns: 12
max_tool_calls: 20
max_retry_attempts: 2
Two hard rules should also apply:
- At 80% of the budget, stop expanding the plan and prioritize delivering the available results.
- At 100% of the budget, stop the Agent and return its current status and unresolved items.
At a minimum, every step should record:
{
"task_id": "fix-auth-regression",
"step": 3,
"agent": "coder",
"turn": 4,
"input_tokens": 18240,
"output_tokens": 2130,
"cache_read_tokens": 9200,
"tool_calls": 2,
"elapsed_ms": 8420,
"status": "running"
}
These logs should be written to disk after every step rather than aggregated after the task finishes. If a task is interrupted, its final record provides the starting point for locating the source of excessive consumption.
Different tasks should also receive different budgets instead of applying one company-wide limit:
- Code formatting fixes: Few turns and strict tool-call limits.
- Cross-repository refactoring: A moderate token ceiling with more room for retrieval.
- Open-ended research: Limits on total duration and search attempts.
- High-risk automated changes: Human approval checkpoints and no unrestricted retries.
The tighter the budget, the more important it becomes to distinguish “succeeded,” “failed,” and “abandoned.” A task that promptly returns an incomplete result is far cheaper than one that retries continuously for 20 minutes.
Procurement and Model Routing Need Recalculation
For a team buying model capacity, the per-token price is no longer the only variable, and may not even be the most important one.
Suppose Model A has a lower unit price but requires four calls on average, while the more expensive Model B completes tasks in one call. The real cost should be expressed as:
Cost per task
= model unit price × average input and output tokens × average turns ÷ success rate
+ tool fees
This also changes model-routing rules. Cheaper models suit classification, summarization, and localized edits. Complex planning, failure diagnosis, and cross-file reasoning can go to stronger models. Not every node should use the same model, and every step should not be assigned to the most expensive one.
For ACP custom-agent, a conservative approach would be:
- Reproduce Issue #1890 first on a non-production account.
- Use a fixed task set to compare quota differences between the default path and
custom-agent. - Evaluate task success rate, tokens per successful task, and completion time together.
- Set team-level daily quotas, task-level token ceilings, and turn limits.
- Do not describe the “4x” figure as a confirmed billing rule until Google publishes an official explanation.
The unsuitable use cases are equally clear: low-value, high-frequency batch work with fixed steps. Routine regex replacements, file moves, and format conversions do not justify the additional orchestration overhead. Complex debugging, migration, and cross-repository changes with well-defined boundaries are better candidates for testing custom-agent, provided the task budget has a hard ceiling.
Procurement contracts should evolve as well. Alongside the price per million tokens, they can add three fields: “cost per successful task,” “average retry count,” and “quota deduction methodology.” Without those fields, actual consumption on different accounts remains difficult to compare.
Implications for Cost Accounting
The significance of this dispute is not limited to whether ACP custom-agent really has a 4x multiplier. It reflects a fundamental change in the unit of cost measurement for AI Agents. Chatbots are billed for responses, while tool-using Agents generate costs through sequences of calls, duplicated context, retries, and delegations. Looking only at input and output tokens makes the most expensive tasks appear inexpensive.
Developers are likely to move from measuring “tokens per call” to measuring “cost per successful task,” placing success rate, average turns, and idle-loop ratio in the same cost table. Model routing will also shift from static rules to task-level policies, with a budget controller deciding when to switch models and when to stop.
What has changed is the resource being wasted. Earlier, the waste was response time; now, it is shared team quota. The ACP custom-agent report has brought the issue into the open. However, the source of the multiplier, its eligible accounts, and its calculation method remain unconfirmed. Until Google provides a full explanation, the defensible conclusion is not “a 4x multiplier has been proven.” It is: “There are reproducible signs of abnormal quota consumption, and budget controls need to be added now.”
Sources
https://github.com/google-antigravity/antigravity-cli/issues/1890
No comments yet — start the discussion