Expand description
Builtin hook handlers.
In-process Rust handlers with zero external dependencies. During CLI assembly, they
are looked up by name in BuiltinRegistry, instantiated, and registered into
super::HandlerTable of DefaultHookEngine.
Structs§
- Builtin
Registry - Registry mapping builtin handler names to factory closures.
- Goal
Gate - The core hook for the
--goalgoal-driven loop, subscribing to two events (dispatched via thehook_eventenvelope): - Redact
Secrets Hook - On
PreToolUse, performs in-place replacement of likely sensitive fields inargs. - Skill
Manifest Hook - On
SessionStart, appends the L1 manifest of available skills (name + description) to the system prompt suffix, so the model is aware of which skills it can load on demand via theskilltool. - Skill
Triggers Hook - On
before_ingest, automatically activate relevant skills based on the user prompt. When a match is found, insert a L1 hint (e.g. “Detected skill X relevance; use theskilltool if needed”) before the prompt, rather than injecting the full skill body. This follows progressive disclosure: the model decides whether to actually load the skill. - Tracing
Audit Hook - Converts
Post*ToolUseevents into structured tracing records.