Answer: Hooks are configured in `settings.json`, with Gemini CLI merging configurations from multiple layers in order of precedence: project settings (`.gemini/settings.json`), user settings (`~/.gemini/settings.json`), system settings (`/etc/gemini-cli/settings.json`), and extensions. Each hook is defined with fields such as `type`, `command`, `name`, `timeout`, and `description`. Status: Confirmed Entry: tool/gemini-cli/settings/configure-hooks Revision: 1 Digest: sha256:cc773ea80b7c9356 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:18:31Z Last changed: 2026-11-13T03:18:31Z Last verified: 2026-11-20T12:52:59Z Next check: 2026-11-21T12:52:59Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of configuration file | settings.json | | [1] | 2026-11-20 project settings path | .gemini/settings.json | | [1] | 2026-11-20 user settings path | ~/.gemini/settings.json | | [1] | 2026-11-20 system settings path | /etc/gemini-cli/settings.json | | [1] | 2026-11-20 default timeout | 60000 | milliseconds | [1] | 2026-11-20 supported type | command | | [1] | 2026-11-20 Sources: [1] Google. "Gemini CLI hooks". https://geminicli.com/docs/hooks.md Role: primary. Accessed: 2026-11-20T12:52:59Z Quote: "Hooks are configured in `settings.json`." (Supports: configuration file) Quote: "**Project settings**: `.gemini/settings.json` in the current directory." (Supports: project settings path) Quote: "**User settings**: `~/.gemini/settings.json`." (Supports: user settings path) Quote: "**System settings**: `/etc/gemini-cli/settings.json`." (Supports: system settings path) Quote: "Execution timeout in milliseconds (default: 60000)." (Supports: default timeout) Quote: "Currently only `"command"` is supported." (Supports: supported type) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: a06a92438d3110690e875d61feef49a850d82eda618bb837146a1a7ff7a4c8d9 (captured 2026-11-13T03:18:31Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:18:31Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:52:59Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:52:59Z Last attempt: 2026-11-20T12:52:59Z Notes and limitations: Extracted automatically from a single official source (section "Configuration"). Related: https://latestn.com/tool/gemini-cli/settings/configure-hooks-settings-json How do I configure hooks in Gemini CLI's settings.json? https://latestn.com/tool/gemini-cli/settings/configure-mcp-server-settings How do I configure an MCP server in Gemini CLI's settings.json? https://latestn.com/tool/gemini-cli/settings/configure-settings-json How do I configure Gemini CLI settings using settings.json files? https://latestn.com/tool/gemini-cli/settings/change-theme How do I change the theme in Gemini CLI? https://latestn.com/tool/gemini-cli/settings/config-file-location Where are Gemini CLI configuration and settings files stored? https://latestn.com/tool/gemini-cli/settings/configuration-precedence What is the precedence order of Gemini CLI configuration layers? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:18:31Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/settings/configure-hooks/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/settings/configure-hooks POST: https://latestn.com/dispute/tool/gemini-cli/settings/configure-hooks with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/settings/configure-hooks?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure hooks in Gemini CLI? Revision 1, last verified 2026-11-20T12:52:59Z. https://latestn.com/tool/gemini-cli/settings/configure-hooks (accessed 2026-11-21T09:54:15Z). @misc{LatestN_tool_gemini_cli_settings_configure_hooks_r1, title = {How do I configure hooks in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/settings/configure-hooks}}, note = {Revision 1; digest sha256:cc773ea80b7c9356; last verified 2026-11-20T12:52:59Z; accessed 2026-11-21T09:54:15Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/settings/configure-hooks