docs: add docs for hooks + extensions (#16073)

This commit is contained in:
Abhi
2026-01-07 15:46:44 -05:00
committed by GitHub
parent 4c961df313
commit 17b3eb730a
3 changed files with 79 additions and 5 deletions
+7 -1
View File
@@ -46,6 +46,11 @@ project hook (identified by its name and command), but it is **your
responsibility** to review these hooks (and any installed extensions) before
trusting them.
> [!NOTE] Extension hooks are subject to a mandatory security warning and
> consent flow during extension installation or update if hooks are detected.
> You must explicitly approve the installation or update of any extension that
> contains hooks.
See [Security Considerations](best-practices.md#using-hooks-securely) for a
detailed threat model and mitigation strategies.
@@ -444,7 +449,8 @@ numbers run first):
2. **User settings:** `~/.gemini/settings.json`
3. **System settings:** `/etc/gemini-cli/settings.json`
4. **Extensions:** Internal hooks defined by installed extensions (lowest
priority)
priority). See [Extensions documentation](../extensions/index.md#hooks) for
details on how extensions define and configure hooks.
#### Deduplication and shadowing