Agent hooks are powerful automation tools that streamline your development workflow by automatically executing predefined agent actions when specific events occur in your IDE. With hooks, you eliminate the need to manually request routine tasks and ensure consistency across your codebase.
Agent hooks are automated triggers that execute predefined agent prompts or shell commands when specific events occur in your IDE. Rather than manually asking for routine tasks to be performed, hooks set up automated responses to events.
There are three categories of hooks:
Agent hooks transform your development workflow through intelligent automation. By setting up hooks for common tasks, you can:
The agent hook system follows a simple two-step process:
This automation flow eliminates repetitive tasks and ensures consistency across your codebase.
Creating and managing hooks is straightforward:
You can also use the Command Palette to navigate to the Hook UI:
Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows/Linux)Kiro: Open Kiro Hook UI
Hooks