Repository navigation
Open
Description
Before submitting
- I searched existing issues and did not find a duplicate. (Checked [Bug]: Antigravity ACP drops delegate_task, t3_thread_launch, and schedule_task over ~40 KB MCP schema budget and lacks T3_ACP_MCP_NODE fallback #36088, [Bug]: Antigravity ACP still cannot call delegate_task / t3_thread_launch / schedule_task (missing deferMcpTools & dropped processEnvironment) #36172, Antigravity ACP drops 11 T3 MCP tools and omits T3_ACP_MCP_NODE fallback #37884, [Bug]: Antigravity ACP drops >1KB T3 MCP tools (including delegate_task) and omits T3_ACP_MCP_NODE fallback env #37907, [Bug]: Antigravity truncates t3-code MCP tools to 50 (dropping delegate_task) and T3_ACP_MCP_NODE fallback env var is unset #37911 — all closed as
no-reprobecause they hypothesized a 50/60-tool count cap ordeferMcpToolsheader; below is the exact~1,280 Bper-tool schema cutoff measurement across all 73 tools plus whydeferMcpToolsalone cannot exposedelegate_task.) - I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
A. Server-only reproduction on main (runs in Vitest with no antigravity binary required)
- Query
tools/liston T3'sMcpHttpServerand compute the minified JSON byte length of{ name, description, parameters: inputSchema }for each of the 73t3-codeMCP tools (the exact payloadantigravity-acpwrites to<appDataDir>/mcp/t3-code/<tool>.json):- 65 tools serialize to
<= 1,242 B(largest:create_threadsat1,242 B, because itstarget.optionsuses{}instead of a verboseanyOfunion). - 8 tools serialize to
>= 1,296 B:schedule_task:3,318 Bt3_thread_launch:2,611 Bdelegate_task:1,937 Bhtml_render:1,668 B(flat 4-property schema; pushed over1,280 Bsolely by its 1.2 KBdescription)preview_act:1,629 Bt3_project_update:1,541 Bpreview_open:1,521 Bpreview_navigate:1,296 B
- 65 tools serialize to
- In
apps/server/src/provider/Drivers/AntigravityDriver.ts, callinstance.orchestrationAdapter.openSession+ensureThreadafter registering an MCP provider session (as infactory/repro-37911f752c5e1d7):AntigravityDriver.makeRuntime(input)passesbaseEnv: processEnvironment(provider-level env only) toprepareAntigravityProfile(...), droppinginput.processEnvironment(T3CODE_THREAD_ID,T3_ACP_MCP_NODE,T3_ACP_MCP_ENTRYPOINT,T3_ACP_MCP_ENDPOINT,T3_ACP_MCP_AUTHORIZATION).
B. Live session verification (t3 v0.1.10-nightly.20261116.4761 + managed antigravity 1.5.9, Linux x64)
- Start a
full-accessthread on theAntigravityprovider (gemini-4-carbonorgemini-4-hydrogen). - Inspect
<T3CODE_HOME>/userdata/providers/antigravity/<id>/antigravity-acp/mcp/t3-code/*.jsonvs the model's<mcp_servers>prompt block anddefault_apifunction declarations.
Expected behavior
- Core orchestration and UI tools — especially
delegate_task,t3_thread_launch,html_render,preview_open,preview_navigate,preview_act,t3_project_update, andschedule_task— are callable from an Antigravity ACP thread (either directly as nativemcp_t3-code_*eager tools by keeping their serialized MCP schemas under Antigravity's~1,280 Beager threshold, and/or via the documentedacp-mcp-callfallback withinput.processEnvironmentpreserved).
Actual behavior
- All 73
<tool>.jsonfiles are written to<appDataDir>/mcp/t3-code/, proving T3's/mcpserver advertised all 73 tools — there is NO 50- or 60-tool count cap (65 tools load eagerly in a single session). - Exact
~1,280 Bper-tool cutoff insideantigravity-acp(1.5.9):- 100% of the 65 tools
<= 1,242 B(create_threads.json=1,242 Band below) are registered as nativemcp_t3-code_*tools under# t3-code -> Eager:. - 100% of the 8 tools
>= 1,296 B(preview_navigate1,296 Bthroughschedule_task3,318 B, includingdelegate_task1,937 Bandt3_thread_launch2,611 B) are excluded fromEager:. - Inside
antigravity(third_party/jetski/cortex/core/tools/call_mcp_tool.go+McpToolConfig.enable_lazy_load), whent3-codeis injected dynamically via ACPsession/newmcpServers(acp.NewSessionParams.mcpServers, which only supports{ name, type, url, headers }and cannot carrymcp_config.json'stools.eager),enable_lazy_loadis not active: neither aLazy:list under# t3-codenorcall_mcp_toolindefault_apiis registered (even though Antigravity's static<mcp_servers>prompt preamble still tells the model to usecall_mcp_toolfor lazy tools). - Note: writing a user
config/mcp_config.jsonwithtools.eageris also blocked by T3 itself (AntigravityTextGenerationrejects profiles with non-emptymcp_config.json). - Note on
deferMcpTools: true: simply enablingt3-tool-exposure: deferredis not sufficient to exposedelegate_taskas a native tool in Antigravity ACP, becausedelegate_task(1,937 B) still exceeds Antigravity's~1,280 Bper-tool eager schema limit when listed.
- 100% of the 65 tools
- Simultaneously, the documented
acp-mcp-callCLI fallback fails becauseAntigravityDriver.makeRuntimedropsinput.processEnvironment, leavingT3CODE_THREAD_IDandT3_ACP_MCP_NODEunset in the Antigravity shell.
Proposed fix in apps/server
- Compact the MCP
tools/listschemas (globally or when servingantigravity-acp) so core tools stay<= 1,200 B:- For
delegate_task(1,937 B): typetarget.optionsas{}(matchingcreate_threads, which is whycreate_threadsis1,242 Band already loads eagerly!) and trim parameter descriptions -> drops well below1,200 Band makesmcp_t3-code_delegate_tasknatively eager in Antigravity ACP with zero functionality loss. - Similarly trim verbose descriptions on
html_render(1,668 B, move CSS theme instructions to<t3_code_instructions>),preview_navigate(1,296 B, only54 Bover1,242 B),preview_open(1,521 B),preview_act(1,629 B),t3_project_update(1,541 B), andt3_thread_launch(2,611 B). - Add a lightweight unit assertion in
apps/server/src/mcp/guarding serialized{ name, description, parameters }byte length (<= 1,200 B) for tools that must remain eager in Antigravity ACP.
- For
- Preserve per-session
input.processEnvironmentinAntigravityDriver.makeRuntime:- Merge
baseEnv: { ...processEnvironment, ...input.processEnvironment }when callingprepareAntigravityProfile/buildAntigravityAcpSpawnInputsoT3CODE_THREAD_IDandT3_ACP_MCP_NODEare present foracp-mcp-call(coveringschedule_taskor any future large tool).
- Merge
Impact
Major degradation or frequent failure
Version or commit
t3 v0.1.10-nightly.20261116.4761
Environment
Linux x64, T3-managed Antigravity ACP v1.5.9 (Yazi / gemini-4-carbon & gemini-4-hydrogen, full-access)
Logs or stack traces
Top 15 `<appDataDir>/mcp/t3-code/<tool>.json` sizes vs Antigravity Eager registration (73 total):
3318 B eager=False schedule_task
2611 B eager=False t3_thread_launch
1937 B eager=False delegate_task
1668 B eager=False html_render
1629 B eager=False preview_act
1541 B eager=False t3_project_update
1521 B eager=False preview_open
1296 B eager=False preview_navigate
---- ~1,280 B per-tool eager cutoff in antigravity-acp 1.5.9 ----
1242 B eager=True create_threads
1171 B eager=True t3_environment_link
1163 B eager=True t3_project_create
975 B eager=True request_secret
942 B eager=True t3_thread_read
938 B eager=True t3_theme_set
932 B eager=True preview_resize
(...all remaining 58 tools <= 902 B are eager=True; `call_mcp_tool` is absent from default_api)
Workaround
Only mcp_t3-code_create_threads (1,242 B, which barely fits under the ~1,280 B cutoff because its target.options schema is {}) is callable, which spawns top-level threads inheriting the parent worktree instead of isolated delegate_task child tasks.
Reacted by JendrikLutz
Metadata
Metadata
Assignees
Labels
No labels
Activity
travelvector commentedon Nov 18, 2026
Data point from
0.1.11-nightly.20261117.4851+Antigravity ACP Server 1.5.10(acpRegistry_google_antigravity, Windows x64): the per-tool eager schema cutoff appears to have tightened from~1,280 B(8 tools dropped in1.5.9) to~830 B, now dropping 19 of 82t3-codeMCP tools (still writing all 82.jsonfiles under.gemini/antigravity-cli/mcp/t3-code/, withcall_mcp_toolrejecting the missing 19 astool <name> is not enabled for server t3-code).Exact boundary observed across all 82 schemas (sorted strictly by size, independent of
tools/listorder — e.g.preview_openat #3 is dropped whilehtml_previewat #82 is loaded):<= 819 B, total25,698 B): largest ist3_thread_send(819 B),t3_worktree_handoff(810 B),t3_thread_transfer(802 B).>= 847 B):847 Bt3_environment_preferences_update851 Bt3_queue877 Bt3_thread_send_attachments902 Bpreview_snapshot932 Bpreview_resize939 Bt3_theme_set942 Bt3_thread_read975 Brequest_secret1,163 Bt3_project_create1,171 Bt3_environment_link1,242 Bcreate_threads>= 1,296 Btools already listed above (preview_navigate,preview_open,t3_project_update,preview_act,html_render,delegate_task,t3_thread_launch,schedule_task).So compacting schemas only to
<= 1,200 Bwould still leave 10+ core tools (t3_thread_read,t3_project_create,preview_snapshot,t3_queue,request_secret, etc.) dropped on1.5.10.juliusmarminge commentedon Nov 19, 2026
I tried to reproduce this on the current build and could not.
Commit origin/main 66235c7. Started an isolated dev server with T3CODE_DEV_SEED=0 and GOOGLE_GEMINI_BASE_URL set to the hub. In Settings > Providers > Add provider, added Antigravity with sign-in method 'Gemini API key' and a placeholder key; it picked up agy 1.5.12 and showed 'Authenticated · Gemini API key' with 8 models. Added a scratch git project and started a thread with
t3 thread start --provider <antigravity instance> --model gemini-4-hydrogen --wait. Results: (1) /antigravity-acp/mcp/t3-code/ held 79 tool JSON files with the same sizes the reporter measured (schedule_task 3318 B, t3_thread_launch 2611 B, delegate_task 1937 B, html_render 1668 B, preview_act 1629 B, t3_project_update 1541 B, preview_open 1521 B, preview_navigate 1296 B, create_threads 1242 B). (2) The model listed all 80 mcp_t3-code_* functions, including delegate_task, t3_thread_launch, schedule_task, html_render, preview_open/navigate/act, t3_project_update, and the 1.5.10 comment's smaller ones (t3_thread_read, request_secret, t3_queue, preview_snapshot, t3_project_create, t3_environment_preferences_update); call_mcp_tool was absent, as expected when nothing is lazy. (3) A follow-up turn had the model call mcp_t3-code_html_render (1668 B, above both reported cutoffs) as a native function; the server returned a real htmlRender attachment id. (4)envin the agent's shell showed T3CODE_THREAD_ID, T3_ACP_MCP_NODE and T3_ACP_MCP_ENDPOINT set (fixed on main by #36495, c67deb1, merged 2026-11-18). Antigravity 1.5.9 and 1.5.10 were not tested: their download URLs include a build number not derivable from the version.Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.
juliusmarminge commentedon Nov 19, 2026
Reopening. The check above ran in a different setup from the report (an API key instead of a Google account, and Antigravity 1.5.12), so not seeing the bug there does not show it is gone.
wuyouchao commentedon Nov 19, 2026
Additional data point on Windows x64 with Antigravity (Google account sign-in), measured right before and right after updating T3 Code on the same thread:
1. Native eager mcp_t3-code_* tools still drop — and the cutoff tightened as tool count grew
EliBlauBalto commentedon Nov 19, 2026
Root cause + why the clean-profile repro didn't trigger it
This is not a fixed per-tool byte limit — it's Antigravity's shared customization context budget truncating skills + MCP tools together, largest items first.
Per Antigravity's built-in
agy-customizations/docs/rules.md:When total
skills + MCP toolsexceeds that shared customization budget, Antigravity'scustomizations.TruncateFromBreakdown/sortTruncatableItemssorts all skills and MCP tools in one combined pool by size (largest first) and drops the biggest items completely (rather than moving them toLazy:+call_mcp_tool):t3-codeMCP tool schemas (~50 KB / ~12.4k tokens) fit comfortably inside the customization budget.~/.gemini/config/skills/(including its ~150-char full profile path + YAML frontmatterdescription) shares the same budget ast3-code's MCP tools.0.1.10/agy cli-1.5.11(Windows x64, Google account) with 70 user skills (~47.1 KB) + 74t3-codeMCP tools (~49.7 KB) = ~97 KB combined:<= 902 B, largesthtml_previewat 902 B)>= 912 B) and the 15 largestt3-codeMCP tools (>= 932 B:preview_resize932 B,t3_theme_set938 B,t3_thread_read942 B,request_secret975 B,t3_project_create1,163 B,t3_environment_link1,171 B,create_threads1,242 B,preview_navigate1,296 B,preview_open1,521 B,t3_project_update1,541 B,preview_act1,629 B,html_render1,668 B,delegate_task1,937 B,t3_thread_launch2,611 B,schedule_task3,318 B).1.5.9dropped at~1,280 B,1.5.10at~830 B, and1.5.11here at~910 B).Easy repro
1.5.11/1.5.12,t3-codeMCP enabled).<gemini-dir>/config/skills/<name>/SKILL.md.t3-codeMCP tools (schedule_task,t3_thread_launch,delegate_task,html_render, etc.) vanish from the model's declared tools withoutcall_mcp_toolbeing registered.Suggested fix in T3 Code
Set
deferMcpTools: trueinmakeAntigravityAcpAdapterFlavor(just like Copilot already does), so T3 sendst3-tool-exposure: deferredand only lists core tools +tool_searchinstead of consuming ~50 KB (~12.4k tokens) of Antigravity's shared customization budget on every session.EliBlauBalto commentedon Nov 19, 2026
Quick follow-up after live-testing
deferMcpTools: trueagainstagy.exe 1.5.11(empty--gemini-dir, 0 skills) with a mock stdio MCP server:Plain
deferMcpTools: true(including #37886) breaks single-turn optional T3 tools on Antigravity.agy.exeadvertises nomcpCapabilities, so it always uses the stdioacp-mcp-bridge(not HTTP MCP).tool_searchemitsnotifications/tools/list_changed,agy.exedoes re-calltools/listwithin 1 ms and writes the new.jsonfile to disk.agy.exebuilds itsoneharness.Toolboxonce persession/promptturn (MCPLoader.Load) and never reloads it mid-turn. Even when the mock MCP server waited 300 ms afteragy.exefinished the refreshedtools/listbefore returning thetool_searchresult, the newly listed tool was still absent for the rest of Turn 1 and only became callable on Turn 2 (the nextsession/prompt).So simply setting
deferMcpTools: true(as I initially suggested above and as #37886 does) would break Turn-1 calls tohtml_render,preview_*,t3_thread_read,request_secret,schedule_task, etc. for every Antigravity user — including clean profiles with 0 skills.Working on a minimal PR using a
"deferred-proxy"exposure mode (tool_searchreturning boundedinputSchemas + atool_callproxy tool, unwrapped inextractMcpToolCallIdentity, fixed 5-tool / ~3.5 KB surface so Turn 1 works and Copilot's"deferred"mode stays untouched). Will link it here once verified live againstagy.exe.EliBlauBalto commentedon Nov 19, 2026
Opened #39362 with the \deferred-proxy\ fix (\ ool_search\ with bounded \inputSchema\ + \ ool_call\ proxy) and live \�gy.exe 1.5.11\ before/after verification.
hh36000 commentedon Nov 20, 2026
Reproduced on macOS (arm64) with
agy1.5.12 and Agent Platform sign-in. It depends on the agy profile's skills, which would explain why the clean-profile check above found nothing.Check: a small ACP client drives
agy acpdirectly. Its one MCP server is a stdio server that advertises the 82t3-codetool schemas agy had cached underantigravity-acp/mcp/t3-code/(52,060 bytes in total) and answers every call withok <tool>. Same prompt both times,gemini-3.8-flash: call each of 8 tools directly, with nocall_mcp_tooland no shell, then report how manymcp_t3-code_tools are declared.mcp_t3-code_*declaredtool_calltitles)--gemini-dir(0 skills)comment_on_issue,t3_thread_send,t3_queue,t3_thread_read,html_render,preview_open,delegate_task,schedule_task~/.gemini/config/skills)comment_on_issue. The model reported the other 7 as "Not declared in tool declarations".My real T3 sessions match. Of 33 Antigravity sessions with
t3-codeattached, 26 recordeddelegate_task,preview_open,preview_snapshot,html_render,schedule_task,t3_thread_readandrequest_secretas excluded. The same records list my skills as "excluded due to context budget limits". So skills and MCP tools share one budget, as EliBlauBalto described. In practice the agent can't reachdelegate_taskor thepreview_*browser tools directly. In sessions that excludedt3_thread_read, the agent's transcript has no directmcp_t3-code_t3_thread_readcall: it got there only throughacp-mcp-callin the shell. One session that keptt3_thread_readcalled it directly.To reproduce: put about 80 skills in the agy profile (or point
--gemini-dirat a profile that has them), then ask for any large T3 tool directly.Investigated with Claude Opus 5.5 in Claude Code.
bsebb commentedon Nov 20, 2026
Additional data point on T3 Code (Beta)
0.1.11, Windows 11 x64, Antigravity ACP (Google account,gemini-4-neon), with 34 user skills installed:t3-codeMCP schemas were written toantigravity-acp/mcp/t3-code/.html_renderat1,668 B).call_mcp_tool:schedule_task(3,318 B)t3_thread_launch(2,611 B)delegate_task(1,937 B)This matches the shared skills + MCP customization budget explanation above (
T3_ACP_MCP_NODEandT3_ACP_MCP_ENTRYPOINTwere present, so the fallback was reachable once Windows PowerShell quoting/stdout redirection was worked around).Blind-Striker commentedon Nov 20, 2026
Additional controlled 4-point A/B data point on Windows 11 x64 using a custom Antigravity provider (
Binary path: agy,agy 1.5.13viaagy acp, Google account,gemini-4-neon) with native plugins installed under~/.gemini/config/plugins/andt3-codeexposing 71 tools (48,154 B) total schema JSON:t3-codeMCP schemascontext budget limits)t3-codeEager / Lazycall_mcp_tooldelegate_task&t3_thread_readunknown tool)unknown tool)Two observations that may help alongside #39362:
schedule_task3,359 B,t3_thread_launch2,611 B,delegate_task1,939 B,html_render1,668 B,preview_*,t3_thread_read969 B, down tot3_thread_send_attachments877 B at 5 plugins). Keeping total enabled skill prompt footprint under ~10–15 KB immediately restores all 71/71 eager tools.Binary path: agy(1.5.13) profile,T3_ACP_MCP_NODE(andT3_ACP_MCP_ENTRYPOINT) were unset in the session environment (Get-ChildItem Env:T3_ACP_MCP*returned empty), so even theacp-mcp-callshell fallback advertised in<t3_code_instructions>was unavailable whendelegate_taskwas evicted.fcakyon commentedon Nov 22, 2026
Reproduced on Linux with Antigravity ACP 1.5.14 and fork nightly 0.1.12-nightly.20261121.94. In a resumed session, Antigravity cached 88 T3 schemas and advertised 58. The 30 omitted schemas were the 30 largest on disk, including delegate_task and t3_thread_list.
Three Codex targets and one Claude target all failed with
tool delegate_task is not enabled for server t3-code. The same session could call orchestrator_capabilities. Claude created eight Codex child threads on the same server that morning.The ACP initialize reply omitted mcpCapabilities, so T3 selected stdio. This fork already enabled deferMcpTools, but only the HTTP path transmitted that setting. This confirms the tool exposure failure independently of the fallback environment issue. Testing #39362 against the fork.