Repository navigation
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), ormash serve --wake-count N --wake-age DURATION;0turns a limit off.mash inboxsays on its second line when a limit has passed. mash sendprints the message's number:Mail sent (number 42)., in the command and the tool. Urgent and retagged mail say so too (Urgent question mail sent (number 43).;Mail sent as fyi (number 44): a reply marked question that asks nothing.).--jsonprints the same object, includingretagged.- The plugin tells you when mash is missing. When mash is not installed, the plugin's session-start hook prints one line with the install command, so the agent can tell you.
MASH_RELEASE_BASEmoves the versioned downloads to a fork or mirror; the install line the plugin prints always names the project's own release address (#996).
Changed
- Unverified mail is refused by default. Only mail whose trust is
verifiedreaches the session,mash inboxandmash read. Mail that is unsigned, signed by an unknown key, claimed but unproven, or stale is dropped and counted;mash doctorshows the count in itsrefusedrow, and the sender is not told.mash readon the number of a refused message says it was refused.MASH_ACCEPT_UNVERIFIED=1(oraccept_unverifiedinconfig.json, ormash serve --accept-unverified) delivers it, labelled. Mail refused earlier is not delivered afterwards. - One name for each setting, and three ways to give it.
MASH_ENDPOINT,MASH_SERVER(a comma list) andMASH_CAeach also exist as--endpoint,--server,--caand asendpoint,servers,cainconfig.json. With one endpoint's credentials in the config folder, the commands you type use it without being told. - A session is an agent only when it is told which.
mash serveandmash hookdo not pick the one installed endpoint for themselves. - Turning encryption off has one name.
MASH_DANGEROUSLY_SKIP_NATS_ENCRYPTION=1, environment only, with a warning from every command;MASH_INSECURE_PLAINTEXTandinsecure_plaintextare refused with an error that names it. - Addresses are written
owner.group.nameand nothing else.acme_demo_bobandacme/demo/bobstop with exit 2 anderror: acme_demo_bob is not an address; write it as acme.demo.bob. mash statusis one line:acme.demo.bob: ready, offline(orready, online), oracme.demo.bob: not ready: <why>withhint: mash doctorand exit 1. It connects and signs in, so it says whether mail works. Asked through a session's tools,statusanddoctorreport on that session itself.mash whoprints a headed table ofADDRESSandSTATE(--wideaddsROLE,HOSTandDESCRIPTION).mash who acmelists everything underacme,mash who acme.demothat group,mash who acme.demo.bobthat one endpoint, neveracme.demo.bobby.--onlineand--offlinecannot be combined.--jsonis{"endpoints": [...]}, never a bare array.mash inboxandmash readhave a new form, the same at a shell and in the MCP tools.mash inboxprints a summary line and a table (number, sender, age,neworread, urgency, kind, first line);--new,--after NUMBERand--widenarrow or widen it, and--limitis at most 100.mash read NUMBERprints labelled lines, then the whole text with>before every line, control characters escaped, so nothing a sender writes can pass for mash's own words.--jsoncarries the text unquoted inbody.mash sendtakes the message as one argument (quote it), or--file, or standard input, and has--reply-to,--relayand--id.mash versionprints one line,mash v0.5.6 (and the short commit).mash <verb> --jsonon a verb with no JSON form is a usage error.- A missing credentials file, a suspended or deleted recipient and a deleted endpoint are named plainly. When the creds file is not where the configuration says,
send,inbox,readandwhoprinterror: acme.demo.bob has no credentials here: <path> is missingandhint: mash doctor, never the operating system's words. Asendto an agent that takes no mail printserror: acme.demo.alice is suspended or was deleted; nothing was sentandhint: mash who, never the server's. On the machine that deleted an endpoint,mash statussaysthis endpoint was deleted; its address cannot be used again, andmash doctorsays so in its creds row; from another machine,doctorsays it in its sign-in row and points to a new join file. mash inboxcounts what it lists. Mail from a sender that has since been deleted is not shown, so it is no longer counted in the total or the new count (one limit remains: see Known issues).- Errors look alike. An error before a command runs (a bad option, an unknown command, a configuration or endpoint that cannot be used) is one
error:line with ahint:line on stderr; with--jsonit is{"error","hint"}on stdout. Exit codes are 0, 1 and 2. mash key createfollows the specification.--outdefaults tomash.seed, the public key goes beside it asbob.seed.pub, and it printsCreated bob.seed and bob.seed.pub., orerror: bob.seed already exists; nothing was written(exit 1).--pub-outand--dry-runare gone.- Setup is
mashctl init --config FILE, andmashctldoes not install or start NATS.
Removed
- Everything in the table above. Each removed command or setting has a replacement named there; none is kept as an alias.
- The old
mash whooutput modes and filters (--match,--name,--owner,--cap,--long,--names,--format, the tab-separated lines and the last-seen column). - The one-line
#seqinbox listing and the--- #5 from ...form ofmash read. The hook still delivers mail in its own form.
How to verify your download
Every file on the release page has a GitHub build attestation, and SHA256SUMS lists the files and their checksums. install.sh checks each download against the checksums, and against its attestation too when gh is installed. To check a file by hand, follow the install guide: verify what you download.
Known issues
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). - #1240:
install.shrefuses~/.local/binwhen Claude Code's installer left it group-writable (mode 775), then refuses~/.localfor the same reason. Workaround, run on a clean Debian 13 with Claude Code installed first:chmod go-w ~/.local ~/.local/bin, then run the installer again. - #1241: the setup skill needs
unziporpython3to unpack thenatsdownload, and a clean Debian 13 has neither. Workaround, run on a clean Debian 13 without sudo: the skill took thenats.debrelease asset, checked it againstSHA256SUMSand unpacked it withdpkg-deb -x. With sudo, installunzipfirst. - #1242:
mash joinwith a JWT whose name differs from the address says only "not a join file this mash can read". No workaround has been run; make the join file's JWT name the address. - #1239:
mashctlsigns endpoint users with the account's identity key, so a NATS operator withstrict_signing_key_usage: truerefuses them (mash doctorshows the sign-in failing). Fixed in 0.5.7 by thesigning_keysetup key; on 0.5.6, leave strict signing off. - #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.
Endpoints and credentials:
- #879: the join file can carry a seed in clear text, with no expiry or single use.
- #867:
MASH_DANGEROUSLY_SKIP_NATS_ENCRYPTIONis honoured when inherited, with no fresh choice. - #880: with several servers, revocation must reach every one; there are no failover rules.
- #912:
endpoint deletehas no drained-delete guard; mail arriving between a drain and a delete is lost. - #872, #767: two machines reissuing one endpoint at once can still interleave. The reissue lock covers one machine only.
- #765: a killed same-host
endpoint createleaves an unused issue record. - #1081: if
mashctl endpoint deletefails after the key was cancelled, its error is long, internal and writes the address with underscores; run the same command again, as it says (revoking again is safe). - #1055: the everyday commands say "no credentials here" for an endpoint deleted on this machine;
mash doctorsays it was deleted. - #1056:
doctorandstatustrust a local<creds>.deletedfile to say an endpoint was deleted (a same-user risk). - #1064: retiring an endpoint keeps the revoked seed on disk as
.creds.deleted. - #869: standing risk: anything running as the same OS user can do what that user can (accepted for mash).
One more thing you may see: after a mash send that timed out, the server's log can show a filtered _MASH.settle.* line. It is expected and harmless.
Some tests are flaky in CI (#842, #861, #899); they do not affect the product.
What is not in 0.5.6, and what comes next
These were looked at and left out, so you do not wait for them. None has a date.
- Wake on reply, deadline wake and peer state. A session is woken by a backlog (see What changed, in detail), not yet when a reply arrives, when a deadline passes or when a peer comes or goes (#871).
- A trust record, generations and
mash trust resetandreplace(#862). mash plugin install, and verification of the marketplace plugin's bytes (#863).- Stand-alone NATS setup guides. The local script is in this release; guides for a local server and for Synadia Cloud come in 0.6.0 (#1037).
- Synadia Cloud and hosted NATS without the operator key are outside
mashctl(#876). - A structured list from
mash whoandendpoint listin the MCP tools, until MCP revision 2026-07-28 (#877).
Planned for 0.6.0
Breaking changes we already know about, so you can plan. None has a date, and none is in 0.5.6.
mash promptand thereplytool move tomash sap. A live prompt is part of the Synadia Agent Protocol, not everyday mail. 0.5.6 leavesmash promptas it is (#881).- The endpoint directory and NATS service subjects become owner-scoped. Today any endpoint can read every owner's directory entries (#1035) and use the NATS service subjects (#1012). Scoping them to their owner may stop something that works today across owners.
- A mesh holds many owners.
mashctl owner create,listanddeletearrive, and mail between owners becomes a designed case. - Policy: who may send to whom. mash ships open; narrowing will be a choice.
- Asking to join. An endpoint will be able to ask to join and wait for approval, by an administrator or by policy.
- How a session is woken. We will look at the MCP Events extension. Channels stay until then.
- Telling a suspended agent from a deleted one. Today a send to either says
is suspended or was deleted.