# NousResearch/hermes-agent · Tool name and JSON argument duplication bugs in streaming

## Open now

- Nothing open on GitHub.

These issues and fixes address a recurring bug where tool names get duplicated (e.g., 'search_filessearch_files') and JSON arguments become corrupted during streaming, particularly with Fireworks, Kimi, and Hermes tool-calling pipelines.

## TL;DR

- 6 member(s): 0 open issue(s), 2 closed issue(s), 0 open PR(s), 0 merged PR(s), 4 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.29`: 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

- #6841: Hermes tool-calling pipeline can corrupt tool names and JSON arguments, causing generic tool-call failures
- #8089: Bug: Tool names get duplicated with Fireworks/Kimi streaming (search_filessearch_files)

## Prior & competing PRs

- **#7056: fix(run_agent): repair repeated tool names and duplicated JSON args**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#7159: fix(run_agent): repair repeated tool names and duplicated JSON args**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#47684`, `#6841`
- **#8094: fix: prevent tool name duplication with Fireworks/Kimi streaming (closes #8089)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `0f778f776877cd452cf7475f06a6044cf07ebfe8`, `#8089`
- **#47684: fix(run_agent): repair repeated tool names and duplicated JSON args (#6841)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

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