Agent Hooks support various trigger types, each designed for specific automation scenarios. Understanding these types helps you choose the right approach for your workflow needs.
Triggers when the user submits a prompt.
When using the shell command action, the user prompt can be accessed via the USER_PROMPT environment variable.
Use Cases:
Triggers when the agent has completed its turn, and finished responding to the user.
Use Cases:
Triggers when new files matching specific patterns are created in your workspace.
Use Cases:
Trigger when files matching specific patterns are saved.
Use Cases:
Triggers when files matching specific patterns are deleted.
Use Cases:
Manually execute a hook.
Use Cases:
Hook types