agent-web-search-setup

agent-web-search-setup is a skill for Claude Code, Codex from daymade/claude-code-skills. It costs 97 tokens per session (8,913 once invoked), scanned C, original, MIT.

A setup guide for giving an AI agent working web search when its model provider cannot run the search tools itself.

In plain words
What is it for?
Use it to diagnose proxied or relayed model backends and configure a usable search path for web research.
Why use it?
It distinguishes an actual empty search from a missing tool, avoiding confident answers based on the false belief that nothing was found.

Skill for Claude CodeCodex

Written for Claude Code and Codex: SessionStart hook event, but also reads $CODEX_HOME. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Part of the daymade-claude-code plugin — 21 skills shipped together

Good fit Use it to diagnose proxied or relayed model backends and configure a usable search path for web research.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/agent-web-search-setup
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,516 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add daymade/claude-code-skills --skill agent-web-search-setup
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code, Codex.

Or install daymade-claude-code, the plugin that ships this one along with the rest of its 21 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-web-search-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/agent-web-search-setup/github.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/agent-web-search-setup)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/agent-web-search-setup"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/agent-web-search-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-web-search-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/agent-web-search-setup"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/agent-web-search-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,913 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.08913
Opus 5.5 $0.00039 $0.03565
Sonnet 5.5 $0.00019 $0.01783
Haiku 4.5 $0.00010 $0.00891

Measured 16d ago against content hash 417143817b92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

agent-web-search-setup scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/diagnose.py, tests/test_diagnose.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

starts. For Claude Code they live in the `env` block of `~/.claude/settings.json`;

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

**Grant every tool you are relying on, not just the search one.** If `web_fetch`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

process — a CLI, a `curl`, a script through the shell — is unaffected.
daymade-claude-code/agent-web-search-setup/SKILL.md · 657 lines

How it starts

The opening of the file, as written. The whole thing — 657 lines — stays where its author put it; the contents beside it link to each section on 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_fetch breaks 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.

Read the full file on GitHub · 657 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +3 lines 417143817b92
  2. 1mo ago Changed · -4 lines · -93 tokens per session ff4f7c510066
  3. 1mo ago Changed · +321 lines scan B → C a54b4179c3d8
  4. 1mo ago First seen · 337 lines · 190 tokens per session scan B adb01b8a7a90

Subscribe to this mod's changes

agent-web-search-setup is a skill published in the GitHub repository daymade/claude-code-skills (1,516 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 8,913 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 3 findings (reads agent configuration directories, unrestricted tool access, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

agent-web-search-setup compared with skills from other repositories

agent-web-search-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-web-search-setupdaymade/claude-code-skillsSkill1.5kyesterdayMITC97Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code