# NousResearch/hermes-agent · Agent nudge/prefill logic for reasoning model responses

## Open now

- 1 issue, 2 PRs open on GitHub.
- #64732: Thinking-prefill retry cascade triggers on reasoning responses with visible content
- PR #21847: fix(agent): skip empty-content nudge when reasoning_content is populated (#21811)
- PR #64733: fix: add _has_visible_content guard to thinking-prefill retry gate

These issues and fixes address incorrect empty-content nudges and thinking-prefill retries firing when reasoning models (e.g. Qwen3, DeepSeek-R1) have already produced reasoning or visible content. Work spans detection of inline thinking, structured-reasoning routing, and post-tool-call behavior.

## TL;DR

- 9 member(s): 1 open issue(s), 2 closed issue(s), 2 open PR(s), 0 merged PR(s), 4 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.19`: 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

- #64732: Thinking-prefill retry cascade triggers on reasoning responses with visible content

## Closed / duplicate issues

- #21811: Empty-content nudge fires when reasoning_content is populated (Ollama qwen3.5 /   DeepSeek-R1 / any reasoning model with parser-split output)
- #34655: Post-tool-call nudge fires before prefill for structured-reasoning thinking models (e.g. qwen3-vl-8b-thinking via OpenRouter)

## Prior & competing PRs

- **#22685: fix(agent): skip post-tool empty nudge when reasoning_content is populated**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#22799`, `#21811`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#22799: fix(agent): skip post-tool empty nudge when reasoning_content is populated (salvage #22685)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#21811`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#64952: fix(agent): skip thinking-prefill when model already produced visible content (#64732)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#64733`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#21847: fix(agent): skip empty-content nudge when reasoning_content is populated (#21811)**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
  - files: `agent/conversation_loop.py`, `run_agent.py`, `tests/run_agent/test_post_tool_empty_nudge_reasoning_content.py`
- **#34812: fix(agent): route structured-reasoning empties to prefill, not nudge**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#64733: fix: add _has_visible_content guard to thinking-prefill retry gate**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `184183b9da79`, `#64732`, `#64733`, `#64952`, `#64733`, `#64952`, `#64733`, `#64733`, `#64952`, `#64733`, `#64733`, `#64733`, `#64952`, `#64732`, `#64952`, `#64733`, `#64733`, `#64952`, `#64952`, `#64733`, `#374151`, `#64732`, `#64733`, `#64952`
  - files: `agent/conversation_loop.py`

## Fix status

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