Repository navigation
v0.5.9
Summary
mash 0.5.9 changes four things a script may notice: mash doctor now fails (exit 1) when your Claude Code is older than 2.1.312, mashctl status with no server now exits 1, mashctl init no longer prints the signing key unless you ask, and mashctl init --json adds the signing key's public key as signing_key_pub. See Upgrading. If you never set a signing key and always have a server configured, you will notice little. The rest is smaller: mash doctor checks your Claude Code version, deleting an endpoint no longer leaves its key behind, mash join and mashctl init say what is wrong in plain words, the tools in Claude Code say when an endpoint was deleted, and the installer checks the release against the commit its tag points to. Every download has a build attestation; verify it. The known issues are listed in the release notes.
Upgrading
This step is one-way: a problem found after upgrading is fixed by the next release; you do not go back to 0.5.8.
On each machine with endpoints, then on the administrator's machine, in this order:
- Check first:
mash version,mash doctorand, as administrator,mashctl doctor. Good is your current release and each doctor ending with no problem and exit code 0. If you set asigning_key, confirmsigning.nkandsigning.pubare both in its folder. - Install
mashandmashctl0.5.9 from the same release, with the README's install steps. Endpoints, keys and mail stay where they are. - Update both plugins,
mashandmash-setup: at a shellclaude plugin update mash@mashandclaude plugin update mash-setup@mash, or in a session the plugin menu, Installed, the plugin, Update now. No marketplace refresh first.mash-setupcarries its skills, so this brings them to 0.5.9. The 0.5.9 plugin that runs the 0.5.9 program is 0.5.9-pin.1, published shortly after the release. A plugin update before then installs 0.5.9 but still runs 0.5.8, so update once more when 0.5.9-pin.1 is out. - Restart each Claude Code session. A running session keeps its old hooks and mail process until you restart it.
- A local NATS server set up with the 0.5.8 script needs nothing: the running server is left alone, and
mash-setup.yamlandmash-setup.jsonwork with the 0.5.9 script's--start,--stopand--remove. Fetch the 0.5.9 script only when you next want one of those. - Check again as in step 1;
mash versionnow names 0.5.9. With asigning_key, if a signing file is missing, 0.5.9 refuses to create or reissue an endpoint, with anerror:line naming the file, rather than sign with the account's own key. If you setsigning_keyon 0.5.7, runmashctl init --config <file>once more.
Machines at mixed versions send and read each other's mail on one server, both ways; a machine left behind keeps working.
If a script reads exit codes: mash doctor and mashctl doctor now exit 1 when they find a problem, and 0 otherwise; a Claude Code older than 2.1.312 is one, a newer one warns. mashctl status with no server configured prints error: no server is configured and exits 1. mashctl init --json now includes signing_key_pub; 0.5.8 had no signing field there.
What changed
Added
mash doctorchecks your Claude Code version. A newclauderow, afterconfig, runsclaude --versionand compares it with the versions mash is tested with: 2.1.312 is the minimum, and the tested series is 2.1. A Claude Code above the 2.1 series (2.2 or later) gets a warning, one that cannot be found is skipped, and one older than the minimum is a problem, somash doctornow exits 1 on it. Scripts that runmash doctorwill see exit 1 for an old Claude Code where it exited 0 before.
Changed
mashctl endpoint deleterun without a terminal no longer suggests--yes. It now says it needs a terminal to type the address.--helpstill documents--yes(#1161).mashctl endpoint deletenames the address and the cause when a later step fails. When the endpoint's key was cancelled but a later step failed, the error is now one line naming the address and the cause in plain words, with the command to run again (#1081).mashctl initno longer prints the signing key by default. When you setsigning_key, the result is the one lineInitialized mash on <server> for owner <owner>.--detailadds a second line,Signing key: <public key>, and--jsonhas the public key assigning_key_pub.mashctl initwarns when the account lists signing keys and the setup file has nosigning_key(#1255). The operator may then require one, andinitdoes not read the operator. The warning is one line on stderr,warning: no signing_key in <setup file>; this server may require one; the exit code stays 0 and the setup goes on. It is not printed whensigning_keyis set or a signing key is already stored.mash joinsays what is wrong when a join file's user JWT was made for another address. It used to answer only "not a join file this mash can read". It now says<file> names <address> but is for <other address>(orhas no name but names <address>), with themashctl endpoint reissuecommand that makes a right file, under a new name, as the hint.- Deleting an endpoint no longer keeps its key.
mashctl endpoint deletestill leaves a.deletedmarker beside where the creds file was, so mash knows the endpoint was deleted, but the marker now holds the endpoint's JWT and no key (#1064). The creds file itself is removed. - A lost or wrong signing key now stops with a short message and the command that fixes it. When the key folder has lost
signing.nkorsigning.pub, or holds a key that does not match, mashctl printserror:andhint:lines that name the folder and the next step (mashctl init --config <file>to put the key back,mashctl doctorto check what is wrong). The long public keys the old text printed are gone from the message. mashctl init --jsonnow includes the signing key's public key assigning_key_pub, the nameconfig.jsonalready uses. 0.5.8's JSON had no signing field. In the setup file,signing_keystill means only the seed file.mashctl statuswith no server configured now says so (error: no server is configured, with the hintmashctl init --config <file>) and exits 1, where it printed nothing and exited 0.mashctl doctorreads the same:no server is configured(#1097).
Fixed
- A bad owner is no longer printed in the error when
mashctlcannot connect as the administrator. The error said the value is not shown and then showed it. It now leaves the value out, as the other messages of that kind do. mash inboxno longer calls its counts exact when a message read out of order may still be counted as urgent.--detailnow says so ("exact: no (mail read out of order may still be counted as urgent)").mashctl initwarns at the account limits mash really needs. It assumed one endpoint needs 3 streams and 36 MiB, so it stayed quiet on accounts too small for mash. It now warns below 6 streams or about 109 MiB of disk (the 5 buckets and one inbox), following the caps inconfig.json, as in the Sizing section of docs/nats-server.md (#1156).mashctl initnow refuses an owner longer than 32 characters up front. It used to accept up to 48 in the setup file and then fail when it opened the admin connection, which allows 32. The error now says "up to 32 characters" and names the setup file.mashctl initno longer prints an unknown key from the setup file. A secret put by mistake where a key belongs used to be echoed in the error. The error now says how many keys are not setup keys, does not show them, and lists the setup keys.- The installer now checks that the release was built from the commit its tag points to. With gh 2.102.0 or newer,
install.shreads that commit and pins the attestation check to it, so a release attested from another commit is refused. If it cannot read the commit, it installs nothing. mash joinnow says what is wrong when a folder has a server but no endpoint and the join file brings a certificate authority. It printed the "different ca" line, though the folder has no certificate authority to differ from. It now says "this folder has a server but no endpoint" and hints at joining into another folder, and changes nothing.mash joinno longer sets a private certificate authority in a folder that was already set up. A join file that brings a ca is now refused, with the same "different ca" line, where the folder already names servers and has no ca. If a join fails after installing the creds file, undoing it now leaves a creds file you replaced in the meantime and says so.- The mash tools now say when an endpoint was deleted. When
mashctl endpoint deleteremoved the endpoint on this machine, the tools in Claude Code failed with a different message from themashcommand. They now say whatmash sendsays: the endpoint was deleted and its address cannot be used again. - A bad argument keeps its own error after the endpoint is deleted in the session. A
sendwith an invalididsaid the endpoint was deleted; it now reports the bad id. Only calls that fail to reach the server say deleted (#1396). mash servenow says an endpoint was deleted when a tool call fails after the delete. Deleting the endpoint withmashctl endpoint deletewhile a session was running madesendtime out andinboxandreadfail with "context deadline exceeded". They now say the endpoint was deleted and that its address cannot be used again, as the shell does (#1396).whostill answers during the session.- A
mashsession that was killed inside a container no longer blocks the next session for that agent. In a container whose first process never cleans up finished processes, the killed session lingered as a dead process, and the next session saw the name as still taken and waited. A process that has exited is now gone as a holder (#1437).
Security
- Dependency security upgrades. Bump
github.com/klauspost/compressto v1.20.2 (GO-2026-6865) andgolang.org/x/cryptoto v0.59.0 (GO-2026-5932). Relatedgolang.org/x/sysandgolang.org/x/termmove with the crypto module requirement. mash does not call the vulnerable symbols; the bumps clear the module advisories reported bygovulncheck.
Verify your download
Every download has a build attestation; verify it before you run it, with the steps in Verify what you download and Verify a release.
Known issues
There are 4 known issues. Each has an issue; the issue is the place for detail and any workaround.
- A pinned plugin runs its own copy of mash, not the one on your PATH. If a host needs a different mash, set
MASH_BINor use the unpinned plugin. #1497 - Deleting an endpoint can, in a rare race, remove a creds file that was replaced a moment earlier. The endpoint's key is already cancelled by then, so the replacement belongs to a deleted endpoint. #1471
- The 0.5.5 migration command in the docs downloads a script and runs it without checking it first. Use it only if you trust the network you are on; a checked download is planned. #1458
mash doctorcannot tell when the mash in your shell differs from the one your plugin runs. Its tool inside Claude Code checks the plugin's own mash against itself, and from a shell it cannot see the plugin. To check by hand, runmash versionin a shell and compare it with thebinaryrow of the doctor tool. #1535
What is not in this release
Nothing else is promised here.
Links
Full changes: v0.5.8...v0.5.9