NousResearch/hermes-agent

Adding --check flag to hermes update command

Cluster 10318. Data as of

Nothing open on GitHub. Fix merged in #15841 on 26 Apr 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #15841. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #15841. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and pull requests concern a documented but missing --check flag for the hermes update command. The work involves reporting the bug and implementing the flag in the CLI.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

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

    merged to main

    files: hermes_cli/main.py, scripts/release.py

    Show the diff
    • hermes_cli/main.py
      @@ -5678,6 +5678,54 @@ def _finalize_update_output(state):
                   pass
       
       
      +def _cmd_update_check():
      +    """Implement ``hermes update --check``: fetch and report without installing."""
      +    git_dir = PROJECT_ROOT / ".git"
      +    if not git_dir.exists():
      +        print("✗ Not a git repository — cannot check for updates.")
      +        sys.exit(1)
      +
      +    git_cmd = ["git"]
      +    if sys.platform == "win32":
      +        git_cmd = ["git", "-c", "windows.appendAtomically=false"]
      +
      +    print("→ Fetching from origin...")
      +    fetch_result = subprocess.run(
      +        git_cmd + ["fetch", "origin"],
      +        cwd=PROJECT_ROOT,
      +        capture_output=True,
      +        text=True,
      +    )
      +    if fetch_result.returncode != 0:
      +        stderr = fetch_result.stderr.strip()
      +        if "Could not resolve host" in stderr or "unable to access" in stderr:
      +            print("✗ Network error — cannot reach the remote repository.")
      +        elif "Authentication failed" in stderr or "could not read Username" in stderr:
      +            print("✗ Authentication failed — check your git credentials or SSH key.")
      +        else:
      +            print("✗ Failed to fetch from origin.")
      +            if stderr:
      +                print(f"  {stderr.splitlines()[0]}")
      +        sys.exit(1)
      +
      +    rev_result = subprocess.run(
      +        git_cmd + ["rev-list", "HEAD..origin/main", "--count"],
      +        cwd=PROJECT_ROOT,
      +        capture_output=True,
      +        text=True,
      +        check=True,
      +    )
      +    behind = int(rev_result.stdout.strip())
      +
      +    if behind == 0:
      +        print("✓ Already up to date.")
      +    else:
      +        commits_word = "commit" if behind == 1 else "commits"
      +        print(f"⚕ Update available: {behind} {commits_word} behind origin/main.")
      +        from hermes_cli.config import recommended_update_command
      +        print(f"  Run '{recommended_update_command()}' to install.")
      +
      +
       def cmd_update(args):
           """Update Hermes Agent to the latest version.
       
      @@ -5691,6 +5739,10 @@ def cmd_update(args):
               managed_error("update Hermes Agent")
               return
       
      +    if getattr(args, "check", False):
      +        _cmd_update_check()
      +        return
      +
           gateway_mode = getattr(args, "gateway", False)
       
           # Protect against mid-update terminal disconnects (SIGHUP) and tolerate
      @@ -8965,6 +9017,12 @@ def cmd_claw(args):
               default=False,
               help="Gateway mode: use file-based IPC for prompts instead of stdin (used internally by /update)",
           )
      +    update_parser.add_argument(
      +        "--check",
      +        action="store_true",
      +        default=False,
      +        help="Check whether an update is available without installing anything",
      +    )
           update_parser.set_defaults(func=cmd_update)
       
           # =========================================================================
    • scripts/release.py
      @@ -413,6 +413,7 @@
           "[email protected]": "VTRiot",
           "[redacted:email]": "iamagenius00",
           "[email protected]": "Feranmi10",
      +    "[redacted:email]": "Feranmi10",
           "[redacted:email]": "simon-gtcl",
           "[redacted:email]": "houko",
           "[redacted:email]": "cgarwood82",

2 PRs closed without merging

From the close comments: done elsewhere 1 · merged via another change 1

  • #10627 fix: add --check flag to hermes update command · done elsewhere → dc5e02e, #15589, #10318
  • #15589 feat(cli): implement hermes update --check flag · merged via another change → #15841
Closed issues · 1
  • Closed#10318[Bug]: hermes update --check not recognized — documented but not implemented
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Merged PRs
#15841
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
26 Apr 2026. This confirmation is old and may be out of date (a revert or reopen would not have invalidated it here); re-verify.

For your agent

The same facts, typed.