Command Code's Provider API passes a provider-defined web_search on to the
model's vendor, and only some models search: M3chD09 ran all 87 and 12
did (claude-sonnet-5-5 and claude-haiku-5-5 on Messages; gpt-6-luna,
gpt-5.6-sol, gpt-5.6-luna, meta/muse-spark-1.2/1.3 and their -contributor
ids, xai/grok-4.5/4.6/4.7 on Responses). magpie took the whole provider
as one that doesn't search, so each of those searches went to the
searcher instead. Marking the provider as searching (Searches, or its
host in searchHosts) would have sent the tool to the other 75, which take
it and don't search.
searchModels now lists, per provider and API, the models that search by
themselves; modelSearches reads it for a keyed provider made from the
"commandcode" preset or at api.commandcode.ai, and none count when the
provider is sent Command Code's x-cmd-zdr header, under which it refuses
every built-in tool (cmd_zdr_unsupported_tool, from the report). It is
read in searchesModel, so the relay/translate choice and the tool swap
both follow it, and in webSearchOf, so a remote magpie's list says
"native" for those models too. Sign-ins (the Command Code Plan, its
plugin) are not changed.
Verified:
- TestCommandCodeSearchesForSomeModels: gpt-6-luna and xai/grok-4.7 on
Responses and claude-sonnet-5-5 on Messages are sent the agent's own
web search tool; deepseek-v4-pro and claude-opus-5-5 aren't; with
x-cmd-zdr: 1 none is. Without the searchesModel change it fails for the
three searching models.
- go test -run Search ./internal/gateway, gofmt -l.
- Not tried against the real Command Code API (no key for it here); the
list is the reporter's run of 2026-10-11.