# NousResearch/hermes-agent · write_file cwd-shaped relative path doubled prefix bug

## Open now

- 1 issue, 6 PRs open on GitHub.
- #67185: write_file: cwd-shaped relative path (absolute path missing leading /) silently resolves to doubled path
- PR #67216: fix(tools): warn when a cwd-shaped relative path resolves to a doubled tree
- PR #67220: fix(write_file): detect and correct cwd-shaped relative paths (#67185)
- PR #67318: fix(file_tools): strip doubled base prefix for cwd-shaped relative paths (#67185)
- PR #67421: fix(file): detect absolute-shaped relative paths missing leading /
- PR #67426: fix(write_file): detect cwd-shaped relative paths missing leading slash
- PR #67572: fix(file_tools): strip duplicated prefix for cwd-shaped relative paths (review fixes)

These issues and PRs concern a bug where relative paths shaped like the current working directory (missing a leading slash) silently resolve to a doubled path. The work involves detecting, warning about, and correcting this duplicated prefix behavior in file-writing tools.

## TL;DR

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

- #67185: write_file: cwd-shaped relative path (absolute path missing leading /) silently resolves to doubled path

## Prior & competing PRs

- **#67216: fix(tools): warn when a cwd-shaped relative path resolves to a doubled tree**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `0d69bad50ad29bc9`, `#67232`, `#67216`, `#67232`, `#67216`, `#67220`
  - files: `tests/tools/test_file_tools_cwd_resolution.py`, `tools/file_tools.py`, `tools/file_tools_paths.py`
- **#67218: fix(file_tools): strip duplicated prefix for cwd-shaped relative paths (#67185)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#66976`, `#67185`, `#67216`, `#67220`
- **#67220: fix(write_file): detect and correct cwd-shaped relative paths (#67185)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `a2c43d002a01`, `#67185`, `#67216`, `#67232`, `#67218`, `#67220`, `#67318`, `#67421`, `#67426`, `#67572`, `#67216`, `#67218`, `#67216`, `#67220`, `#67232`, `#67216`, `#67216`, `#67232`, `#67318`, `#67421`, `#67426`, `#67572`, `#67216`, `#67232`, `#67216`, `#67216`, `#67232`, `#67216`, `#67216`, `#67218`, `#67220`, `#67318`, `#67421`, `#67426`, `#67572`, `#374151`, `#67185`, `#67220`
  - files: `tools/file_tools.py`
- **#67232: fix(tools): warn when a cwd-shaped relative path resolves to a doubled tree**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#67216`
- **#67318: fix(file_tools): strip doubled base prefix for cwd-shaped relative paths (#67185)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`
  - files: `tests/tools/test_file_tools_doubled_path.py`, `tools/file_tools.py`
- **#67421: fix(file): detect absolute-shaped relative paths missing leading /**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tools/file_tools.py`
- **#67426: fix(write_file): detect cwd-shaped relative paths missing leading slash**. open
  - maintainer direction: category `stale_abandoned`; implication `active`
  - files: `tests/tools/test_file_tools_cwd_resolution.py`, `tools/file_tools_paths.py`
- **#67572: fix(file_tools): strip duplicated prefix for cwd-shaped relative paths (review fixes)**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `0d69bad50ad29bc9`, `24050046a951`, `#67185`, `#67216`, `#67232`, `#67218`, `#67220`, `#67318`, `#67421`, `#67426`, `#67572`, `#67216`, `#67218`, `#67216`, `#67220`, `#67232`, `#67216`, `#67216`, `#67318`, `#67421`, `#67426`, `#67572`, `#67216`, `#67232`, `#67216`, `#67185`, `#67216`, `#67232`, `#67216`, `#67216`, `#67218`, `#67220`, `#67318`, `#67421`, `#67426`, `#67572`, `#374151`, `#67185`, `#67572`
  - files: `tests/tools/test_file_tools_cwd_resolution.py`, `tools/file_tools.py`

## Fix status

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