NousResearch/hermes-agent

Repetition detection bugs and streaming guard fixes

Cluster 100716 · agent. Data as of

1 open item. Fix merged in #121600 on 24 Sep 2026. Check it covers your case.

The short answer

0open issues
1open PR
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #121600. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #121600. That is separate from the fix event.
Still open
0 issues and 1 PR.

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.

Open issues0

No open issues.

Open PRs1

  • PR#100729fix(agent): stop completed responses from flooding chats with repeated text

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #121600 fix(agent): repetition guard catches real loops on every completion path; reject degenerate dropped-stream tool args

    merged to main

    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

1 PR closed without merging

From the close comments: superseded by another PR 1

  • #89294 feat: streaming repetition guard — detect degenerate output on the fly · superseded by another PR → 9e2444e, #121600, #100716
Closed issues · 1
  • Closed#100716[Bug]: is_repetition_dominated misses almost every real repetition loop, and only runs on the finish_reason=length path
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#121600
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
24 Sep 2026

For your agent

The same facts, typed.