# NousResearch/hermes-agent · Gateway agent:end hook missing exit metadata fields

## Open now

- Nothing open on GitHub.

A bug was identified where the gateway agent:end hook omits turn exit reason and API call count fields. Related changes address exposing this exit metadata to hooks.

## TL;DR

- 3 member(s): 0 open issue(s), 1 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_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.

## Closed / duplicate issues

- #73939: \[Bug\]: Gateway agent:end hooks omit turn exit reason and API call count

## Prior & competing PRs

- **#73951: fix(gateway): expose agent exit metadata to hooks**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `2270fdf326ee226cbe03c60bdf328001cceabdc4`, `1fe06115d1ed00ac859e5aa2a6afcde4a2c8bbbe`
- **#73953: fix(gateway): add turn_exit_reason and api_call_count to agent:end hook (#73939)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#73951`

## Fix status

- No merged fix on record.
