What problem does it solve?
This Skill provides fine-grained control over the lifecycle of AI agents, allowing users to hook into key points during execution to perform various operations like tool execution, human intervention, context compression, sub-agent calls, and more.
Core Features & Use Cases
- Custom Hooks: Register custom hooks for before/after tool execution, human intervention, context compression, sub-agent calls, and more.
- Operation Tracking: Track and analyze agent execution through hooks that trigger at specific lifecycle events.
- Error Handling: Catch errors during tool execution and human intervention with on-callback hooks.
- Use Case: Imagine you want to add logging for each step of an agent's execution. You can define a beforeStep hook to log before each step is executed.
Quick Start
To create a custom hook, define the hook type and handler in the SKILL.md file and then use execAgent to register it.