# NousResearch/hermes-agent · llama.cpp grammar parse error not recognized

## Open now

- 1 issue, 2 PRs open on GitHub.
- #133921: \[Bug\] llama.cpp grammar classifier misses 'failed to parse grammar' — strip-and-retry recovery never fires
- PR #76152: fix: broaden llama.cpp grammar error classifier to match newer builds
- PR #134017: fix(classifier): recognize llama.cpp 'failed to parse grammar'

A bug where the classifier errors on detecting llama.cpp's \`failed to parse grammar\` message, preventing the strip-and-retry recovery path from triggering, along with corresponding fixes.

## TL;DR

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

- #133921: \[Bug\] llama.cpp grammar classifier misses 'failed to parse grammar' — strip-and-retry recovery never fires

## Prior & competing PRs

- **#76152: fix: broaden llama.cpp grammar error classifier to match newer builds**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `fb7817f9a0c5`, `#51527`, `#76152`, `#76152`, `#51527`, `#76152`, `#67349`, `#67349`, `#51527`, `#76152`, `#51527`, `#67349`, `#76152`, `#51527`, `#76152`, `#67349`, `#67349`, `#374151`, `#51527`, `#76152`
  - files: `agent/error_classifier.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_error_classifier.py`
- **#133939: fix(agent): recognize llama.cpp's "failed to parse grammar" 400 for strip-and-retry**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#76152`, `#76152`, `#133921`, `#76152`
- **#134017: fix(classifier): recognize llama.cpp 'failed to parse grammar'**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `agent/error_classifier.py`

## Fix status

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