Step 1. Start Gemini CLI:
geminiStep 2. Send a prompt (e.g., Hi) — you'll hear a sound on session start, tool use, agent response, and more.
If prerequisites are missing, you'll see an error on Gemini CLI start:
SessionStart hook error
Verify Python 3 is installed (python3 --version) and that .gemini/hooks/scripts/hooks.py exists in your project.
| Date | Hooks | Changes | Gemini CLI Version |
|---|---|---|---|
| Apr 22, 2026 | 11 | Initial release: all 11 Gemini CLI hooks (SessionStart, SessionEnd, BeforeAgent, AfterAgent, BeforeModel, AfterModel, BeforeToolSelection, BeforeTool, AfterTool, PreCompress, Notification) |
v0.38.2 |
|
Claude Code Hooks |
Codex CLI Hooks |
Claude Code Best Practice |
Gemini CLI Best Practice |
Codex CLI Best Practice |
If you like my work, buy me a doodh patti 🍵 on