Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(acp): support lazy tool loading / tool-group filtering for ACP providers (e.g. Gemini / Antigravity) #48045

Closednadzifal(GitHub profile, opens in a new tab) opened this issue 2 comments

Problem

When running threads on Claude Code, t3-code leverages ENABLE_TOOL_SEARCH so that almost all t3-code MCP tools are deferred (lazy-loaded), keeping per-turn prompt overhead minimal (only request_secret and send_to_user eagerly loaded).

However, for ACP-bridged providers (such as Gemini / Antigravity), all 65+ t3-code MCP tool schemas (device_*, preview_*, pull_request_*, ci_*, *_issue*, t3_theme_*, etc.) are injected eagerly on every turn (~25k–40k tokens of JSON schema definitions), even in threads that never use simulator devices, browser recording, issue trackers, or theme customization (and also consuming tool-schema budget alongside user MCP servers, related to #46244).

Proposal

Provide one or both of the following for ACP providers in T3 Code (v0.1.13+):

  1. Settings-level t3-code MCP tool-group filtering (per-environment / per-project / per-thread toggles for unused groups like device, preview, issues, pull_requests, theme, while keeping core thread / orchestrator / html_render tools active), and/or
  2. Bridge-level lazy tool discovery (exposing lightweight t3_tool_search + t3_tool_call meta-tools to ACP providers when native deferred tool loading is unavailable).

Impact

Reduces prompt prefill size, token overhead, and turn-to-turn response latency on ACP-backed orchestrator threads while preserving full workflow parity.

  1. tanstack-source added labelsfeature

  2. This is the same problem as #39362, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  3. juliusmarminge closed this

  4. Thanks @juliusmarminge! Just verified on our end: v0.1.13 stable (2026-11-26T19:32Z) was cut ~10 hours before #39362 merged (2026-11-27T05:29Z), which explains why v0.1.13 still exposes the full eager tool list while main / v0.1.14-nightly already has the 5-tool deferred-proxy mode (~3.5 KB).

    #39362 completely solves Proposal 2 for us once v0.1.14 stable ships — happy to keep this closed in favour of #39362 (unless you'd like a separate issue specifically for Proposal 1's UI/settings-level toolkit toggles like disabling device_* / preview_* outright). Appreciate the fast pointer!

Sign in to join this conversation.