bigcat1800 on Discord: Claude Desktop 4.4212 in 3p mode (Code tab,
bundled Claude Code 2.1.309) on magpie, 13 MCP servers, and no MCP tool
was deferred: ~162K tokens of tool schemas on every request, though
ENABLE_TOOL_SEARCH=true was in the CLI's environment.
Cause, read from Desktop 2.7032's app.asar (Ztr, $tr, pnr) and Claude
Code 2.1.312/2.1.316 (oae, Wvn, Yar): with Desktop's 3p policy
toolSearchEnabled unset (the default, and magpie never wrote it), the
gateway provider's tool-search mode is "off", and Desktop starts the CLI
with CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1. The CLI then answers
"standard" (no tool search) whatever ENABLE_TOOL_SEARCH says; only an
admin-tier ENABLE_TOOL_SEARCH=force beats it. The model id shape
(magpie-<n>.anthropic.claude-opus-5-5[1m] or plain claude-opus-5-5)
plays no part. With toolSearchEnabled on, Desktop passes
ENABLE_TOOL_SEARCH=force as a managed setting ("host" mode, bundled CLI
2.1.247 and later) or turns the betas back on ("legacy").
magpie's profile now gets toolSearchEnabled: true once, on a switch on
and from Sync (so a Desktop already on magpie gets it at magpie's next
start), as claudeAiImport is: desktopSeedImport and the new
desktopSeedToolSearch share desktopSeedOnce. A value the user set, false
too, or took away in Desktop's window since, stays theirs (stash mark
claude-desktop.tool-search). A profile the user applied themselves for
magpie's gateway is not written. The gateway already carries deferred
tools and tool_reference to every upstream (#2660, anthropic_shapes.go).
Run:
- CLI 2.1.312 in a sandbox HOME against a recording fake (port 3591),
60 MCP tools, model magpie-1.anthropic.claude-opus-5-5[1m]:
DISABLE_EXPERIMENTAL_BETAS=1 (+ ENABLE_TOOL_SEARCH=true): 83 tools,
0 deferred, 205KB. Same plus --managed-settings
{"env":{"ENABLE_TOOL_SEARCH":"force"}} (Desktop's host mode): 13
tools, ToolSearch, beta tool-search-tool-2025-10-19, 56KB. Plain
claude-opus-5-5 behaves the same in each mode.
- At the pushed head, on mote: gofmt -l internal/agent empty; GOOS=linux
(nogui) and GOOS=windows go vet ./internal/agent ok; go test
./internal/agent and its importers (backup cli davsync gui library
profile stats tui uninstall) ok but internal/gui's
TestMainWindowCorners/macOS_26_SDK, mote's macOS 27 red filed as
#3949 (AppKit corners, nothing this touches).
- Broken by hand: the seed returning nil turns
TestClaudeDesktopTurnsOnToolSearch red ("switch on: toolSearchEnabled
<nil>"); the once-mark ignored turns it red ("seeded again over the
user's choice").
- The same CLI in Desktop's host mode through the live gateway, in a
sandbox HOME: a Claude subscription model and a GPT routing group each
ran ToolSearch, loaded the deferred tool and called it. A Copilot
Claude model got 400 "unsupported beta header(s):
tool-search-tool-2025-10-19"; the next commit reads that refusal.
Not tried: a real Claude Desktop 4.4212 or its bundled CLI 2.1.309 (the
CLI was 2.1.312, Desktop's code read from 2.7032), a real request
through magpie in host mode to a Claude subscription or a translated
upstream with the tool-search-tool-2025-10-19 beta, and the reporter's
note that magpie's recorded shape had no anthropic-beta (the CLI sends
claude-code-20250219, interleaved-thinking and effort betas even in off
mode).