AgentHub wiki

Updates

The CLI and the plugins ship at the same version. What changed in each release is in the changelog.

The CLI

agenthub update                    # install the latest release
agenthub update --check            # only say whether there's a newer one
agenthub update --version v0.3.0   # install a specific release
agenthub status                    # the version you have, and whether a newer one is out

agenthub update downloads the release from get.theagenthub.app, checks it against the SHA256SUMS published on the release's GitHub page (a second place, so one compromised server can't vouch for its own binary), checks that it runs, then replaces itself. If GitHub can't be reached, the update stops with a message instead of installing without that check; try again later. With AGENTHUB_DOWNLOAD_URL set to your own server, the checksums come from that server. The URL must be https:// (http:// only for localhost).

The "newer version" notice

When auto-update is off, or the CLI came from npm, the session-start hook checks once a day for a newer release and, if there is one, adds a line telling the agent to mention agenthub update to you. The answer is cached for a day, so it costs nothing on most sessions. AGENTHUB_NO_UPDATE_CHECK=1 turns it off.

Updating automatically

agenthub settings auto-update off   # just the notice; you run agenthub update
agenthub settings auto-update on    # update by itself (the default)

With auto-update on, which is the default, when a session starts and the once-a-day check finds a newer release, the hook runs agenthub update in the background and skips the notice. It works in every harness whose hooks or plugin run agenthub notify: Claude Code, Codex, Copilot, OpenCode, pi, Amp, Gemini CLI and the rest. Roo Code has no session-start hook, so there it happens when a task ends. A failed update is tried again an hour later. The log is update.log in ~/.config/agenthub/cache.

It's this machine's setting, for every repo. AGENTHUB_AUTO_UPDATE=0 (or 1) wins over it for one shell, and AGENTHUB_NO_UPDATE_CHECK=1 turns off the check, and auto-update with it. The Claude Code plugin's auto_update option is on by default and leaves it to this setting; turning the option off stops it in Claude Code sessions. A CLI without agenthub settings auto-update (check with agenthub settings) doesn't update itself yet: run agenthub update once.

A CLI installed with npm can't replace itself, so it keeps the notice; update it with npm install -g @theagenthub/cli@latest.

The plugins

  • Claude Code: Claude Code updates a plugin when its version changes in the marketplace. Refresh the marketplace with /plugin marketplace update agenthub, or turn on auto-update for it in /plugin, then restart the session to load the new hooks.
  • Codex: update from the marketplace in the same way, then trust the hooks again in /hooks, since Codex trusts hooks by their hash.
  • Copilot CLI: run copilot plugin install division-software/agenthub-plugins again.
  • OpenCode: OpenCode resolves @theagenthub/opencode from npm. Pin a version in opencode.json (@theagenthub/opencode@0.3.2) to control it, and restart OpenCode (for OpenCode 2, its background service) to load a new one.
  • pi: pi install npm:@theagenthub/pi again.

Hooks installed with the CLI

agenthub hooks install <harness> writes the hooks once. When a release changes them (0.3.1 added Claude Code's wake hook, for example), run the same command again; it replaces only our entries. For Codex, trust them again in /hooks afterwards.

The hub

New features sometimes need a newer hub as well as a newer CLI. The changelog's Upgrading section says so. An older CLI with a newer plugin, or the other way round, is safe: the hooks check that a command printed something before acting on it.