# NousResearch/hermes-agent · Proposed hooks for intercepting outbound gateway messages

## Open now

- 4 issues, 3 PRs open on GitHub.
- #22603: \[Feature\] Add pre_gateway_text_send plugin hook for outbound message interception
- #35311: Feature request: pre_gateway_text_send hook for outbound message interception
- #37271: Feature: Gateway-level hard routing gate for outbound message classification
- #64777: Hermes Adapter-Level Send Interceptor + Need for Native Send-Path Hook (MILLS OS Fix 0)
- PR #23020: feat(gateway): add pre_gateway_text_send plugin hook
- PR #35312: feat: add pre_gateway_text_send hook for outbound message interception
- PR #99939: feat(gateway): add pre_gateway_send plugin hook for outbound message gating (#37271)

These issues and pull requests propose adding plugin hooks—particularly pre_gateway_text_send and related mechanisms—to intercept or transform messages before they are sent through the gateway. No resolution status can be inferred.

## TL;DR

- 7 member(s): 4 open issue(s), 0 closed issue(s), 3 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.26`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #22603: \[Feature\] Add pre_gateway_text_send plugin hook for outbound message interception
- #35311: Feature request: pre_gateway_text_send hook for outbound message interception
- #37271: Feature: Gateway-level hard routing gate for outbound message classification
- #64777: Hermes Adapter-Level Send Interceptor + Need for Native Send-Path Hook (MILLS OS Fix 0)

## Prior & competing PRs

- **#23020: feat(gateway): add pre_gateway_text_send plugin hook**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#22603`
  - files: `gateway/platforms/base.py`, `gateway/stream_consumer.py`, `hermes_cli/plugins.py`, `tests/gateway/test_pre_gateway_text_send.py`
- **#35312: feat: add pre_gateway_text_send hook for outbound message interception**. open
  - maintainer direction: category `wontfix_bydesign`; implication `wontfix`
  - files: `gateway/hooks.py`, `gateway/run.py`
- **#99939: feat(gateway): add pre_gateway_send plugin hook for outbound message gating (#37271)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `8ed98c6673d82594f68cb253630306d51381805e`, `21b2095d00a98b8ad7b5c60b10587619c852cdb8`, `8ed98c6673d82594f68cb253630306d51381805e`, `#37271`, `#37271`, `#37271`, `#99935`, `#99930`
  - files: `gateway/builtin_hooks/__init__.py`, `gateway/run.py`, `gateway/stream_consumer.py`, `hermes_cli/plugins.py`, `tests/gateway/test_pre_gateway_send.py`, `website/docs/user-guide/features/hooks.md`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
