# NousResearch/hermes-agent · Fix infinite loop from glob patterns in content search

## Open now

- 1 issue, 2 PRs open on GitHub.
- #66129: search_files loops when local models pass a glob as the content regex (content direction of #5873)
- PR #66230: fix(search): retry with glob→regex conversion on rg parse error
- PR #108279: fix(search_files): didactic glob-vs-regex error instead of looping

These issues and PRs address a bug where glob-style patterns passed as content search regexes cause search_files to loop or fail, with fixes focused on recovering or retrying by converting glob patterns to valid regexes.

## TL;DR

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

## Open related issues

- #66129: search_files loops when local models pass a glob as the content regex (content direction of #5873)

## Prior & competing PRs

- **#66176: fix(files): recover glob-shaped content searches**. closed without merge
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `cf806db3651e`, `#66129`, `#66176`, `#66200`, `#66224`, `#66230`, `#58210`, `#1`, `#15803`, `#14532`, `#6`, `#9`, `#374151`, `#4338`
- **#66200: fix(search): recover from glob-as-regex patterns in content search**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
- **#66224: fix(search): recover from glob-style content patterns instead of looping**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#66200`, `#66176`
- **#66230: fix(search): retry with glob→regex conversion on rg parse error**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#66200`, `#66176`
  - files: `tests/tools/test_search_budget_truncation.py`, `tools/file_operations.py`
- **#108279: fix(search_files): didactic glob-vs-regex error instead of looping**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#66129`, `#66230`
  - files: `agent/tool_guardrails.py`, `tests/agent/test_tool_guardrails.py`, `tests/tools/test_search_glob_regex_hint.py`, `tools/file_operations.py`, `tools/file_operations_search.py`, `tools/file_tools.py`

## Fix status

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