# NousResearch/hermes-agent · Approval detector false positives on quoted dangerous-command text

## Open now

- 1 issue, 2 PRs open on GitHub.
- #87973: \[Bug\] Dangerous-command detector flags git clean -f text inside quoted arguments (e.g. commit messages) - false positive blocks benign commands
- PR #87975: fix(approval): anchor the git clean -f pattern to command position
- PR #162165: fix(approval): quoted mentions of git clean / hermes update and docker --rm no longer prompt (salvage #132355)

These members concern a dangerous-command detector in approval handling that matches text like "git clean -f" inside quoted arguments such as commit messages. One issue reports the false positive, and two pull requests propose changes to anchor the pattern to command position and to stop quoted mentions (also git clean, hermes update, docker --rm) from prompting.

## 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

- #87973: \[Bug\] Dangerous-command detector flags git clean -f text inside quoted arguments (e.g. commit messages) - false positive blocks benign commands

## Prior & competing PRs

- **#87975: fix(approval): anchor the git clean -f pattern to command position**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#162165`
  - files: `tests/tools/test_approval.py`, `tools/approval.py`
- **#162165: fix(approval): quoted mentions of git clean / hermes update and docker --rm no longer prompt (salvage #132355)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `56f312b0cd3b1456e5053a77970620f5f751cd92`
  - files: `tests/tools/test_approval_container_rm_flag.py`, `tests/tools/test_approval_quoted_data.py`, `tools/approval_detection.py`, `tools/approval_quoted_data.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
- Kind: `bug` (from the open issues' GitHub type labels).
