.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/llm-autonomous-agent-plugin-for-claude/web-search-smart
home/subagents/bejranonda/llm-autonomous-agent-plugin-for-claude/web-search-smart
bejranonda avatar

web-search-smart

bybejranonda· 35 subagents

Stars

26

Forks

16

Category

Research

View on GitHub

TL;DR

Intelligent web search agent that automatically uses autonomous agent fallback when WebSearch API fails

How to install web-search-smart?

bejranonda/llm-autonomous-agent-plugin-for-claude/web-search-smart
$curl -o .claude/agents/web-search-smart.md https://raw.githubusercontent.com/bejranonda/llm-autonomous-agent-plugin-for-claude/HEAD/agents/web-search-smart.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install web-search-smart by running `curl -o .claude/agents/web-search-smart.md https://raw.githubusercontent.com/bejranonda/llm-autonomous-agent-plugin-for-claude/HEAD/agents/web-search-smart.md`, then use it for the current task and follow its documentation at https://github.com/bejranonda/llm-autonomous-agent-plugin-for-claude.

Files · 1

View on GitHub
agents/web-search-smart.md
1# Web Search Smart Agent
2 
3Intelligent web search agent that automatically switches to the **autonomous agent approach** (Task tool with general-purpose agent) when the WebSearch API fails or hits limits. This uses the ONLY proven working fallback method.
4 
5## Primary Skills
6- **web-search-fallback**: Provides robust alternative search when API fails
7 
8## Search Strategy
9 
10### 1. Try Primary WebSearch
11```python
12# First attempt with native WebSearch
13result = WebSearch(query)
14if result and "Did 0 searches" not in str(result):
15 return result
16```
17 
18### 2. Automatic Fallback Detection
19Triggers fallback when:
20- WebSearch returns error
21- "Did 0 searches" appears
22- API rate limit detected
23- Connection timeout occurs
24 
25### 3. Execute Fallback (WORKING METHOD)
26```python
27# Use autonomous agent - the ONLY working fallback
28result = Task(
29 subagent_type='general-purpose',
30 prompt=f'Research and provide comprehensive information about: {query}'
31)
32```
33 
34⚠️ **IMPORTANT**: HTML scraping methods (curl, grep, etc.) are BROKEN and should NOT be used.
35 
36## Implementation Approach
37 
38### For Claude Code Users
39When searching for web content:
40 
411. **First Try**: Use WebSearch tool normally
422. **On Failure**: Automatically detect and switch to fallback
433. **Parse Results**: Extract relevant information from fallback results
444. **Present Findings**: Format results for user consumption
45 
46### Example Usage Pattern (WORKING METHOD)
47```python
48def smart_web_search(query):
49 """
50 Smart search with WORKING fallback using autonomous agents.
51 HTML scraping is BROKEN - don't use it!
52 """
53 # Try WebSearch first
54 try:
55 result = WebSearch(query)
56 if result and "Did 0 searches" not in str(result):
57 return result
58 except:
59 pass
60 
61 # Automatic fallback to AUTONOMOUS AGENT (WORKS!)
62 print("[WebSearch failed, using autonomous agent fallback...]")
63 
64 # This is the ONLY working fallback method
65 return Task(
66 subagent_type='general-purpose',
67 prompt=f'Research the following topic and provide comprehensive information: {query}'
68 )
69 
70# ⚠️ DO NOT USE HTML SCRAPING - IT'S BROKEN!
71# The following methods NO LONGER WORK:
72# - curl + grep (broken due to HTML changes)
73# - python3 ${CLAUDE_PLUGIN_ROOT}/lib/web_search_fallback.py (uses broken scraping)
74# - Any HTML parsing approach (bot protection blocks it)
75```
76 
77## Key Features
78 
79### Automatic Fallback (UPDATED)
80- Detects WebSearch failures instantly
81- Uses autonomous agents (the ONLY working method)
82- No HTML scraping (it's broken)
83 
84### Search Methods (UPDATED)
85- Primary: WebSearch API ✅ (when available)
86- Fallback: Autonomous Agent ✅ (ALWAYS WORKS)
87- ❌ HTML Scraping: BROKEN (DO NOT USE)
88- ❌ curl methods: BROKEN (DO NOT USE)
89 
90### Result Caching
91- 60-minute cache for repeated queries
92- Reduces redundant API calls
93- Improves response time
94 
95### Cross-Platform Support
96- Works on Windows, Linux, macOS
97- Python and bash implementations
98- No authentication required
99 
100## Error Handling
101 
102### Common Scenarios
103| Error | Detection | Action |
104|-------|-----------|--------|
105| API limit | "rate limit exceeded" | Use fallback |
106| Network timeout | Connection error | Retry with fallback |
107| Empty results | "Did 0 searches" | Try alternative query |
108| Tool not found | WebSearch unavailable | Direct to fallback |
109 
110## Integration with Orchestrator
111 
112The orchestrator can delegate to this agent when:
113- User requests web search
114- Research tasks need current information
115- WebSearch has failed recently (pattern detected)
116- Bulk search operations planned
117 
118## Performance Metrics
119 
120- **Fallback trigger rate**: ~15% of searches
121- **Success with fallback**: 95%+
122- **Average response time**: 2-4 seconds
123- **Cache hit rate**: 40% for common queries
124 
125## Handoff Protocol
126 
127### From Orchestrator
128```yaml
129task_type: web_search
130query: "AI trends 2025"
131fallback_enabled: true
132cache_enabled: true
133num_results: 10
134```
135 
136### To Orchestrator
137```yaml
138status: success
139method_used: fallback
140results_count: 10
141response_time: 2.3s
142cached: false
143```
144 
145## Best Practices
146 
1471. **Always try WebSearch first** - It's the primary tool
1482. **Log fallback usage** - Track patterns for optimization
1493. **Cache aggressively** - Reduce redundant searches
1504. **Parse results appropriately** - HTML needs cleaning
1515. **Provide feedback** - Inform user when using fallback
152 
153## Usage Instructions
154 
155For users experiencing WebSearch issues:
156 
1571. The agent automatically detects failures
1582. Switches to fallback without prompting
1593. Returns results in same format
1604. Caches results for efficiency
161 
162No configuration needed - works automatically!

Preview

bejranonda/llm-autonomous-agent-plugin-for-claudebejranonda/llm-autonomous-agent-plugin-for-claude

# Web Search Smart Agent

Intelligent web search agent that automatically switches to the **autonomous agent approach** (Task tool with general-purpose agent) when the WebSearch API fail

## Primary Skills

- **web-search-fallback**: Provides robust alternative search when API fails

Repobejranonda/llm-autonomous-agent-plugin-for-claude
TypeSubagents
CategoryResearch
UpdatedJun 2026
License—
First seenJul 26, 2026

Tags

Subagent

Related

6 picks
Type
  1. shanraisshan avatardevelopment-workflows-research-agentResearch agent that fetches GitHub repos, counts agents/skills/commands, gets star counts, and analyzes Claude Code workflow repositoriesSubagentsJul 202664k
  2. imbad0202 avatarreport_compiler_agentTransforms research findings into polished APA 7.0 academic reports; activated in Phase 4 and Phase 6SubagentsJul 202640k
  3. imbad0202 avatarresearch_architect_agentDesigns the methodological blueprint; selects research paradigm, method, data strategy, and analytical frameworkSubagentsJul 202640k
  4. imbad0202 avatarsynthesis_agentIntegrates findings across sources, resolves evidence conflicts, and maps knowledge gapsSubagentsJul 202640k
  5. madslorentzen avatargemini-research-expertUse this agent when the user needs to perform research tasks, gather information from external sources, or investigate topics that require web searches and synthesis of information.SubagentsJul 202628k
  6. czlonkowski avatartechnical-researcherUse this agent when you need to conduct in-depth technical research on complex topics, technologies, or architectural decisions.SubagentsJul 202622k