# NousResearch/hermes-agent · Pre-send message transformation and redaction hooks

## Open now

- 4 issues, 1 PR open on GitHub.
- #20307: \[Feature\]: Add plugin hook for ephemeral API-message transformation (transform_api_message)
- #32745: Pre-send secret redaction hook + piiapi-filter skill
- #57364: Request: pre_llm_message plugin hook for privacy/redaction middleware
- #64662: \[Feature\]: Proposal to allow llm_execution middleware to intentionally block provider execution
- PR #20504: feat(plugins): add transform_api_message hook
- _Broad area: open items may be separate problems._

These issues and PRs propose and implement plugin or middleware hooks that intercept messages before they reach the LLM provider, enabling use cases like PII redaction, privacy filtering, and intentional blocking of provider execution.

## TL;DR

- 5 member(s): 4 open issue(s), 0 closed issue(s), 1 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.21`: 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

- #20307: \[Feature\]: Add plugin hook for ephemeral API-message transformation (transform_api_message)
- #32745: Pre-send secret redaction hook + piiapi-filter skill
- #57364: Request: pre_llm_message plugin hook for privacy/redaction middleware
- #64662: \[Feature\]: Proposal to allow llm_execution middleware to intentionally block provider execution

## Prior & competing PRs

- **#20504: feat(plugins): add transform_api_message hook**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `053025238434cfbf121873977b39888d7f27d1c1`
  - files: `hermes_cli/hooks.py`, `hermes_cli/plugins.py`, `run_agent.py`, `tests/hermes_cli/test_plugins.py`, `tests/run_agent/test_transform_api_message_hook.py`

## Fix status

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