Skip to content
Development
Hook

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.

Install
$ npx -y skills add d-oit/gemini-search-plugin --agent claude-code

Ships 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.
Read hooks/hooks.json

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.

Ships withgemini-search

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.

Get the whole plugin, auto-invoked
Stats
13
Stars
0
Views
1
Forks
Quiet
Maintenance
Shell
Language
MIT
License
8mo ago
Last commit
9mo ago
Created

Repo: d-oit/gemini-search-plugin