Files
hermes-agent/plugins/memory
TekniumandHalldrix 2eec2a7d24 feat(plugins): register_hook(..., hold_stream=True) for transform_llm_output
A plugin that rewrites the reply (redaction, policy filters) can declare that it
must see the reply before the user does. The declaration rides the hook's
registration handle, so it lives exactly as long as the registration and is
scoped to the plugin manager of the profile that loaded it; stream_held()
answers for the active profile. Plain transform registrations keep streaming
(opt-in), and the flag on any other hook is ignored with a warning. The memory-provider hook proxy and the
`plugins validate` probe stub accept the keyword so a declaring plugin loads
through every registration seam.

Shape and seams salvaged from #102481 (mutates= on register_hook, the memory
proxy and validate-stub forwarding).

Co-authored-by: Halldrix <12357213+Halldrix@users.noreply.github.com>
2026-10-25 06:18:48 -07:00
..