Repository navigation
Releases
v0.6.2
Summary
mash 0.6.2 is a quiet release: an idle endpoint costs its NATS server less, mash status, mash doctor and mashctl are tidier, and setting mash up no longer needs a separate plugin. Nothing changes in your endpoints, keys or mail, and nothing in it needs a change from you. One behaviour is slower on purpose: a new mash serve that replaces a still-running one of the same session waits 10 seconds, not 2, before it reads mail. Every download has a build attestation and the release tag is signed; verify them before you run anything. Known limits are listed under Known issues in the release notes.
Upgrading
There is nothing you must do if you run 0.6.1: no endpoint, key or mail changes. When you next install, install mash and mashctl 0.6.2 from the same release with the README's install steps, update the mash plugin with claude plugin update mash@mash, and restart each Claude Code session, because an open session keeps running the version it started with. The mash-setup plugin is no longer published; setup is now a skill file in the repository, and the plugin you have installed is not updated again, so you can remove it. The full steps are on the compatibility page.
Upgrading in detail
Do these steps, in this order, on each machine that has endpoints and then on the administrator's machine.
- Check what you run now:
mash doctorand, as administrator,mashctl doctor. Each should end with no problem. - Install
mashandmashctl0.6.2 together from the same release with the README's install steps. - Update the plugin:
claude plugin update mash@mash. - Restart each Claude Code session, because an open session keeps running the version it started with.
- Check again:
mash versionsaysmash v0.6.2, and both doctors end with no problem.
The mash-setup plugin is no longer published. If you installed it, it is not updated again and you can remove it; to set mash up on another machine, follow the README's Get started steps, which use a skill file in the repository.
What changed
Setting mash up. Setup is now a skill file in the repository, not a plugin: clone the repository, start your agent in it and tell it to read and carry out skills/mash-setup/SKILL.md. The setup skill still installs the mash plugin. The local NATS setup script can now run as root, as it does in a container, and works on a machine that has no ss command. The NATS guides now recommend a dedicated NATS account for mash and say what the operator key can do.
Less traffic when idle. An idle endpoint costs its NATS server about 0.5 messages a second each way, down from about 1.3. The cost is a longer wait when a new mash serve replaces a running one of the same session: it reads mail and answers prompts after 10 seconds, not 2, and the earlier one may take up to 5 seconds to notice it was replaced. An endpoint's connection to the server is also named with its full address, such as mash acme.dev.e01, so the server's own tools tell endpoints apart.
Status and doctor. mash status now says an endpoint is online only once its session has registered it, as mash who does. mash status and mash doctor no longer make the NATS server log an authentication error on each call. mash doctor warns when the plugin runs a different mash from the one on your PATH. mash who's reference explains what answers_not_verified counts.
Administering. mashctl endpoint inbox counts refused messages over the newest 1000, so a large mailbox is no longer slow; N+ refused as malformed says when older messages were not counted. mashctl checks an account record before it pushes it and proves each write by the record every server applies. It no longer mistakes another tool's scoped key in a shared account for a leftover mash key.
Fixes inside mash. mashctl no longer risks building a revoke or retire on an older account record when one server is slow: it reads every stored copy that arrives in the window before it chooses the record to build on. An endpoint could briefly accept mail signed by a replaced key as from that endpoint; it now never takes back a newer record for an older one. A change to the endpoint directory is read as one record, not the whole directory. mash is built on nats-server 2.15.3 and the SAP Go SDK 0.1.3.
Verify your download
Every download has a build attestation, and the release tag is signed; verify them before you run anything, with the steps in Verify what you download and Verify a release.
Known issues
There are 5 known issues. Each has an issue; the issue is the place for detail and any workaround.
- A prompt signed in the second the endpoint restarted, or sent by a sender whose clock runs ahead, can be replayed for up to about 60 seconds after the restart. #1829
- A same-account endpoint can replay another endpoint's registration, so a stopped endpoint can appear online. #1863
- The check that keeps an older directory read from replacing a newer one has edge cases left: a restore or recreate of the directory stream, overlapping reads and reused revisions. #2066
- The proof that a server applied a revoke or retire ties the server's stored-record replies to servers by count, because NATS puts no server ID on them. If a server stays silent and another user of the system account answers in its place, the write can be reported as proved while that server keeps an older record. #2085
- An endpoint's directory poll can take a new key for a replacement when a record was removed without a marker and the key was learned in the same interval, so the removed record stays trusted until the next full load. #2086
What is not in this release
Security policy, a way to narrow who may mail whom inside an owner, is planned and is not in this release. Nothing else is promised here.
Links
Full changes: v0.6.1...v0.6.2
v0.6.1
Summary
mash 0.6.1 is 0.6.0 plus one fix and a signed release tag. The fix: at a plain shell, mash doctor now warns when mash cannot create its state folder (#1907). Nothing changes in endpoints, keys or mail. If you installed 0.6.0 there is nothing to do, except that 0.6.1 is the version to install from now on.
Upgrading
There is nothing to do if you run 0.6.0: no endpoint, key or mail changes. Install mash and mashctl 0.6.1 from the same release when you next install, with the README's install steps. To check that the release tag is signed, follow Verify a release.
What changed
One doctor warning in mash: at a plain shell, mash doctor now warns when mash cannot create its state folder and no spool setting is visible to the shell (#1907). Nothing else in the programs changed. The release process now signs the release tag; see Verify a release.
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
The known issues are the same as in 0.6.0: two, each with an issue that is the place for detail and any workaround.
- A prompt signed in the second the endpoint restarted, or sent by a sender whose clock runs ahead, can be replayed for up to about 60 seconds after the restart. #1829
- A plain shell's
mash statusreports a state folder mash cannot create only when the spool setting is visible to it. #1907
What is not in this release
Security policy is planned and is not in this release. Nothing else is promised here.
Links
Full changes: v0.6.0...v0.6.1
v0.6.0
Summary
mash 0.6.0 reads the sender of every message the way the SAP Go SDK does, and that is strict: ten kinds of sender header that older mash accepted are now refused, on live prompts and on mail already stored. See Upgrading. If every endpoint on your server runs mash, you will notice little, because mash writes headers the strict reader accepts. Mail that is refused is no longer hidden: mash inbox and mash read show it as a refused row with the reason and never its body, and mash status --detail, mash doctor and mashctl endpoint inbox count it. mash doctor also checks every endpoint when you have several and none is chosen, and says which mash the plugin runs. Security policy is planned and is not part of this release.
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.10.
On each machine with endpoints, then on the administrator's machine, in this order. The full steps, in order, are on the compatibility page; in short:
- 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. - Install
mashandmashctl0.6.0 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. The 0.6.0 plugin that runs the 0.6.0 program is 0.6.0-pin.1, published shortly after the release. A plugin update before then installs 0.6.0 but still runs 0.5.10, so update once more when 0.6.0-pin.1 is out. - Restart each Claude Code session. A session that is already open keeps running the version it started with until you restart it.
- Check again as in step 1;
mash versionnow names 0.6.0.
Machines at mixed versions send and read each other's mail on one server; a machine left behind keeps working. Mail that a 0.5.10 endpoint sent is read by the 0.6.0 rules when a 0.6.0 endpoint receives it.
If you send mail from something other than mash: a message whose Agent-Sender header has any of the ten shapes below is now refused even when its signature is valid. Mail written by mash is not affected.
What changed
Changed
- The ten sender headers that are now refused. The header is refused when it is over 2,048 bytes; when its
tsis not in UTC (Z); when itsnamehas a control character, is over 64 characters, or has a broken character escape; when a field appears twice; when itssubhas a space; when itssigis not 64 bytes of base64url text; when it is empty; or when a message carries two. Older mash read these asverified,forgedorabsent, or took the first or last value. A header with noAgent-Senderat all is stillabsent. A few more inputs now read as malformed too: invalid UTF-8, an empty or control-charactersub, and an unsigned claim with a badtsornonce. A number written1.0or1e0forvnow verifies. - A live prompt with a malformed sender header is refused with status 400,
malformed Agent-Sender header. Two of the ten shapes used to get 401; they now get 400. A prompt that is replayed by a sender who is not in the directory now gets 403 both times; the replay used to get 401. A sender that sends too many prompts too fast is refused with status 401 and the reasontoo many recent prompts: try again shortly; it used to be told a signed header was required, although it had signed.mash promptnow starts every error line witherror:where it used to start some withmash:, for exampleerror: prompt refused: 400 malformed Agent-Sender header; a script that matches^mash:on its output will miss these lines. mash doctorchecks every endpoint when you have several. It used to stop and ask for--endpoint. Now it checks each installed endpoint and prints one row for each, with the number of problems and warnings and the first problem, then names the command that shows the first endpoint with a problem. It exits 1 if any endpoint has a problem.--jsonprints each endpoint's report and the totals.- The plugin re-checks its downloaded mash once per session, and
mash doctorsays which mash runs. When a session starts, the plugin confirms its cached copy still matches the release it pins, and replaces a copy that does not (the old file is kept beside it).mash doctorshows alauncherrow:okfor the pinned mash, and a warning when the plugin fell back to the mash on your PATH (#1290). mash doctorwords the refused-mail row differently. It readsno mail was refusedor4 messages were refused, with each reason on a line below, and the row isokwhatever the count; it used to speak of unverified mail only.mash promptexits 2 for a wrong command line before it reports a configuration problem.mashctl initno longer creates the unusedmash-adoptionbucket. A server set up earlier keeps that bucket; nothing reads it, and you can delete it; the compatibility page says how.
Added
- Mail that mash refuses is now listed, not hidden. A message with a faulty header, or one that could not be verified, shows in
mash inboxandmash readas arefusedrow with its reason, and never with its body.mash status --detailandmash doctorcount them, andmashctl endpoint inboxadds areasonto each refused message. A refused message is not counted as waiting. - The first start checks stored mail. When a session starts, mash reads the mail already stored for the endpoint once, before it delivers, and lists what it refuses.
mash doctorhas rows for that check, and says when the check is still running or was skipped because the state folder cannot be written. mashctl endpoint inbox --jsonshows when each message arrived. Each message has awhenfield: the time the server stored it, in RFC 3339 and UTC, with a fraction of a second when there is one. The text table is unchanged.
Fixed
- When mash cannot create its state folder,
mash statusno longer says ready andmash doctorreports a failed delivery row that names the folder it cannot write. This is when mail waits for the spool, as the plugin sets it up (MASH_SPOOL_FROM_START, orMASH_SPOOL_REQUIRED); otherwise mail stays on the channel and is still delivered. Before, the session got no mail while both said all was well. - A plain
mash statusrun outside a session now sees a state folder mash cannot create. It checks the folder without writing to it, and says mail cannot be stored when the spool setting (MASH_SPOOL_FROM_STARTorMASH_SPOOL_REQUIRED) is set where the shell can see it. See Known issues for when it does not. - A restarted endpoint refuses a prompt signed before it started. The message tells the sender to send the prompt again. See Known issues for the case that is still open.
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 2 known issues. Each has an issue; the issue is the place for detail and any workaround.
- A prompt signed in the second the endpoint restarted, or sent by a sender whose clock runs ahead, can be replayed for up to about 60 seconds after the restart. A prompt signed before a restart is refused otherwise. #1829
- A plain shell reports a state folder mash cannot create only when the spool setting is visible to it.
mash statusandmash doctorat a shell report it whenMASH_SPOOL_FROM_START(or itsconfig.jsonkey) is set where the shell can see it; a session always reports it. #1907
What is not in this release
Security policy, a way to narrow who may mail whom inside an owner, is planned and is not in this release. Nothing else is promised here.
Links
Full changes: v0.5.10...v0.6.0
v0.5.10
Summary
0.5.10 changes what scripts read: some --json names, exit codes and wording. For people, mash and mashctl
now read alike, and mail signed with a replaced key is no longer labelled verified. A 0.5.5 configuration folder is no longer migrated: upgrade through 0.5.9 first.
Upgrading
One-way. Still on 0.5.5's configuration folder? Upgrade through 0.5.9 first.
- Check:
mash doctor(andmashctl doctor) end clean; if not, see docs/troubleshooting.md. If more than one endpoint is installed here,mash doctorasks which one: runmash doctor --endpoint <address>for each. - Install
mashandmashctl0.5.10; endpoints, keys and mail stay. - Update the
mashandmash-setupplugins; a session asked for mash's version saysmash v0.5.10. - Restart each Claude Code session, then check again.
Session-only users need nothing more. Scripts: see the
release notes.
Upgrading in detail
What you will notice
For a person at a terminal, both commands now read alike: help starts with a Usage: line, a success is one short line, every error has one form, and mash inbox shows each sender's full address. The setup skill gives you the PATH line for your shell and sends a test note you can tell apart from your own; after a reboot, ask Claude to "start mash's server again". After an endpoint's key is replaced, mail signed with the old key is no longer labelled verified.
One-way: a problem found after upgrading is fixed by the next release; you do not go back to 0.5.9.
If you only use mash from Claude Code sessions, steps 1 to 5 are all you need; the rest is for scripts.
On each machine with endpoints, then on the administrator's machine, in this order:
- Check first:
mash version,mash doctorand, as administrator,mashctl doctor. Each doctor should end
with no problem and exit 0. If one does not, fix that first with
troubleshooting. - Install
mashandmashctl0.5.10 from the same release, with the README's install steps. Endpoints, keys
and mail stay where they are. - Update both plugins,
mashandmash-setup:claude plugin update mash@mashand
claude plugin update mash-setup@mash. The plugin that runs the 0.5.10 program comes out shortly after the
release. To know you have it, ask a session "which mash version is this?": it saysmash v0.5.10 (<commit>)
when you do, andmash v0.5.9until then; update again until it says 0.5.10. - Restart each Claude Code session. A running session keeps its old hooks and mail process until you restart it.
- Check again as in step 1;
mash versionnow saysmash v0.5.10.
Machines at mixed versions send and read each other's mail on one server, both ways.
If a script reads mash or mashctl output:
- Exit codes follow one rule: 0 it worked, 1 it failed, 2 the command line was wrong. Five cases move from 2 to
1: no endpoint installed, a join file that needs your seed,mashctl endpoint deletewith no terminal, a refused
plainhttp://URL, and a refused encryption override. An unknown flag is nowerror: unknown flag --x, exit 2. --jsonnames changed:mashctl statusgivesready,endpoint_countandonline_count(wereok,
endpoints,online);mashctl endpoint listandshowgiveonlineandsuspendedas booleans in place of
state;capabilityis nowcapabilitiesinendpoint show, andserveris nowserversinmashctl init.
An unset field isnull, never""or missing.mash whokeepscapability, because other tools read its JSON
as a fixed contract.--jsonis one compact line when piped, and indented only at a terminal. Parse it; do not match its layout.- Text changed: success lines (
Mail sent (number 7 in acme.demo.alice's inbox)), the inbox columnSENT
(wasWHEN), the full sender address inmash inbox, and theADDRESScolumn ofmashctl endpoint list.
A script that matches text should match the new lines.
What changed
Added
mashctl doctor's keys row now fails when the signing key inconfig.jsonis not in the key folder or not listed in the account. Before, a lost or unlisted signing key showed only whenmashctl endpoint createwas refused (#1288).
Changed
- Both commands read the same way, and one rule gives the exit code.
mash --helpandmashctl --helpnow start with aUsage:line, explain SAP, NATS and creds in a sentence, and end with a pointer to the per-command help; a command's help lists only the options that command takes.mashctlhelp says<address>everywhere.mash sendnow saysMail sent (number 7 in acme.demo.alice's inbox), the inbox column that read WHEN reads SENT, andmashctl endpoint createends with the line to start Claude Code as the new endpoint (it namesMASH_CONFIG_DIRwhen the credentials went to another folder, andMASH_SERVERorMASH_CAwhen you gave--serveror--ca).mash doctorwords its refused-mail and delivery rows more plainly, and the hints that pointed at nothing useful are gone. Exit codes: 0 it worked, 1 it failed, 2 the command line was wrong, in both tools. This changes five cases from 2 to 1: no endpoint installed here, a join file that needs your seed,mashctl endpoint deletewith no terminal to type the address in, a refused plainhttp://URL, and an encryption override that is refused.mashctl --helplists its global options and--jsonfor every verb that has it (#1048).mash hooknow exits 0 for a host it does not know (#1100). mashctl endpoint createprints where the credentials file is. The text output has aCredentials: <path>line afterCreated endpoint, as--jsonalready had in "creds" (#1044).mashctl endpoint deletenow says in its confirmation that mail arriving while the delete runs is lost too. The question is otherwise unchanged (#912).--detailblocks and otherlabel: valueblocks now pad every label to the longest label in the block plus one space, so values line up and none overflows its column (mash send --detail,mashctl endpoint showandmashctl endpoint reissue --detail) (#1050).mash inboxprints the sender's full address in the FROM column. It no longer shortens a sender in your own owner and group to its name, so two senders cannot print alike (#1045).- Both
--jsonoutputs show an unset field asnulland name a list in the plural. For examplemashctl endpoint showalways hasrole,host,descriptionandnoteand givescapabilities(wascapability),mashctl initgivesservers(wasserver) andsigning_key_pubasnullwhen no key is set, andmashctl doctorandmash versiongive"detail": nulland"plugin": nullin place of"";mashctl's changing commands andmash joinalways havedry_run(falseon a real run), andmashctl inithaswould_change,nullunless it is a dry run;mash whokeepscapability. (#1042) - Both
--jsonoutputs name one fact one way.mashctl statussaysready,endpoint_countandonline_count(wereok,endpointsandonline), andmashctl endpoint listandshowgiveonlineandsuspendedas two booleans in place of thestateword. (#1041) - --json output is indented on a terminal and one compact line when piped or written to a file, in both mash and mashctl. Error objects follow the same rule (#1043).
- The send kind's help says when it wakes. blocker, question and task wake an idle session only when it has mash's wake channel on; otherwise the message arrives with its next turn (#1179).
mashctl endpoint listnow prints the owner and group on every row and an ADDRESS column, and--wideshows ADDRESS in place of NAME (#1040).mashctlnow accepts global options before the verb (mashctl --json status), andmashandmashctlboth report an unknown flag, before or after the verb, aserror: unknown flag --verbose(exit 2, only the flag's name, never a value after=) instead of an unknown command orunknown option; neither it nor an unknown command prints a hint (#1047).- No endpoint installed: the error names the setup skill.
mash status,mash doctorand the other commands now say how to set mash up. There is no hint line, because no single command fixes a fresh machine. - The send tool's description now names its two required arguments. It says address is the recipient and message is the text, so the first call is right (#1209).
mashandmashctlnow word a success, an unknown command and a missing thing alike. A success line has a capital first letter and no full stop (Mail sent (number 42),Joined as acme.demo.bob),mashsayserror: unknown command "x"with no hint asmashctldoes, and a missing endpoint or message readserror: no endpoint <address>orerror: no message Nin both (#1046).
Removed
- A 0.5.5 configuration folder is no longer migrated or named in an error. The
mash-migrate-0.5.5.shscript is no longer a release asset, andmashandmashctlno lon...
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 addr...
v0.5.8
Summary
mash 0.5.8 exists for a fleet migration: mashctl doctor now passes on a NATS account shared with other tools, and mashctl doctor --audit-users checks that every connected user was issued by mashctl (#1300). install.sh also tells you how to fix a folder it refuses (#1240). mashctl doctor no longer fails because a connected user was not issued by mashctl; it says how many other users are connected, and --audit-users is the one option that fails on them. If you never share an account, nothing changes. The rest is smaller: one count for mash inbox and the idle wake, a refused-mail count that is repaired after a kill, safer installer and setup scripts, and a bigger default for the local server. Every download has a build attestation; verify it. The known issues are listed in the release notes.
Upgrading
Update both plugins, mash and mash-setup, then restart your Claude Code sessions: the serve and inbox fixes need a restart. Install mash and mashctl from the same release, as before. A local server you already set up keeps its old limits of 64 streams and 128 consumers; the new default of 1024 applies to servers set up with 0.5.8. The upgrade is one-way; problems are fixed by the next release.
Upgrading in detail
One thing you may want to do:
- If you set up a local server before 0.5.8, it keeps its old limits of 64 streams and 128 consumers. The new default of 1024 applies to servers set up with 0.5.8. Tested steps for raising the limits of an existing server are tracked in #1301.
What changed
Added
mashctl doctorno longer fails because a connected user was not issued by mashctl. A NATS account is the operator's and may be shared; mash is one tenant in it, so health covers mashctl's users. On a shared account thekeysline stays ok and says how many other users are connected:keys ok mashctl's users ok; 1 other user, not issued by mashctl(with none,keys ok every connected user was issued by mashctl). This holds with and without--strict. To check who is connected now, runmashctl doctor --audit-users: it fails when a connected user was not issued by mashctl (it sees only users connected now) and names the key, and a missing issue store fails thekeysrow, with or without the option, then sayshint: revoke it with the tool that issued it (mashctl revokes only its own).mashctl doctoralso no longer fails when other tools' connections change while it reads; if mashctl's users keep connecting and leaving it warns, and--audit-usersfails if no retry reads the whole list. Tracked at #1300; the decision is ADR 0166.
Changed
install.shnames the fix when it refuses a folder. Claude Code's own installer leaves~/.localand~/.local/binwritable by their group, andinstall.shrefuses such a folder. It used to stop without saying how to go on. The message now names the folder and the command,chmod go-w <folder>, and you run the installer again. It names one bad folder per run, so you may need to run it more than once; the common case is~/.localand~/.local/bin. What it accepts does not change (#1240).mash inboxand the idle wake count waiting mail one way. One pass over the waiting messages gives the total, new, urgent and oldest-waiting numbers, so the urgent count covers the waiting backlog (up to 1000 messages), not the newest 200 messages, and an older message from a deleted sender is no longer counted. The pass is capped at 1000 messages or 32 MiB. The output text does not change (#955, #1054).- The local server setup allows 1024 streams and 1024 consumers.
mash-local-nats-setup.shgave the account 64 streams and 128 consumers, so a server ran out of room after a few dozen endpoints. The disk limit stays at 2 GiB and is now the one you reach first, at about 122 endpoints (#1253).
Fixed
- An interrupted
install.shno longer splits the two programs. Ctrl-C, a closed terminal orkillwhile it replacesmashandmashctlnow leaves both old or both new.kill -9cannot be caught and can still split them (#1071). mash-local-nats-setup.sh --startchecks that a running server answers. It used to say "already running" whenever the recorded process was alive. Now, if the server does not answer, it exits with an error and tells you to run--stop, then--start; it changes nothing itself (#1094).- Only one run can take over a stale lock in
mash-local-nats-setup.sh. After a killed run, two runs started at once could both start, stop or remove the same server. One now reports busy, and a lock left by a run killed mid-takeover is named so you can remove that one file (#1093). mash-migrate-0.5.5.shworks only inside the mash folder it entered. A parent folder replaced while it runs can no longer redirect what it reads or writes, and the backup holds exactly theconfig.jsonit checked (#1063).mash doctor's refused-mail count is repaired after a kill. Ifmash servewas killed between recording a refused message and updating the count, the count stayed one low. It is now repaired the next time that message is handled (#1069).
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 56 known issues. They are the 0.5.7 known issues that are still open, and the ones found since. Each has an issue; the issue is the place for detail and any workaround. Listed by what you would notice.
Mail and trust:
- #874: refused unverified mail: the sender is not told, and the mail is still stored.
- #935: an administrator cannot see which messages an endpoint refused.
- #958:
mash inboxmay count unverified mail thatservehas not yet refused. - #990:
mash readat a shell can say "refused" for mailservedelivered under--accept-unverified. - #960: a signed message replayed within 5 minutes shows as verified a second time (no workaround).
- #883:
Mash-Kindis unsigned. - #866:
mash readfrom a shell with no session does not tell the server until the next session starts. - #1070:
mash inboxgets slower with the span of the mailbox's messages, not the size of the page. - #918:
mashctl's online (holds the lease) andmash who's online (heartbeat) can disagree for up to 90 seconds. - #1039: mash cannot discover endpoints served by a SAP SDK host.
Setting up and installing:
- #878: one config folder serves one mesh; a second mesh needs
--config-dir. - #965:
mashctl init --configrefuses a folder set up for a different server. - #1341: on macOS,
mash-local-nats-setup.shrefuses--dirunder/tmp, and its hintchmod go-w /tmpis wrong: do not follow it. Pick a folder under your home instead; the default,~/mash-nats, works. - #1350: an idle session holding mail from senders it can no longer verify re-reads its inbox (up to 1000 messages) every minute, a steady load on the server and disk. No workaround.
- #1065:
mashctl initprints an unknown setup key in its error. - #865: the NATS helper has no boot start, upgrade, backup, other-machine listening or key retirement.
- #995:
mash-local-nats-setup.sh --removerefuses when a later instance took a stopped folder's recorded port. - #1352: the install.sh attestation check does not pin the source commit (--source-digest).
- #1353: a hard kill (kill -9) between install.sh's two renames can leave mash and mashctl at different versions, and a rerun does not detect it. Workaround: run install.sh again with MASH_VERSION set to the version you want, then check that mash version and mashctl version match.
- #1099: a failing
mash doctorends1 problem.with no fix, though its help says it tells you how to fix what is wrong, and some hints point at a command that gives the same answer:mash statushintsmash doctor, andmashctl doctoron a down server hintsmashctl status, which only checks. Anyone who follows the hints after a failure meets this, and an agent that follows eve...
v0.5.7
Summary
mash 0.5.7 fixes one thing: mashctl can now set up mash on a NATS server that requires users to be signed by an account signing key. If your server does not set strict_signing_key_usage, you need do nothing: the one change you may notice is that revoking an endpoint no longer stops at an account signing key that mashctl did not make.
Upgrading
Install mash and mashctl from the same release, as before. Nothing in the setup file, the key store or your endpoints needs to change.
If your NATS operator has strict_signing_key_usage: true, 0.5.6 could not set mash up: mashctl endpoint create made users the server refused, and mash doctor showed the sign-in failing with "the server refused these credentials". To fix it, add one key to your setup file, signing_key, pointing at a 0600 file that holds one of the account's signing seeds, then run mashctl init --config FILE again. init checks that the key is one of the account JWT's signing keys. Then reissue the endpoints you made with 0.5.6 (mashctl endpoint reissue); users already signed with the account's identity key stay refused until you do. Keep account_key as it is: it is still the account's identity seed.
What changed
signing_key, an optional setup key. When set,mashctlsigns each endpoint's user with that key and names the account as the issuer, which a strict server requires. When it is not set, nothing changes.- Revoking an endpoint works on an account with signing keys
mashctldid not make. A plain signing key already in the account JWT is kept as it is whenendpoint deleteorendpoint reissuerewrites it; before, the command refused. The cost:mashctlnow signs, with the operator key, an account JWT that holds a plain signing key it did not make, so whoever added that key can still make users for the account andmashctlwill not remove it. Scoped keys it did not make are still refused (ADR 0158). - The documentation says what a strict server needs (Bring your own NATS server, Operating mash). Issue #1239 is closed.
Known issues
These are the 0.5.6 known issues that are still open, and the ones found after it. Each has an issue; the issue is the place for detail and any workaround. Listed by what you would notice.
Mail and trust:
- #874: refused unverified mail: the sender is not told, and the mail is still stored.
- #935: an administrator cannot see which messages an endpoint refused.
- #958:
mash inboxmay count unverified mail thatservehas not yet refused. - #990:
mash readat a shell can say "refused" for mailservedelivered under--accept-unverified. - #960: a signed message replayed within 5 minutes shows as verified a second time (no workaround).
- #883:
Mash-Kindis unsigned. - #866:
mash readfrom a shell with no session does not tell the server until the next session starts. - #955:
mash inboxcounts urgent mail among only the newest 200 messages. - #1070:
mash inboxgets slower with the span of the mailbox's messages, not the size of the page. - #1069:
mash doctor's refused-mail count can stay one low afterserveis killed mid-refusal. - #1054:
mash inboxand the wake still count older waiting mail from a deleted sender that the list leaves out. - #918:
mashctl's online (holds the lease) andmash who's online (heartbeat) can disagree for up to 90 seconds. - #1039: mash cannot discover endpoints served by a SAP SDK host; the fix is planned on mash's side after 0.5.6.
Setting up and installing:
- #878: one config folder serves one mesh; a second mesh needs
--config-dir. - #965:
mashctl init --configrefuses a folder set up for a different server. - #1065:
mashctl initprints an unknown setup key in its error. - #865: the NATS helper has no boot start, upgrade, backup, other-machine listening or key retirement.
- #995:
mash-local-nats-setup.sh --removerefuses when a later instance took a stopped folder's recorded port. - #1093:
mash-local-nats-setup.sh: after a run was killed and left its lock behind, two runs started at the same moment can both take the lock, and both then start, stop or remove the same local server. Someone who runs two of--start,--stopand--removeat once, just after a killed run, meets this; both runs are by the same user. Workaround: run one lifecycle command at a time; after a killed run, run--stop, then--start, one after the other. - #1094:
mash-local-nats-setup.sh --startsays "already running" whenever the recorded server process is alive, without checking that the server answers, so a server that is up but not serving (one stuck while starting, for example) is reported as running. Someone whose local server process is up but not serving, who runs--startto bring it back, meets this. Workaround: runmashctl status; if it is not ok, run the script with--stop; if that says it did not stop, runkill -KILLon the process number in<dir>/server.pid, then--stop, then--start, thenmashctl statusagain (it says ok). - #1099: a failing
mash doctorends1 problem.with no fix, though its help says it tells you how to fix what is wrong, and some hints point at a command that gives the same answer:mash statushintsmash doctor, andmashctl doctoron a down server hintsmashctl status, which only checks. Anyone who follows the hints after a failure meets this, and an agent that follows every hint can loop. No workaround to run; read the failing row itself, which names the fault. For a local server that is down, the fix ismash-local-nats-setup.sh --start, which neither command prints. - #959:
install.shchecks checksums only whenghis missing or too old; the one-line commands run a script before you can read it. - #1071:
install.shkilled between its two moves leavesmashandmashctlat different versions; run it again. - #1153: gh 2.48 to 2.67 has
gh attestationbut no--source-ref, soinstall.shstops with "the attestation of the release's SHA256SUMS did not verify: nothing was installed". The message wrongly blames the release. Workaround: use gh 2.68.0 or later, or take gh off PATH. - #1072:
install.shdoes not pin the source commit (--source-digest) when it verifies attestations. - #1231: on a personal Claude account,
--channels plugin:mash@mashalone does not load mash's channel, so an idle session is not woken; the wake needs--dangerously-load-development-channels plugin:mash@mash, with Claude Code's warning screen at every start, and in a Team or Enterprise organisation an administrator must add mash toallowedChannelPlugins. Without a channel, mail arrives at the next prompt or tool call. The setup skill writes one command per agent with the right flags (wake an idle session). - #875:
mash doctorhas no idle-wake (channel) or plugin check. - #993: on a host without Claude Code hooks,
doctor's delivery row warns for as long as it runs. - #1008: a first
mash joininterrupted partway leaves a folder that neither a retry nor--replacefinishes. - #1013: a join file of another account on the same servers can join a folder that already holds an endpoint.
- #1097:
mashctl statusprints nothing and exits 0 when no server is configured. Someone running it beforemashctl initmeets this, and a script or skill that reads silence as "ok" is misled. Workaround: runmashctl doctor, whose config row fails:config FAIL no servers in the configuration, then1 problem.andhint: mashctl init --config <file>, exit 1. - #1062:
mash joinadds a certificate authority to a folder that has servers but no endpoint. - #1066:
mash join's rollback can remove a replaced creds file. - #1063: the migration script can write outside the mash folder if a parent path is replaced.
Signing keys, new in 0.5.7:
- #1246: if both
signing.nkandsigning.pubare l...
v0.5.6
Summary
mash 0.5.6 is the release to start with, and mail that is not proven to come from its sender is now refused by default. Read Upgrading before you install it. mash lets Claude Code sessions send each other mail; each session is an agent with an address of three parts, such as acme.demo.alice. The quick start takes you from nothing to two Claude Code sessions mailing each other. Every download has a build attestation; verify it.
Upgrading
If you have never used mash, there is nothing to move: install mash and mashctl from the same release, then follow the quick start. Each session starts with MASH_ENDPOINT set to its address, and mail that is not verified is refused; set MASH_ACCEPT_UNVERIFIED=1 if you depend on receiving it. If you used 0.5.0, start a new deployment: 0.5.6 does not read its state. The steps in full, and the table of old and new names, are in the release notes.
Why this release
Before this release we looked honestly at what mash felt like to use. Setting mash up took commands that overlapped (adopt, init --local, provision and endpoint create all made something); the same setting had three names (MASH_OWNER, MASH_GROUP, MASH_NAME); the same failure exited with a different number from each command; and output was written for the program that made it, not the person reading it. None of that was a deliberate design. It grew. 0.5.6 gives every command one job and one clear way to say it, written down in a specification that the commands are now built from (ADR 0147). We chose to cut the old forms rather than carry them: there are no aliases and no deprecation period, because keeping both would have meant two ways of doing everything for good.
Refusing unverified mail is the other change of heart. A message is verified when it is signed by the key of the endpoint it names. Until now mash delivered everything and labelled it. A label is easy to miss, and an agent may act on what it reads, so the safe default is now to deliver only mail that is proven. You can turn the old behaviour back on (see Upgrading).
0.5.0 reads nothing 0.5.6 makes; if you are still on 0.5.0, start a fresh deployment.
Upgrading in detail
If you have never used mash: nothing to move. Install mash and mashctl from the same release (the install guide), start each session with MASH_ENDPOINT set, and follow the quick start.
If you used 0.5.0: 0.5.0 state is not read, and 0.5.6 does not convert it. Start a new deployment with the quick start, name every agent in three parts (owner.group.name; there is no default group), and create each agent again. Read any mail you still need in the old inboxes first: it is not carried over. Do not install 0.5.6 over a running 0.5.0 endpoint, including with go install ...@latest.
What changed, old to new
Every removed or renamed command, setting and form. A removed command prints a message that names its replacement, or is an unknown command (exit 2); none is an alias.
| Old | New |
|---|---|
MASH_OWNER, MASH_GROUP, MASH_NAME |
MASH_ENDPOINT, the full address owner.group.name (also --endpoint, and endpoint in config.json) |
MASH_URL, MASH_SERVERS |
MASH_SERVER, a comma list (also --server) |
MASH_TLS_CA |
MASH_CA (also --ca) |
config.json keys url, tls_ca |
servers (a list), ca |
config.json keys owner, group, name |
endpoint (the full address). owner remains only as a mashctl setting |
MASH_INSECURE_PLAINTEXT, insecure_plaintext |
MASH_DANGEROUSLY_SKIP_NATS_ENCRYPTION=1: environment only, no flag and no config key, with a warning on stderr from every command while it is set |
mashctl adopt, mashctl init --local, mashctl init --start |
mashctl init --config FILE (the setup file; mash-local-nats-setup.sh writes one for a server on this machine) |
mashctl provision, deprovision, list |
mashctl endpoint create, endpoint delete, endpoint list |
mashctl add, reissue, retire (top level) |
mashctl endpoint create, endpoint reissue, endpoint delete; each prints the replacement |
mashctl set-meta, label, unlabel |
mashctl endpoint set, endpoint unset |
mashctl suspend, resume, permissions (top level), suspended |
mashctl endpoint suspend, endpoint resume, endpoint permissions; endpoint show says whether an endpoint is suspended |
mashctl audit, issued list, issued check |
mashctl doctor; one endpoint's records are in mashctl endpoint show |
mashctl inbox inspect |
mashctl endpoint inbox |
mash credential create |
mash join FILE.join (--key bob.seed when the endpoint made its own key) |
mash admin (11 commands) |
mashctl (they need an administrator's credentials) |
mash plugin export |
the plugin's marketplace: claude plugin marketplace add bogworks/mash, then claude plugin install mash@mash |
acme_demo_bob and acme/demo/bob address forms |
acme.demo.bob only, in mash send, mash prompt, mash who and mashctl endpoint ... |
| Exit codes: failures exited 2, 3 or 6, depending on the command | 0 (it worked), 1 (it failed) and 2 (the command line was wrong) only |
--verbose, -v |
--detail (an unknown option, exit 2, if you still pass the old one) |
mash who --match, --name, --owner, --cap, --long, --names, --format |
a prefix (mash who acme.demo), --role, --capability, --label, --wide, --json |
mash send TO TEXT... with several words, MCP send parameters to, text, in_reply_to, via |
one quoted message (or --file, or standard input); address, message, reply_to, relay |
MCP read argument seq |
number |
The old mash status rows (config, creds, connection, channel) |
mash status (one line) and mash doctor (one row per check) |
| Unverified mail delivered with a label | refused by default; --accept-unverified or MASH_ACCEPT_UNVERIFIED=1 restores it |
mash serve run by hand in a terminal |
refused: mash serve is started by an agent host, not by hand (exit 2) |
What changed, in detail
Security. This release refuses unverified mail by default (see Added and Upgrading). It also makes turning encryption off a deliberate, noisy act: one environment variable with a long name, no flag, no config key, and a warning on every command while it is set. Every download has a build attestation; verify it, as the install guide describes (docs/install.md).
Added
mash join FILEinstalls an endpoint on this machine from the join file whoever runs your mesh gave you. It copies the server addresses and the certificate authority's certificate into the configuration folder, writes the endpoint's creds file there (mode 0600), and printsJoined as acme.demo.bob.(--detailadds theservers:andcreds:lines). When the endpoint made its own key,--key bob.seedsupplies it. An endpoint already installed is refused unless you pass--replace; a join file for another mesh is refused, because one configuration folder serves one mesh (--config-dirnames another).--dry-runwrites nothing. It never prints a seed.mash doctor(and an MCPdoctortool) checks everything mail depends on: config, creds, server, sign-in and refused mail, one row each, then a count and, for the first problem with a fix, a hint. It exits 1 when it finds a problem;--strictmakes a warning exit 1 too. Its delivery row also reports hooks: a warning until they have run in the session, a failure when they are not delivering mail.mashctl doctordoes the same for the server and its records.mash status --detailsays whether mail will reach the session: whether it holds the endpoint, whether its hooks ran, and whether storage works. With--jsonit adds areason_code, a fixed word beside the reason, and the session.--detailon every command ofmashandmashctl: the usual answer pluslabel: valuelines, or with--jsona fuller object that contains the usual one. A command with nothing more to say prints the same.install.shandmash-local-nats-setup.sh, with the release.install.shinstallsmashandmashctlfrom one release, checks each against the release's checksums (and the attestation too whenghis installed), asks nothing and needs nosudo(ADR 0150). The local setup script makes a NATS server only this machine can reach and writes the filemashctl init --configreads.- A
mash-setupplugin with a setup skill and a day-2 skill: install it from the marketplace first (claude plugin install mash-setup@mash), then ask your agent to set mash up. It walks you through installing mash and a local NATS server. mash whofilters by what an endpoint does:--role TEXT,--capability NAMEand--label NAME[=VALUE], the last two repeatable (all must match); the MCP tool takes the same.- A wake for a backlog.
mash servewakes the session when more than 15 messages are waiting, or the oldest has waited longer than an hour, at most once every 10 minutes and not in the first 10 minutes after it starts. Change the limits withMASH_WAKE_COUNT/wake_countandMASH_WAKE_AGE/wake_age(for example30mor2d), or `m...
v0.5.5
Superseded. The 0.5.5 command-line output is not ready for people to use. Use 0.5.6 when it is released; do not install 0.5.5.
Summary
mash 0.5.5 changes how every agent is named, and it does not work with anything made by 0.5.0. Read Upgrading before you
install it. An agent's address is now three parts, owner, group and instance (for example alice.dev.design), and every
agent must name its group. Credentials files, directory records, inboxes and addresses from 0.5.0 are not read or converted,
and mail still unread in old inboxes when you switch is not carried over. Start with a fresh deployment. If you have never
used mash, this is the release to start with: the quick start below takes you from nothing to two Claude Code sessions
that mail each other. Every download has a build attestation; verify it.
mash 0.5.5 also requires TLS on every connection, loopback included. Every mash and mashctl connection now needs a tls:// (or wss://) URL, and a plain nats:// URL is refused unless you set insecure_plaintext (MASH_INSECURE_PLAINTEXT=1). A 0.5.x deployment that connects in plain text sees that refusal on its first connection after the upgrade. mashctl init --local makes its own certificates, so the quick start below needs no override.
0.5.0 remains the version running deployments should keep using until they are moved. 0.5.5 reads no 0.5.0 state, so do not install it
over a running endpoint, including by go install ...@latest.
Why a hard cut
0.5.0 had two address forms: agents made with mashctl add carried a fixed cc token and had no group, and their
credentials were made on the machine that runs mashctl, so a private key had to be copied by hand to any other machine.
Keeping both forms working would have meant carrying the old one around indefinitely, for no one's benefit, so 0.5.5 has
one form and nothing else. That also means the old way of doing things is gone rather than deprecated.
Upgrading
If you have never used mash: nothing to move. Follow the quick start.
If you used 0.5.0: the order matters, and none of this is automatic.
- Start a new deployment. Run
mashctl init --localfor a local server, or set up a new account on your own servers.
Leave the old one untouched for as long as you want a way back to 0.5.0. - Choose a name for every agent in three parts. Write each as
owner/group/instance, for examplealice/dev/design.
Each part is lower-case letters, digits and hyphens, starts with a letter, is at most 32 characters, with no--and no
trailing hyphen. There is no default group: a command or session without one is refused, and nothing guesses it. A group
cannot be changed later. To move an agent to another group, create a new one and delete the old one. - Create each agent again with the quick start below. Old credentials files, directory records and inboxes are not
read. - Read mail you still need first. Mail unread in an old inbox when you switch is not carried over.
- Update scripts and settings.
mashctl add, the oldreissueandretireare gone and print a message that names
the replacement (mashctl endpoint create,endpoint reissue,endpoint delete).unzoneis gone too and is now an
unknown command (exit 2).agent_tokenandMASH_AGENT_TOKENare
gone. Start each session withMASH_GROUP(andMASH_OWNERandMASH_NAMEif they are not in your config). - Check where mash looks for its config. If
XDG_CONFIG_HOMEis set, mash now reads$XDG_CONFIG_HOME/mashonly; it no
longer falls back to~/.config/mash. To keep using that directory, setMASH_CONFIG_DIR=$HOME/.config/mash(an
absolute path), or move the files. (Checked against the code on main:MASH_CONFIG_DIR, then an absolute
XDG_CONFIG_HOME/mash, then~/.config/mash; a relativeXDG_CONFIG_HOMEis ignored.) - Update anything that reads mash output. The audit report (
mashctl audit --json) is version 2 with new field names,
and--comparerefuses a version 1 file.mash who --jsonnow reportsnameas the flat keyowner_group_instance
and addsidentity(owner.group.instance),owner,group,instanceandagent. Spool folders and the owner shown
in hook and spool messages use the new address. (Checked against the code on main:auditrecords carryaddress,owner,group,instance;who --jsoncarriesidentity,owner,group,instance,agent.) - Use TLS on every connection, or set the override knowingly. A plain
nats://URL (or one with no scheme, orws://)
is refused, to any host and loopback included, with a message that names the setting and the fix, unless
insecure_plaintext(MASH_INSECURE_PLAINTEXT=1) is set; with it set, mash connects and prints a warning on standard error
(andmash statusshows it). Do not set it on a network you do not control: plain text lets anyone on the network read
mail and obtain signatures. mashctl init --localnow makes a local certificate authority and certificates, and runs its server with TLS only; the
configuration it writes has thetls://URL andtls_ca, so nothing else is needed. If you run your own server, give it
TLS and settls_ca(orMASH_TLS_CA) to the PEM file of the authority that signed its certificate, or set the override.- Remove
insecure_loopbackandrequire_tlsfrom your settings.insecure_loopback(MASH_INSECURE_LOOPBACK) and
require_tls(MASH_REQUIRE_TLS) are gone and are not read:insecure_plaintextreplaces both
(ADR 0146,
which replaces the default and the loopback allowance of ADR 0108).
Moving your existing agents is a one-time job. mash does not do it: it is done outside mash, once, by whoever runs the
deployment, onto a fresh deployment, with a written map from each old name to its owner, group and instance.
Quick start: your first agent
On one machine, with mash, mashctl and nats-server installed:
mashctl init --local --owner alice --start
mash key create --out design.seed
mashctl endpoint create alice/dev/design --public-key design.pub
mash credential create --seed design.seed --jwt alice.dev.design.jwt
Install the plugin, then start the Claude Code session with MASH_OWNER=alice MASH_GROUP=dev MASH_NAME=design. Repeat for a
second agent (review) and the two sessions can mail each other.
Why it works this way: each agent makes its own key on its own machine (mash key create), and only the public key goes to
mashctl. mashctl endpoint create signs it and writes a JWT file; mash credential create joins the seed and the JWT into
the credentials file, on the agent's machine. The private key is never on the mashctl machine and no secret travels. An
agent on another machine uses the same four steps; only the public key file and the JWT file move. If an agent runs on the
same machine as mashctl, --make-key makes the key there and writes the credentials file, and is only for that case.
mashctl endpoint reissue gives an agent a new key and revokes the old one, and mashctl endpoint delete removes it. Either
way the session using the old key is disconnected and cannot reconnect. endpoint list and endpoint show change nothing.
A deleted address is burned: it cannot be created again. An agent's credentials reach only the agents of its own owner.
One departure from the Synadia Agent Protocol
The first subject slot now carries the owner, not the name of the harness. The protocol says that slot SHOULD name the
harness; mash does not follow it. Finding mash agents with a wildcard on the harness slot therefore does not work. Finding
them by the service name does, and the service metadata still says claude-code and adds owner, group and instance.
Security
This release closes replies across owners: an endpoint of another owner can no longer answer, forge or replay a reply into your
endpoints. Inside one owner, endpoints can still answer each other's reply subjects; that is the endpoint model's "wide open under
the owner" until the policy release. An endpoint's reply inbox now lives under its owner (_INBOX.<owner>.<flat key>), and it can
publish replies only to its own owner's inboxes. A credential made before this release is refused by this release's mash: reissue
it (the hard cut already means starting fresh).
What was tested, and what was not
- Tested on one machine, with one local server, from a fresh home, over TLS with no override: the quick start's steps, mail
both ways, reissue and delete, and every refusal listed here. What the test did, exactly: it builtmashandmashctlfrom
the commit and ran the steps of the quick start with those binaries; it ran each session through the plugin's own launcher
(plugin/scripts/mash serve) and delivered mail through the plugin's hook commands, with the test itself playing the roles
of Claude Code's MCP client and hook caller. No Claude Code session ran, and the install steps of the README (a downloaded
binary,go install) were not part of it: the maintainer's own walk through the README, from a clean home to two mailing Claude Code
sessions (JRN-001), is done after the release; AT-001, the automated run, stands in for it until then. Run records are in the repository (docs/evidence/2026-11-17-0-5-5-live-runs/):
the quick start's steps, mail, the permission set and its isolation, revocation and every refusal passed. All of them ran on the code commite26332c(AT-001 to AT-003 and AT-005 by the core worker; AT-004, the command contract, by the CLI team), and the records name it. - Across separate nodes: three NATS servers in one cluster over TLS, in three isolated containers the test...
v0.5.0
Summary
This is a breaking release. If you used zones, read Upgrading before you install it.
mash v0.5.0 does two things: it retires zones, and it tightens security in the parts that remain.
Zones are gone. Zones were our first attempt at letting you control which agents may mail which other agents. In practice they didn't deliver what we wanted from a security policy: they were hard to reason about, they changed the shape of every mail address, and they didn't give a clean answer to "who is allowed to talk to whom". Rather than keep patching them, we're retiring them. A simpler, clearer way to say who can reach whom is planned for 0.6.0.
Until then the rule is plain: an agent's address is its fence. Each agent has one inbox, and every agent under the same owner can reach it. All mail uses the same five-part address again (agents.mail.<agent>.<owner>.<name>), with no zone in the middle.
Also in this release:
-
A record of every credential.
mashctlnow records each credential it hands out.mashctl issued checkcompares that record with who is actually connected and flags anything mash didn't issue. Revoking a credential is also safer: mash refuses when the record shows the revocation wouldn't actually take effect. -
Stricter settings you can turn on:
- refuse unencrypted connections to remote servers (
MASH_REQUIRE_TLS); - never fall back to a less reliable delivery path (
MASH_SPOOL_REQUIRED); - have the Claude Code plugin refuse a mash binary it can't verify (
MASH_PLUGIN_REQUIRE_VERIFIED).
All of them are off by default.
- refuse unencrypted connections to remote servers (
-
A look inside an inbox.
mashctl inbox inspect <agent>shows the mail stored for an agent and whether it was delivered, without changing anything. -
An easier start. The README now opens with a quick start for one person on one machine, with no account needed.
-
Fixes:
--helpafter any command now prints help and does nothing else. Before,mashctl init --helpraninit.mashctl init --localrespectsXDG_CONFIG_HOME.- Long or odd prompts are handled safely.
Every download comes with a GitHub build attestation; verify it before you run the binary.
Upgrading
If you never used zones, upgrading is two steps:
- Install v0.5.0 (the
mashbinary and the plugin). - Run
mash admin initonce. It creates the new credential record and hardens a setting on the server.
Also note: mashctl add and mashctl reissue now need the system account's credentials, so that they can check no zone policy is in force. Pass --sys-creds FILE, set MASH_SYS_CREDS, or keep a sys.creds file next to your admin credentials.
If you used zones, the order matters:
- If you applied a zone policy, stay on v0.4.0 for now. There's no automatic way out of an applied zone policy, and
mashctl unzonerefuses to touch it. Runmashctl auditto see which case you're in. - Otherwise, remove zones before you upgrade the agents:
- Upgrade only
mashctlfirst. - Run
mashctl unzone <agent>for each zoned agent. It moves the agent back to the plain address and keeps its stored mail. It is safe to run twice. - Give each agent a fresh credential: run
mashctl reissue <agent>where its credentials file lives. Add--widenif it refuses because the agent's old permissions were narrower. - Then upgrade the agents. Until every zoned record is converted,
mash serverefuses to start.
- Upgrade only
- Update your scripts.
- The zone options are gone:
--zone,set-zoneand--policy. - So are the v0.4.0
mashctl policy …commands. - The table in Upgrading admin tooling across zone removal lists each changed command.
- The zone options are gone:
- Run
mash admin initonce.
Plugin pinning. The plugin in this release isn't yet pinned to a specific mash binary. A follow-up plugin release, 0.5.0-pin.1, pins it to v0.5.0. Turn on MASH_PLUGIN_REQUIRE_VERIFIED only after you've updated to that plugin.
Details
Added
- The credential record.
mashctlrecords every credential it issues (fromadd,reissueandinit) in a bucket that only the admin can write.mashctl issued listshows the record.mashctl issued checkreports connected credentials that mash didn't issue, or that it has revoked.- ADR 0101 explains the design.
MASH_REQUIRE_TLS. Refuses plain-text connections to any host that isn't your own machine.mash statusnow warns about a plain-text remote address in every form (ADR 0108).MASH_SPOOL_REQUIRED. If mail can't be handed to the session safely, it stays in the inbox and you're told, instead of being delivered another way (ADR 0107).MASH_PLUGIN_REQUIRE_VERIFIED. The plugin refuses an unpinned plugin or an unverified binary, instead of falling back to whatevermashis on your PATH (ADR 0096).mashctl inbox inspect <agent>. Shows an agent's stored mail and its delivery state, read-only. Add--jsonfor scripts.- A lease bucket warning. An agent warns at startup, and
mash statusshows a line, when a server bucket still needs hardening.mash admin initfixes it.
Changed
- Zones are removed (ADR 0091):
- every mail address has five parts;
set-zone,--zoneand the zone policy file and its commands are gone;mash whono longer shows a zone.
- Agents are declared with
mashctl add. It creates the agent's record, inbox and credential in one step.reissue,retire,labelandunlabelall work from that record. - Bulk changes ask first.
mashctl reissue --alland--changedlist what they would change and only act with--yes. A reissue never quietly widens an agent's permissions. - A clearer refusal. When a send is refused, the message now says the credential may be out of date and suggests asking the admin to check it.
- The README starts with a quick start for one machine.
nats-serveris listed as a prerequisite.
Fixed
--helpafter any command (mashormashctl) prints that command's help and does nothing else. Text later on the line, such as a message tomash send, is never mistaken for--help.- Revocations that wouldn't take effect.
deprovision,retireand a rotatingreissuerefuse when the credential record shows that a credential was issued after the revocation time. NATS would otherwise keep honouring that credential. If the record can't be read, they change nothing (ADR 0115). - Prompts and
mash who.- Control characters in a live prompt and in
mash whooutput are shown as visible escapes. - A prompt over 32 KB is refused with a clear error instead of being cut off.
- Control characters in a live prompt and in
mashctl init --localrespectsXDG_CONFIG_HOMEon a first run and prints where it will write.- System credentials.
mashctlrefuses system credentials that other users can read. - The upgrade check won't start an agent if it can't read a record that might still be zoned.
Full changes: v0.4.0...v0.5.0