agent-web-search-setup
БесплатноЗапускает вложенные скриптыНе проверенFixes web search on an agent whose model backend can't run it: a relay/reseller proxying Claude or Codex returns empty instead of failing. Use when web search…
от daymade★ 1 556 звёзд на GitHubОб этом скилле
Agent Web Search Setup
A model backend that cannot search is not the same as a model that searched and found nothing, but from inside the conversation the two look identical. This skill turns the first into the second, on whichever agent is in front of you. It configures the agent's tools; it is not itself a search engine, so nothing here answers a query directly — the proof of done is the agent's own session calling a real tool.
What actually breaks
Anthropic's web_search and web_fetch are server tools: the API runs them
during the request and splices results into the same response. OpenAI's Responses
API web_search works the same way. The client only ever declares the tool.
A reseller that proxies to another cloud cannot execute those. Anthropic's own documentation states that web fetch is unavailable on Amazon Bedrock and Google Cloud; search was measured failing the same way on both. What comes back is not an error. It is an empty shell, so the model concludes the topic does not exist and says so with total confidence. That is the whole bug, and it is why users report their agent has "gotten stupid" rather than reporting a broken tool.
Three things follow, each of which cost real time to establish:
- Switching models does not help. One reseller was measured routing four model names to three different backends; none produced a working search.
web_fetchbreaks with it. Fixing only search moves the failure from "I found nothing" to "I found links but cannot open them."- Installing an alternative is not enough on its own. With the dead tool still on the menu, a model made 21 web-search calls and 0 calls to an installed alternative whose description said the built-in was broken. Built-in tools win head-to-head. The dead tool has to be removed, or nothing else you do matters.
1. Prove it, on this machine
Do not take the user's word for which tool is broken, and do not take yours.
<skill> below is the directory holding this SKILL.md — substitute the real
path. If it is somehow not known, find ~ -type d -name agent-web-search-setup
locates it.
python3 <skill>/scripts/diagnose.py
It reads ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN / ANTHROPIC_MODEL, or the
OPENAI_ equivalents under --api openai, or takes --url --key --model. Exit
codes: 0 nothing to fix, 1 at least one tool is dead, 2 undetermined. --json
for parsing.
Those values are usually not in the shell — go and read them out of the client.
A person on a relay set it up through a provider switcher or a settings screen, not
by exporting variables, so a plain shell sees nothing and the probe stops before it
starts. For Claude Code they live in the env block of ~/.claude/settings.json;
for Codex, the base URL is under [model_providers.*] in ~/.codex/config.toml and
the key is in ~/.codex/auth.json. Read them from there and pass them with --url
and --key. Never print the key.
This step needs a working python3, and on a fresh Mac that is one dialog.
/usr/bin/python3 ships as a stub that opens the Command Line Tools installer the
first time it is called. Expect it, and say so before it appears rather than after.
The script itself is standard library only and runs on the 3.9 that macOS ships, so
nothing else has to be installed — which is exactly the difference between this one
dialog and an MCP server that wants Node plus an SDK.
It reports a verdict per tool and names the real backend from the tool-call id
prefix (toolu_vrtx_ Vertex AI, toolu_bdrk_ Bedrock, ws_ an OpenAI hosted
tool). A model that simply
declined to call the tool is reported as inconclusive, not as broken; re-run
or try another model rather than treating silence as evidence.
Slow is not dead, and the difference is easy to get wrong. One gateway was measured answering in about 15 seconds on two model ids and about 146 on a third. A timeout set between those two numbers reports a perfectly healthy endpoint as broken, which is the same misdiagnosis this skill exists to correct. The default allows for the slow case; if you shorten it, a timeout still reports inconclusive rather than a verdict.
Codex reaches its backend through a different API, so probe that one. Its
hosted search lives in the OpenAI Responses API, where a working endpoint returns a
web_search_call item. --api openai asks there. Asking only the Anthropic shape
leaves a Codex user with no verdict at all.
The commonest way that probe fails is not a refusal — it is a missing route, and
that is more decisive than it looks. A relay measured here answers the older
/v1/chat/completions with HTTP 200 and returns HTTP 404 for /v1/responses. Both
facts matter together: the endpoint really is OpenAI-compatible, and it simply does
not implement the surface hosted tools are served through. So hosted search cannot
run there at all, and for Codex that settles the whole question, because that
Установить agent-web-search-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-web-search-setup?
Fixes web search on an agent whose model backend can't run it: a relay/reseller proxying Claude or Codex returns empty instead of failing. Use when web search returns nothing, a model insists a shipped product doesn't exist, someone wants to give an agent internet access, or the user is on a third-party base URL, relay, or 中转站. Diagnoses which built-in tools are dead, removes them, and installs a working replacement.
Как установить скилл agent-web-search-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-web-search-setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic