pre_gateway_dispatch
A plugin hook mechanism within the Hermes Agent framework that allows developers to intercept and rewrite messages before they reach the language model. It is used for tasks such as correcting tool-selection bias, enabling custom preprocessing logic to be inserted into the message pipeline prior to model inference.
Timeline (last 90 days)
The solution is to write a custom Hermes plugin that uses the pre_gateway_dispatch hook to intercept and rewrite messages before they reach the model, injecting hard-coded instructions to explicitly tell the model to call the voice-memo skill rather than the memory tool.
The pre_gateway_dispatch hook performs a lightweight pre-transcription of approximately 0.7 seconds on audio messages to check whether the first word is 메모.
The pre_gateway_dispatch hook fires after source verification is complete and before the message enters large model inference.
The plugin design adopts a fail-open engineering defense: even if the hook judgment fails, messages are passed through unchanged, ensuring zero interference with normal conversation flow.
All Facts (4)
The solution is to write a custom Hermes plugin that uses the pre_gateway_dispatch hook to intercept and rewrite messages before they reach the model, injecting hard-coded instructions to explicitly tell the model to call the voice-memo skill rather than the memory tool.
50%UnverifiedThe pre_gateway_dispatch hook performs a lightweight pre-transcription of approximately 0.7 seconds on audio messages to check whether the first word is 메모.
50%UnverifiedThe pre_gateway_dispatch hook fires after source verification is complete and before the message enters large model inference.
50%UnverifiedThe plugin design adopts a fail-open engineering defense: even if the hook judgment fails, messages are passed through unchanged, ensuring zero interference with normal conversation flow.
50%