# NousResearch/hermes-agent · File search and completion walk performance issues

## Open now

- 1 issue, 2 PRs open on GitHub.
- #127861: \[Bug\]: file-name search re-walks the whole tree with rg on every call (19s under --sortr=modified); an indexed locate/plocate lookup would avoid the walk
- PR #127864: fix(completion): avoid metadata sort for project files
- PR #129607: fix(completion): bound the @-file walk instead of buffering it

These items address performance problems related to directory tree walking and sorting, including unbounded walks during completion and costly metadata operations. They propose bounding or avoiding expensive filesystem traversals.

## TL;DR

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

- #127861: \[Bug\]: file-name search re-walks the whole tree with rg on every call (19s under --sortr=modified); an indexed locate/plocate lookup would avoid the walk

## Prior & competing PRs

- **#127864: fix(completion): avoid metadata sort for project files**. open
  - maintainer direction: category `wontfix_bydesign`; implication `wontfix`; refs `449f50baf6`, `#127861`, `#127861`
  - files: `hermes_cli/commands_completion.py`, `tests/hermes_cli/test_at_context_completion_filter.py`
- **#129607: fix(completion): bound the @-file walk instead of buffering it**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `02de0fa40ffc`, `e1d4d41fbd9d`
  - files: `hermes_cli/commands_completion.py`, `tests/fixtures/resolution_allowlist.json`, `tests/hermes_cli/test_at_file_completion_order.py`

## Fix status

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