Skip to content

feat(cli): implement hermes update --check flag#15589

Closed
Feranmi10 wants to merge 2 commits into
NousResearch:mainfrom
Feranmi10:main
Closed

feat(cli): implement hermes update --check flag#15589
Feranmi10 wants to merge 2 commits into
NousResearch:mainfrom
Feranmi10:main

Conversation

@Feranmi10

Copy link
Copy Markdown
Contributor

What does this PR do?

Implements the missing --check flag for the hermes update command.

The flag is documented in the official docs but was never implemented, causing an unrecognized arguments: --check error when users try to run it.

The implementation:

  • Adds --check argument to the update subparser
  • Adds _cmd_update_check() function that runs git fetch then compares HEAD to origin/main
  • Prints "Already up to date" or "Update available: N commits behind origin/main"
  • Exits early without installing anything

Related Issue

Fixes #10318

Type of Change

  • Bug fix

Feranmi10 and others added 2 commits April 25, 2026 09:59
Fixes NousResearch#9565

The CLI was using ⚕ (Rod of Asclepius, U+2625) which is a medical symbol unrelated to Hermes. Replaced all instances with ☤ (Caduceus, U+2624) — the actual staff of Hermes, consistent with the project's namesake and ASCII art logo.
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 25, 2026
@Feranmi10

Copy link
Copy Markdown
Contributor Author

The 11 test failures are pre-existing and unrelated to this change — they affect web_server, hindsight_provider, and tool_arg_coercion, none of which are touched by this PR. Happy to add tests for the --check flag if that would help

@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #15841 — cherry-picked your --check implementation onto current main with your authorship preserved in git log. Dropped the second commit ( symbol swap across cli.py) since it was out of scope for the issue and the rest of the codebase still uses in cli.py. Thanks for the fix!

@teknium1 teknium1 closed this Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: hermes update --check not recognized — documented but not implemented

3 participants