# NousResearch/hermes-agent · CLI markdown stripping corrupts Python code symbols

## Open now

- 1 issue, 1 PR open on GitHub.
- #84377: \[Bug\]: CLI final response strips underscores and ** from Python code (__name__ → name, a**2 → a2)
- PR #123917: fix(cli): strip mode keeps code blocks and inline code verbatim

A bug where the CLI's strip-markdown mode removes underscores and asterisks from code, corrupting Python dunder identifiers and exponentiation operators. Related fixes aim to preserve code syntax during markdown stripping.

## TL;DR

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

## Open related issues

- #84377: \[Bug\]: CLI final response strips underscores and ** from Python code (__name__ → name, a**2 → a2)

## Prior & competing PRs

- **#84379: fix(cli): preserve code syntax when stripping markdown (#84377)**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#84502: fix(cli): preserve dunder identifiers and ** inside code in strip markdown mode**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `b77be2bca10b`, `#87037`, `#84377`
- **#87037: fix(cli): combined markdown-strip code preservation from #84379 and #84502 (#84377)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#123917: fix(cli): strip mode keeps code blocks and inline code verbatim**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `b750d06d98`
  - files: `hermes_cli/cli_render.py`, `hermes_cli/cli_stream_mixin.py`, `tests/hermes_cli/test_cli_markdown_rendering.py`

## Fix status

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