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+):
- 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
- 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.
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.