Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Ordinary Antigravity threads may incur custom-agent quota rates after agy 1.5.17 #44967

Closedmtunique(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Enable the built-in Antigravity provider in T3 Code, sign in with a personal Google account, and use Antigravity CLI 1.5.17 or 1.5.18.
  2. Start an ordinary Antigravity thread, select a Gemini model, and send a prompt. No custom agent needs to be selected in T3 Code.
  3. Inspect the corresponding acp-server-*.log under T3's isolated Antigravity profile. Look for the Creating new cascade trajectory line after session/new.
  4. Optionally, repeat with an Antigravity task launched through T3's delegate_task.

These steps isolate the session classification observed in my existing T3 sessions. I have not rerun a fresh minimal repro or a controlled quota-consumption benchmark.

Expected behavior

An ordinary T3 thread should use Antigravity's standard agent rate where supported. If integration instructions require the higher-quota-rate custom-agent classification, that cost should be made clear to users.

Actual behavior

All 26 T3 Antigravity session creations I matched against the provider logs were classified as agentScript=true, including ordinary threads and independently delegated tasks.

This matters because google-antigravity/antigravity-cli#1890 reports approximately 4x the Gemini weekly and five-hour quota consumption per token for a custom agent in agy 1.5.17 versus the default agent. An Antigravity maintainer confirmed that custom-agent requests intentionally draw quota at a higher rate.

T3 does not explicitly pass --agent. A likely cause is the unconditional session-level append in AntigravityAdapterV2.ts:

sessionSystemPromptAppend: PULL_REQUEST_LINKING_INSTRUCTIONS

AntigravityAcpSupport.ts maps this to _meta.antigravity.systemPrompt.append when the runtime advertises append support. The 1.5.18 runtime advertises that capability. Even though T3 starts ACP without --agent, the resulting session may therefore take the custom-agent path.

Confirmed: the session classification, on both CLI versions below. Not yet confirmed: whether the appended system prompt is the sole cause, and whether T3's effective quota multiplier is exactly 4x. The upstream benchmark used --agent, not ACP metadata.

Impact

Major degradation or frequent failure

If the same quota weighting applies here, ordinary T3 chats could exhaust the user's allowance substantially faster than an unmodified default-agent session, without the user explicitly selecting a custom agent. The same risk applies to T3-managed Antigravity delegation.

Version or commit

  • Observed with T3 Code server 0.1.13-nightly.20261125.5258.
  • The same append logic is present in the installed 0.1.14-nightly.20261127.5332 bundle and on main as checked on November 28, 2026.
  • Observed Antigravity ACP runtime versions: 1.5.17 and 1.5.18.

Environment

Linux x86_64; remote T3 Code server, built-in Antigravity provider, personal Google OAuth, manually installed agy binary.

Logs or stack traces

Redacted excerpts from T3's Antigravity ACP logs (November 28, 2026):

Language server version: 1.5.18
ACP Request received: session/new
Creating new cascade trajectory (agentScript=true)

For comparison, an ACP session in the same T3 profile with no model-generation calls logged:

Language server version: 1.5.18
ACP Request received: session/new
Creating new cascade trajectory (agentScript=false)

I correlated the T3 session/new request timestamps with the ACP server logs from November 26–28. The following counts are session creations, not turns or quota measurements:

T3 session typeagy 1.5.17, agentScript=trueagy 1.5.18, agentScript=true
Ordinary thread5/58/8
T3 delegated task10/103/3

All 26 matched a unique ACP session/new within two seconds. Of those, 25 had model-generation calls in the corresponding logs.

Workaround

No verified T3-side workaround. Google recommends the default agent with rules or skills for the standard rate. Could the T3 team confirm whether session-level systemPrompt.append also causes the higher quota weighting, and if so, evaluate a supported way to deliver the integration instructions without unintentionally changing the agent's billing classification? A regression test comparing default ACP sessions with and without the append, including quota measurements if available through supported mechanisms, would help establish this.

Related but distinct:

  • #28629 introduced system prompt append support before the quota policy changed.
  • #44670 proposed adding more T3 instructions to the system prompt to preserve them through compaction; it did not address quota classification.
  • #43955 and #43026 concern displaying/reading quota limits, not how ordinary sessions are metered. This report is about session classification and potential quota consumption, not restoring a quota bar or calling Google's internal endpoints.
  1. tanstack-source added labelsbug

  2. Adding controlled quota measurements for future readers: T3 Code's ordinary Antigravity ACP setup does not trigger the 4× custom-agent rate — it is billed at 1.000×, even though agy acp logs agentScript=true.

    1. What actually flips agentScript=true in agy acp 1.5.18

    Testing session/new variants against agy acp (1.5.18, without --agent):

    • mcpServers: [] and no _meta → Creating new cascade trajectory (agentScript=false)
    • Non-empty mcpServers only → agentScript=true
    • _meta.antigravity.systemPrompt.append only → agentScript=true
    • Both mcpServers and _meta.antigravity.systemPrompt.append → agentScript=true

    So agentScript=true in the ACP log reflects any session-level script/config injection (including MCP servers), not the custom-agent billing tier.

    2. Controlled A/B quota measurements (with a --agent 4× positive control)

    Measured on an isolated idle personal account using agy acp (1.5.18), single-turn fresh sessions (cached = 0, same default model across all runs), comparing settled 5h and weekly quota deltas (verified across consecutive agreeing reads):

    On this account/model, the baseline 1× rate follows:

    • expected_Δ5h_1x = (input + 5 × output) × 1e-5 % (output includes thinking tokens)
    • expected_Δweek_1x = expected_Δ5h_1x / 4
    VariantagentScriptInput / Output (Thought)Expected 1× Δ5hObserved Δ5hObserved ΔweekEffective Multiplier
    plain (mcpServers: [], no _meta)false30,369 / 2,7470.4410%+0.4410%+0.1103%1.000×
    mcp (mcpServers only, no _meta)true30,372 / 3,4060.4740%+0.4741%+0.1185%1.000×
    both (mcpServers + systemPrompt.append)true30,386 / 4,8590.5468%+0.5468%+0.1367%1.000×
    T3 repro (both + live Streamable HTTP MCP serving 5 tools + PULL_REQUEST_LINKING_INSTRUCTIONS)true31,263 / 3,108 (2,758)0.4680%+0.4680% (8.4525% → 8.9205%)+0.1170% (8.6579% → 8.7749%)1.000×
    Positive control (agy acp --agent <custom>, mainAgent: true, tools: [])true18,619 / 3,531 (3,195)0.3627% (4× = 1.4510%)+1.4510% (7.0015% → 8.4525%)+0.3627% (9.0115% → 9.3742%)4.000×

    Back-to-back cumulative check across the positive control and the live-MCP T3 repro: 7.0015% + 1.4510% (4.000×) + 0.4680% (1.000×) = 8.9205% (0.0000% residual).

    (Note: quota readouts immediately after a turn can transiently overshoot for ~30s before reconciling back down to the settled 1× figure, so waiting ~60–120s for consecutive agreeing reads is needed to avoid false positives.)

    Conclusion

    Ordinary T3 Code Antigravity threads (which pass mcpServers and _meta.antigravity.systemPrompt.append without --agent) are not affected by the 4× custom-agent quota rate from google-antigravity/antigravity-cli#1890. Only explicit custom-agent runs (--agent) incur the 4× multiplier.

Sign in to join this conversation.