Skip to main content
Category
Agent
Severity
GEMINI:S:0003

Hook Command Has Field

Hook handlers with "type": "command" in .gemini/settings.json MUST include a "command" field containing the shell command to execute. Without it, Gemini CLI has no command to run and the hook fails silently.

Highgeministructure
GEMINI:S:0002

Hook Handler Has Type

Each hook handler object in .gemini/settings.json MUST contain a "type" field set to command. The Gemini CLI hooks reference states "Currently only command is supported." Without a type field, Gemini CLI cannot dispatch the handler and the hook silently does nothing.

Highgeministructure
GEMINI:S:0001

Hook Valid Event Types

Hook event keys in .gemini/settings.json MUST use recognized Gemini CLI event type names (11 events). Unrecognized event names are silently ignored, so a typo means the hook never fires.

Highgeministructure