# NousResearch/hermes-agent · Escape-drift auto-correction in the patch tool misplacing edits

## Open now

- 1 issue, 3 PRs open on GitHub.
- #137428: Patch tool edits the wrong line after escape-drift auto-correction
- PR #137430: fix: preserve viable escape-drift anchors
- PR #137433: fix(tools): refuse escape-drift correction when the sent anchor also matches
- PR #137436: fix(tools): stand down escape-drift correction when the anchor still matches

One issue reports the patch tool editing the wrong line after escape-drift auto-correction. Three pull requests propose avoiding or declining that correction when the originally sent anchor still matches. The titles show the proposed approach but do not confirm outcomes.

## TL;DR

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

- #137428: Patch tool edits the wrong line after escape-drift auto-correction

## Prior & competing PRs

- **#137430: fix: preserve viable escape-drift anchors**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `tests/tools/test_fuzzy_match.py`, `tools/fuzzy_match.py`
- **#137433: fix(tools): refuse escape-drift correction when the sent anchor also matches**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `tests/tools/test_escape_drift_autocorrect.py`, `tools/fuzzy_match.py`
- **#137436: fix(tools): stand down escape-drift correction when the anchor still matches**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `tests/tools/test_escape_drift_autocorrect.py`, `tools/fuzzy_match.py`

## Fix status

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