# NousResearch/hermes-agent · Disk-cleanup incorrectly deletes test/tmp script files

## Open now

- 1 issue, 2 PRs open on GitHub.
- #107343: \[Bug\]: disk-cleanup deletes test_*/tmp_* files in the user-authored $HERMES_HOME/scripts tree at session end
- PR #107469: fix(plugins): never auto-delete test_* files under $HERMES_HOME/scripts
- PR #133857: fix(disk-cleanup): never delete tests in a non-git source tree

A bug where the disk-cleanup process deletes test_* and tmp_* files within the user-authored $HERMES_HOME/scripts directory at session end. The members cover the bug report and related fixes to prevent auto-deletion of those files, including in non-git source trees.

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

- #107343: \[Bug\]: disk-cleanup deletes test_*/tmp_* files in the user-authored $HERMES_HOME/scripts tree at session end

## Prior & competing PRs

- **#107469: fix(plugins): never auto-delete test_* files under $HERMES_HOME/scripts**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#84354`, `#107343`, `#88045`
  - files: `plugins/disk-cleanup/disk_cleanup.py`, `tests/plugins/test_disk_cleanup_plugin.py`
- **#133857: fix(disk-cleanup): never delete tests in a non-git source tree**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `e198e6f974c5`, `#107343`, `#135412`, `#107343`, `#135412`, `#107343`, `#135412`
  - files: `plugins/disk-cleanup/disk_cleanup.py`, `tests/plugins/test_disk_cleanup_plugin.py`

## Fix status

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