# NousResearch/hermes-agent · Fix system prompt duplication during manual /compress

## Open now

- Nothing open on GitHub.

A bug was identified where manually triggering /compress caused the system prompt to be duplicated, significantly increasing session size. The fixes address this by avoiding nested or repeated system messages during manual compression.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #16983. Verify it addresses your case.
- **Recommended:** read PR #16983 (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: `unresolved`. 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.50`: 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

- #15281: \[Bug\]: Manual Session Compression Causes System Prompt Duplication (102% Size Increase)

## Prior & competing PRs

- **#16983: fix(cli): avoid nesting system prompt during manual /compress**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `cli.py`, `scripts/release.py`, `tests/test_cli_manual_compress.py`
- **#15304: fix(cli): pass None as system_message in manual /compress to prevent system prompt duplication**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `fb112d6a7`, `#16983`
- **#15452: fix(cli): pass None as system_message in manual /compress to prevent duplication (#15281)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#16983`

## Fix status

- Merged to main in PR #16983 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-28`.
