# NousResearch/hermes-agent · Strip Gemma 4 thought tags from responses

## Open now

- Nothing open on GitHub.

A bug was reported and multiple fixes were proposed to remove <thought> reasoning tags from Gemma 4 model responses across different parts of the codebase, including CLI output and agent execution.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #8562. Verify it addresses your case.
- **Recommended:** read PR #8562 (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-8562`. 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.40`: 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

- #6148: \[Bug\]: <thought> tags from Gemma 4 not stripped from response content

## Prior & competing PRs

- **#8562: fix: strip <thought> tags from Gemma 4 responses**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/auxiliary_client.py`, `cli.py`, `run_agent.py`, `tests/run_agent/test_run_agent.py`
- **#6149: fix: strip <thought> tags from Gemma 4 responses in _strip_think_blocks**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#8562`
- **#8547: fix(cli): strip gemma thought tags from visible output**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#6149`
- **#8891: fix: support Gemma 4 <thought> reasoning tags in run_agent.py**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`

## Fix status

- Merged to main in PR #8562 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-12`. This confirmation is old and may be out of date (a revert/reopen would not have invalidated it here); re-verify.
