# NousResearch/hermes-agent · Harden missed git call sites against config execution

## Open now

- Nothing open on GitHub.

A bug was identified where four git call sites were not routed through the hardened, non-interactive git environment used elsewhere. These members address fixing those gaps to consistently apply security-hardened git execution across repo probes and index-reading calls.

## TL;DR

- 6 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 4 PR(s) closed without merging.
- A fix was merged to main in PR #130661. Verify it addresses your case.
- **Recommended:** read PR #130661 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-130661`. 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.87`: 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.

## Closed / duplicate issues

- #126017: \[Bug\]: four git call sites miss the hardened git env used everywhere else

## Prior & competing PRs

- **#130661: fix(git): automatic git runs in kanban, worktree cleanup, subagents and hermes -w no longer execute a cloned repo's filters or hooks (#126017, salvage #126019)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/coding_context.py`, `hermes_cli/_subprocess_compat.py`, `hermes_cli/kanban_db_workspace.py`, `hermes_cli/worktree_gc.py`, `hermes_cli/worktree_ops.py`, `tests/security/test_gitspawn_config_injection.py`, `tests/tools/test_delegation_recovery_diagnostics.py`, `tools/async_delegation_recovery_hints.py`, `tools/subagent_worktree.py`, `tui_gateway/methods_complete_helpers.py`, `website/docs/user-guide/git-worktrees.md`, `website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/git-worktrees.md`
- **#126019: fix(git): run the remaining index-reading git calls under noninteractive_git_env**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `6c51075929`, `#130661`
- **#126075: fix(git): harden remaining repo probes against config execution**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `6c51075929`, `#126019`, `#130661`
- **#127664: fix(security): route the four missed git call sites through the hardened git env**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `6c51075929`, `#126017`, `#130661`
- **#130370: fix(security): harden four unshielded git call sites against repo config injection (#126017)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `6c51075929`, `#126017`, `#130661`

## Fix status

- Merged to main in PR #130661 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-01`.
