# NousResearch/hermes-agent · hermes-agent --version/--help flag handling bug

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #54649: fix(cli): guard legacy hermes-agent entrypoint
- PR #54682: fix(agent): intercept --version/--help in run_agent.main()

A bug where passing --version or --help to hermes-agent triggers a full agent run instead of printing the expected output. The members address guarding the legacy entrypoint and intercepting these flags early in run_agent.main().

## TL;DR

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

## Closed / duplicate issues

- #54648: \[Bug\]: hermes-agent --version starts an agent run instead of printing version

## Prior & competing PRs

- **#120440: fix(cli): hermes-agent --help/--version print help instead of running a model turn (#54648, salvage #54649)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/legacy_cli.py`, `pyproject.toml`, `run_agent.py`, `tests/agent/test_legacy_cli.py`, `website/docs/reference/cli-commands.md`
- **#54649: fix(cli): guard legacy hermes-agent entrypoint**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `pyproject.toml`, `run_agent.py`, `tests/hermes_cli/test_verify_console_scripts.py`, `tests/run_agent/test_legacy_cli_entrypoint.py`
- **#54682: fix(agent): intercept --version/--help in run_agent.main()**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#54648`, `#54649`
  - files: `run_agent.py`

## Fix status

- Merged to main in PR #120440 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-23`.
- Subsystem: `agent`
