Hooks
What gemini-search runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
$ npx -y skills add d-oit/gemini-search-plugin --agent claude-codeShips with gemini-search. Installing the plugin gets these hooks.
What fires, and when
PreToolUse
- Runs pre-edit-search.sh.
PostToolUse
- Runs error-search.sh.
UserPromptSubmit
Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.
- Runs pre-edit-search.sh.
Where it lives
Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.
Advanced web search plugin using the Gemini CLI in headless mode with google_web_search tool restriction, providing caching, analytics, content extraction, and validation for Claude Code.
Repo: d-oit/gemini-search-plugin

