GM-019: Gemini Hook Script Not Found - Gemini CLI
Summary
- Rule ID:
GM-019 - Severity:
MEDIUM - Category:
Gemini CLI - Normative Level:
SHOULD - Auto-Fix:
No - Verified On:
2026-10-17
Applicability
- Tool:
gemini-cli - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
- https://geminicli.com/docs/hooks/best-practices
- https://geminicli.com/docs/hooks
- https://geminicli.com/docs/extensions/reference
- https://raw.githubusercontent.com/google-gemini/gemini-cli/main/packages/core/src/hooks/hookRunner.ts
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
{"hooks":{"SessionStart":[{"hooks":[{"type":"command","command":"$GEMINI_PROJECT_DIR/.gemini/hooks/missing.sh"}]}]}}
Valid
{"hooks":{"SessionStart":[{"hooks":[{"type":"command","command":"$GEMINI_PROJECT_DIR/.gemini/hooks/start.sh"}]}]}}