# NousResearch/hermes-agent · Tilde expansion bug with consecutive slashes

## Open now

- 1 issue, 4 PRs open on GitHub.
- #53432: file_tools: _expand_tilde path\[2:\] loses home on consecutive slashes
- PR #53468: fix(file): keep profile home when ~ is followed by consecutive slashes
- PR #53487: fix(file_tools): keep repeated-slash tilde paths under home
- PR #53547: fix(file_tools): strip leading slashes after ~/ in _expand_tilde
- PR #53885: fix(file_tools): strip leading slashes after ~/ in _expand_tilde

These issues and pull requests address a bug in the _expand_tilde function where paths beginning with ~ followed by multiple slashes incorrectly lose the home directory prefix. Multiple fixes and reports focus on properly stripping leading slashes after ~/ to preserve the home path.

## TL;DR

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

- #53432: file_tools: _expand_tilde path\[2:\] loses home on consecutive slashes

## Prior & competing PRs

- **#53468: fix(file): keep profile home when ~ is followed by consecutive slashes**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tests/tools/test_file_tools_tilde_profile.py`, `tools/file_tools_paths.py`
- **#53487: fix(file_tools): keep repeated-slash tilde paths under home**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#53468`, `#53432`
  - files: `tests/tools/test_file_tools_tilde_profile.py`, `tools/file_tools.py`
- **#53547: fix(file_tools): strip leading slashes after ~/ in _expand_tilde**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#53468`, `#53432`, `#53487`, `#53468`
  - files: `tools/file_tools.py`
- **#53885: fix(file_tools): strip leading slashes after ~/ in _expand_tilde**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#53468`, `#53432`, `#53468`, `#53487`, `#53547`
  - files: `tools/file_tools.py`
- **#72286: fix(file-tools): preserve home for repeated tilde slashes**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#53468`

## Fix status

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