/web-search:web-searchfrom web-search
Use when you need to search the web for URLs, documentation, error messages, or current information. Also use when the user asks for links or references you cannot confidently produce from memory.
Ships in web-search. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Search the web via web-search, a caching wrapper around a SearXNG instance at SEARXNG_URL (local or
remote). No tracking, no API key. Results are cached locally to avoid redundant requests.
web-search -n 5 "search query"
Key flag: -n N (result count, default 5).
JSON array of objects:
[
{"url": "...", "title": "...", "abstract": "..."},
...
]
Extract fields with jq:
web-search -n 3 "EFF Cover Your Tracks" | jq '.[].url'
| Flag | Purpose |
|---|---|
-n N | Number of results (default: 5) |
--cache-ttl N | Cache TTL in seconds (default: 3600, also via WEB_SEARCH_CACHE_TTL) |
--max-retries N | Max retry attempts on error (default: 3, also via WEB_SEARCH_MAX_RETRIES) |
--clear-cache | Purge all cached results and reset statistics |
--cache-stats | Show cache hit/miss counts and database size |
If SearXNG is unreachable (instance down, network or VPN path unavailable), the wrapper retries with exponential backoff (2s, 4s, 8s) then returns:
{
"error": "Search failed after 3 retries for query: ...",
"suggestion": "Check that SearXNG is reachable at the configured SEARXNG_URL. Verify network connectivity.",
"results": []
}
Follow the suggestion. Do NOT abandon this tool — tell the user the instance is unreachable, and retry once it is back.
SEARXNG_URL set to its base URL (default http://localhost:8888)~/.cache/web-search/cache.db (SQLite)web-search --cache-stats to inspect hit ratesweb-search --clear-cache to purge stale dataSEARXNG_URL is reachable insteadWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jodre11/claude-code-plugins --plugin web-search