mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
docs: remove 'experimental' syntax for hooks in docs (#17660)
This commit is contained in:
+10
-24
@@ -1,32 +1,9 @@
|
|||||||
# Gemini CLI hooks (experimental)
|
# Gemini CLI hooks
|
||||||
|
|
||||||
Hooks are scripts or programs that Gemini CLI executes at specific points in the
|
Hooks are scripts or programs that Gemini CLI executes at specific points in the
|
||||||
agentic loop, allowing you to intercept and customize behavior without modifying
|
agentic loop, allowing you to intercept and customize behavior without modifying
|
||||||
the CLI's source code.
|
the CLI's source code.
|
||||||
|
|
||||||
## Availability
|
|
||||||
|
|
||||||
> **Experimental Feature**: Hooks are currently enabled by default only in the
|
|
||||||
> **Preview** and **Nightly** release channels.
|
|
||||||
|
|
||||||
If you are on the Stable channel, you must explicitly enable the hooks system in
|
|
||||||
your `settings.json`:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"hooksConfig": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
- **[Writing hooks guide](/docs/hooks/writing-hooks)**: A tutorial on creating
|
|
||||||
your first hook with comprehensive examples.
|
|
||||||
- **[Hooks reference](/docs/hooks/reference)**: The definitive technical
|
|
||||||
specification of I/O schemas and exit codes.
|
|
||||||
- **[Best practices](/docs/hooks/best-practices)**: Guidelines on security,
|
|
||||||
performance, and debugging.
|
|
||||||
|
|
||||||
## What are hooks?
|
## What are hooks?
|
||||||
|
|
||||||
Hooks run synchronously as part of the agent loop—when a hook event fires,
|
Hooks run synchronously as part of the agent loop—when a hook event fires,
|
||||||
@@ -43,6 +20,15 @@ With hooks, you can:
|
|||||||
- **Optimize behavior:** Dynamically filter available tools or adjust model
|
- **Optimize behavior:** Dynamically filter available tools or adjust model
|
||||||
parameters.
|
parameters.
|
||||||
|
|
||||||
|
### Getting started
|
||||||
|
|
||||||
|
- **[Writing hooks guide](/docs/hooks/writing-hooks)**: A tutorial on creating
|
||||||
|
your first hook with comprehensive examples.
|
||||||
|
- **[Best practices](/docs/hooks/best-practices)**: Guidelines on security,
|
||||||
|
performance, and debugging.
|
||||||
|
- **[Hooks reference](/docs/hooks/reference)**: The definitive technical
|
||||||
|
specification of I/O schemas and exit codes.
|
||||||
|
|
||||||
## Core concepts
|
## Core concepts
|
||||||
|
|
||||||
### Hook events
|
### Hook events
|
||||||
|
|||||||
+1
-1
@@ -86,7 +86,7 @@
|
|||||||
"label": "Remote subagents (experimental)",
|
"label": "Remote subagents (experimental)",
|
||||||
"slug": "docs/core/remote-agents"
|
"slug": "docs/core/remote-agents"
|
||||||
},
|
},
|
||||||
{ "label": "Hooks (experimental)", "slug": "docs/hooks" },
|
{ "label": "Hooks", "slug": "docs/hooks" },
|
||||||
{ "label": "IDE integration", "slug": "docs/ide-integration" },
|
{ "label": "IDE integration", "slug": "docs/ide-integration" },
|
||||||
{ "label": "MCP servers", "slug": "docs/tools/mcp-server" }
|
{ "label": "MCP servers", "slug": "docs/tools/mcp-server" }
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user