Expand description
Extension hooks (M5). The engine consults a Hooks impl at two
points in the tool phase — before a call runs and after it returns —
scoped to the events actually used, not a 35-event schema (Delivery #5).
Vocabulary follows 0006’s M5 pin #2: a wrap-style PreToolUse hook
intercepts a call (allow / block / transiently rewrite its input); a
node-style PostToolUse hook returns a proposal to replace the
result. Hook-visible payloads are byte-capped (pin #1) so a hook can’t be
used to amplify a huge tool result into the process.
Structs§
- InProcess
Hooks - Lane 1 — in-process Rust hooks: the compiled-in registry that the shell adapter (lane 2) and any future third-party lane register against.
Enums§
- PreTool
Decision - A
PreToolUsedecision (wrap-style intercept). ARewritere-enters the normal permission gate with the new input — a hook cannot launder a call past the y/N ask (SECURITY.md §M5 routing rows).
Constants§
- HOOK_
PAYLOAD_ CAP - Default cap on the bytes of a tool result a hook is shown.
Traits§
Functions§
- cap_
payload - Clip a payload to the hook cap on a char boundary (never mid-UTF-8).