Skip to main content

Crate harness_hooks

Crate harness_hooks 

Source
Expand description

HookBus — dispatch the 27 lifecycle events to registered Hooks.

Per DESIGN.md §10, a hook is a cheap synchronous policy that decides what happens around tool calls, model calls, compaction, sensor runs, and so on. Long async work belongs in a sensor or tool, not a hook.

Structs§

HookBus
Ordered list of hooks; fires events through every match.