# NousResearch/hermes-agent · Repetition detection bugs and streaming guard fixes

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #100729: fix(agent): stop completed responses from flooding chats with repeated text

These items address flaws in repetition-loop detection logic—including missed cases, wrong trigger paths, and completed responses flooding chats—and add or improve a streaming repetition guard. The work spans both detection correctness and coverage across completion paths.

## TL;DR

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

- #100716: \[Bug\]: is_repetition_dominated misses almost every real repetition loop, and only runs on the finish_reason=length path

## Prior & competing PRs

- **#121600: fix(agent): repetition guard catches real loops on every completion path; reject degenerate dropped-stream tool args**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/chat_completion_helpers.py`, `agent/repetition_guard.py`, `agent/turn_final_response.py`, `agent/turn_truncation.py`, `tests/agent/test_continuation_repetition_guard.py`, `tests/agent/test_repeated_dropped_tool_args.py`, `tests/agent/test_repetition_guard.py`
- **#89294: feat: streaming repetition guard — detect degenerate output on the fly**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `9e2444e763`, `#121600`, `#100716`
- **#100729: fix(agent): stop completed responses from flooding chats with repeated text**. open
  - maintainer direction: category `wontfix_bydesign`; implication `wontfix`
  - files: `agent/conversation_loop.py`, `agent/repetition_guard.py`, `tests/agent/test_repetition_guard.py`, `tests/run_agent/test_continuation_repetition_guard.py`

## Fix status

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