Skip to content

Updates and channels

amux updates itself. About once an hour it checks for a new release, and when there is one it downloads it, checks it, and restarts onto it. Your agents keep running throughout: each agent is its own process, so it carries on with its turn while amux restarts, and your devices catch up a moment later.

You don’t need to do anything. If you want to know where things stand, run:

Terminal window
amux status

It says which version is running, how updates arrive, and which channel you’re on.

Terminal window
amux update

This installs the latest release on your channel straight away and waits for it to start. If you’re already up to date, it says so.

A terminal app you opened before an update keeps working. It shows restart to update at the top of home until you quit and run amux again.

amux 0.11.0 changes how your devices and your phone talk to each other, so update all of them to it together: every device you’ve paired, and the iPhone app from the App Store. Until they match, a device or phone on 0.11.0 and one on an earlier version can still show each other as online, but neither keeps up with the other’s agents, and neither can start, message or stop agents on the other. Updating the one left behind fixes it: run amux update on that device, or update the app. From 0.11.0 on, newer and older versions work together again.

An agent that was running when its device updated carries on with its conversation and its work, but its amux tools stop working: it can’t list the fleet, message another agent, or start or settle subagents. It gets them back when it’s resumed, so settle it and resume it:

Terminal window
amux settle <agent>
amux resume <agent>

It picks up the same conversation where it left off. An agent that has already stopped needs nothing: it starts with its tools the next time it resumes.

The browser extension updates itself from the Chrome Web Store, a little after amux does. Until its update arrives, an extension too old for your amux says “this version of amux needs a newer amux browser extension” and does nothing else. To update it at once, open chrome://extensions, turn on Developer mode and click Update.

There are two channels:

  • stable, which everyone is on unless they choose otherwise.
  • preview, which gets releases before stable does, for people who want them early.
Terminal window
amux config set channel preview # get releases early
amux config set channel stable # go back

The change applies at the next check, or at once with amux update. amux never installs an older version, so going back to stable keeps the preview release you have until stable passes it.

New releases can reach devices gradually, so a device next to yours may update a little before or after it.

If a new version fails to start three times in a row, amux puts the previous version back by itself and carries on with it. It won’t try that release again on its own. amux status says when this has happened, and amux update --retry tries the release again.

To install releases only when you ask for them:

Terminal window
amux config set updates manual

amux then updates only when you run amux update. amux config unset updates turns automatic updates back on.

On a device where your own service manager runs amux, amux never updates itself (Running amux on a server).

Every release is signed. Before installing anything, amux checks the release’s signature against a key built into the version you already have, then checks the download’s size and checksum against the signed release. A download that doesn’t match is never installed.

The very first install is the one step that can’t be checked this way, because there’s no amux on the device yet to do the checking. The install script downloads amux from amux.sh over HTTPS, and checks the download’s checksum before installing it.

The iPhone app updates through the App Store, like any other app.