mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
remove hooks experimental and refactor hook Config
This commit is contained in:
parent
1b1a029fd7
commit
5221002831
33 changed files with 722 additions and 322 deletions
|
|
@ -4,13 +4,18 @@
|
|||
|
||||
Qwen Code hooks provide a powerful mechanism for extending and customizing the behavior of the Qwen Code application. Hooks allow users to execute custom scripts or programs at specific points in the application lifecycle, such as before tool execution, after tool execution, at session start/end, and during other key events.
|
||||
|
||||
> **⚠️ EXPERIMENTAL FEATURE**
|
||||
>
|
||||
> Hooks are currently in an experimental stage. To enable hooks, start Qwen Code with the `--experimental-hooks` flag:
|
||||
>
|
||||
> ```bash
|
||||
> qwen --experimental-hooks
|
||||
> ```
|
||||
Hooks are enabled by default. You can temporarily disable all hooks by setting `disableAllHooks` to `true` in your settings file (at the top level, alongside `hooks`):
|
||||
|
||||
```json
|
||||
{
|
||||
"disableAllHooks": true,
|
||||
"hooks": {
|
||||
"PreToolUse": [...]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This disables all hooks without deleting their configurations.
|
||||
|
||||
## What are Hooks?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue