# NousResearch/hermes-agent · Strip internal reasoning envelopes from visible output

## Open now

- 1 issue, 2 PRs open on GitHub.
- #122607: \[Bug\]: max-iterations summary path only strips <think> — raw <analysis>/<summary> envelopes are shown to the user as the final reply
- PR #62680: fix(agent): strip leaked harmony reasoning-channel from visible content
- PR #122709: fix(agent): scrub max-iteration summary envelopes (#122607)

A bug where internal XML-like reasoning or summary envelopes (e.g. <analysis>, <summary>, <think>) were exposed to users as final reply content, along with related fixes targeting the max-iterations path and harmony reasoning channel.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 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_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.

## Open related issues

- #122607: \[Bug\]: max-iterations summary path only strips <think> — raw <analysis>/<summary> envelopes are shown to the user as the final reply

## Prior & competing PRs

- **#62680: fix(agent): strip leaked harmony reasoning-channel from visible content**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `agent/agent_runtime_helpers.py`, `agent/auxiliary_client.py`, `agent/chat_completion_helpers.py`, `agent/harmony_scrub.py`, `agent/think_scrubber.py`, `cli.py`, `tests/agent/test_harmony_scrub.py`
- **#122709: fix(agent): scrub max-iteration summary envelopes (#122607)**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `agent/chat_completion_helpers.py`, `tests/agent/test_max_iterations_summary_sanitize.py`
- **#123381: fix(agent): strip internal analysis-summary envelopes on max-iterations path (fixes #122607)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#122709`, `#122607`, `#122709`, `#122709`, `#122607`

## Fix status

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