# NousResearch/hermes-agent · Exit agent loop early on blocked terminal commands

## Open now

- 2 issues, 0 PRs open on GitHub.
- #24806: agent: BLOCKED terminal command should terminate the agent loop early
- #43201: \[Feature\]: Suggestion: When the pre_tool_call hook returns a block result, support terminating the current agent loop to prevent the LLM from attempting other tools continuously.

These issues and PRs concern handling the case where a terminal command is blocked, suggesting or implementing early termination of the agent loop rather than allowing the LLM to continue attempting other tools. The theme is consistent across all members.

## TL;DR

- 4 member(s): 2 open issue(s), 0 closed issue(s), 0 open PR(s), 0 merged PR(s), 2 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.39`: 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

- #24806: agent: BLOCKED terminal command should terminate the agent loop early
- #43201: \[Feature\]: Suggestion: When the pre_tool_call hook returns a block result, support terminating the current agent loop to prevent the LLM from attempting other tools continuously.

## Prior & competing PRs

- **#24812: fix(agent): exit loop early when terminal command is blocked by user**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#24908: fix(run_agent): exit agent loop early when terminal command is denied**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#24812`, `#24806`

## Fix status

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