Skip to main content

Loop Hooks

Loop hooks provide 5 intercept points inside the LLM tool-calling loop, enabling per-roundtrip control over messages, tool execution, and cost management.

Hook Interface

Usage

Hook Points

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