web-search-patterns
Advanced Gemini-powered web search plugin with smart caching, subagent context isolation, and automated query optimization.
Introduction
The Gemini Search Plugin is a high-performance research utility for Claude Code, designed to streamline information gathering through automated, grounded, and token-efficient web searches. By leveraging the Gemini CLI in headless mode with strict tool usage, it provides reliable results while maintaining security and performance standards. This agentic skill excels at navigating complex technical documentation, researching industry best practices, and troubleshooting software issues by isolating search tasks within a dedicated subagent context. This architectural choice typically results in 30-40% token savings compared to standard internal searches.
-
Automated query optimization using specific patterns for informational, comparative, and problem-solving search intents.
-
Built-in smart caching system with a configurable 1-hour TTL and MD5 keying to ensure rapid access to repeated queries.
-
Robust false positive validation and dynamic content extraction that strips away irrelevant HTML to provide clean, actionable data.
-
Comprehensive analytics tracking, including cache hit rates, usage statistics, and performance monitoring via specialized slash commands.
-
Advanced search techniques support including Boolean operators (AND, OR, NOT), domain-specific filtering, and wildcard matching.
-
Exponential backoff and retry logic built into the execution layer for graceful handling of network instability or service degradation.
-
Users should define search intent clearly before initiating queries to take advantage of the structured search patterns provided in the library.
-
Expected inputs are natural language queries; the output consists of validated, parsed, and relevant information extracted from Google web search.
-
The plugin is highly configurable, supporting environment variable adjustments for cache TTL, retry thresholds, and context window limits.
-
It is recommended to use the /search-stats command regularly to monitor performance metrics and verify token-saving effectiveness.
-
Note that this plugin acts as a restricted wrapper and does not bypass existing Claude internal security or web-search policies, adhering strictly to the configured google_web_search tool.
Repository Stats
- Stars
- 12
- Forks
- 1
- Open Issues
- 0
- Language
- Shell
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 3, 2026, 07:22 PM