# NousResearch/hermes-agent · Scratch directory pruning per-profile fix

## Open now

- 1 issue, 1 PR open on GitHub.
- #134896: \[Bug\]: named profiles never prune their scratch dir: _scratch_pruned_once is spent on the default home at bootstrap
- PR #134907: fix(scratch): prune each profile root once per process

A bug was identified where scratch directory pruning only ran once against the default home, leaving named profiles unpruned. The subsequent fixes address pruning logic to cover each computed profile root rather than only the first.

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

- #134896: \[Bug\]: named profiles never prune their scratch dir: _scratch_pruned_once is spent on the default home at bootstrap

## Prior & competing PRs

- **#134907: fix(scratch): prune each profile root once per process**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `8e772789ed2ec7253c71bb344d2b293da4b03298`, `#137573`, `#134907`
  - files: `hermes_constants.py`, `tests/test_scratch_profile_pruning.py`
- **#134919: fix(cli): prune every scratch root the process resolves, not just the first**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#134907`

## Fix status

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