# NousResearch/hermes-agent · Protect git worktree .git pointer files from writes

## Open now

- 1 issue, 1 PR open on GitHub.
- #78565: fix: write_file and patch tools silently destroy git worktree .git files
- PR #78795: fix(tools): refuse write_file/patch writes into git worktree .git paths (#78565)

These members address a safety issue where write_file and patch tools could silently overwrite or corrupt git worktree .git pointer files. The fix adds guards to refuse write operations targeting those paths.

## TL;DR

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

- #78565: fix: write_file and patch tools silently destroy git worktree .git files

## Prior & competing PRs

- **#78652: fix(file-safety): refuse writes that touch git worktree .git pointer files**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `60fd869dd1`, `950369a39e`, `fd25f74f3e`, `a53f84bb3e`, `52d31bbb89`, `6499b55335`, `90483f2fe3`, `#78806`, `#78652`, `#78793`, `#78565`
- **#78795: fix(tools): refuse write_file/patch writes into git worktree .git paths (#78565)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#78793`, `#78806`
  - files: `tests/tools/test_worktree_git_guard.py`, `tools/file_tools.py`

## Fix status

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