Skip to main content

In plain terms

hooks watch a run from outside. loopHooks sit inside the tool loop. Use them to skip a tool, rewrite a result, or stop early. That is steering. The event bus cannot do this.

Hook Interface

Usage

Hook Points

These hooks are the foundation for context compaction, cost auto-stop, PII scrubbing, and checkpointing.