Skip to main content

Module builtin

Module builtin 

Source
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§

BuiltinRegistry
Registry mapping builtin handler names to factory closures.
GoalGate
The core hook for the --goal goal-driven loop, subscribing to two events (dispatched via the hook_event envelope):
RedactSecretsHook
On PreToolUse, performs in-place replacement of likely sensitive fields in args.
SkillManifestHook
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 the skill tool.
SkillTriggersHook
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 the skill tool 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.
TracingAuditHook
Converts Post*ToolUse events into structured tracing records.