# NousResearch/hermes-agent · Repetition guard extended to tool-call arguments

## Open now

- Nothing open on GitHub.

These issues and pull requests address a gap where the agent's repetition guard was not applied to tool-call arguments, allowing degenerate or looping model output to be executed as commands. The work covers detection, rejection, and related guard resets on human speech.

## TL;DR

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

- #103599: Repetition guard not applied to tool-call arguments (degenerate model output executed as a command)

## 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`; implication `superseded`
  - 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`
- **#103612: fix(agent): reject repetitive arguments from dropped tool streams**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `9e2444e763`, `#121600`, `#103599`
- **#103615: fix(agent): apply repetition guard to tool-call arguments to abort degenerate commands (#103599)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `9e2444e763`, `#103599`, `#121600`
- **#103620: fix(agent): apply repetition guard to tool-call arguments (#103599)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `9e2444e763`, `#103599`, `#121600`
- **#114504: fix(gateway,agent): reset bot-loop guard on human speech; flag repetition-dominated tool args**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#121600`

## Fix status

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