# NousResearch/hermes-agent · Plugin post_compaction hook for context compaction events

## Open now

- Nothing open on GitHub.

The members all concern adding a post_compaction hook for plugins so providers can re-inject context after compaction. They include a feature PR (#118382), an issue describing the missing hook or notification, and a related item referencing #118382 and a salvage (#118847); their current status is not stated.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #141017. Verify it addresses your case.
- **Recommended:** read PR #141017 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-141017`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: 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.

## Closed / duplicate issues

- #118382: No hook or notification at context compaction, so providers cannot re-inject context afterwards

## Prior & competing PRs

- **#141017: Plugins get a post_compaction hook on every compaction path (#118382, salvage #118847)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/compaction_events.py`, `gateway/session_mutation_compress.py`, `gateway/session_mutations.py`, `hermes_cli/plugins.py`, `hermes_cli/plugins_dispatch.py`, `tests/agent/test_post_compaction_hook.py`, `website/docs/developer-guide/plugins/index.md`, `website/docs/user-guide/features/hooks.md`, `website/docs/user-guide/features/plugins.md`
- **#118847: feat(plugins): add post_compaction hook (#118382)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `a31975222e`, `35948f22ada`, `#141017`, `#118382`

## Fix status

- Merged to main in PR #141017 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-18`.
- Subsystem: `agent`
