Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mash
command
Command mash is a messaging mesh for agents: a Claude Code channel server (mash serve), a CLI for people and scripts, and admin tooling.
|
Command mash is a messaging mesh for agents: a Claude Code channel server (mash serve), a CLI for people and scripts, and admin tooling. |
|
mashctl
command
Command mashctl administers a mash deployment: it creates the directory and lease buckets, provisions and deprovisions endpoints, sets their metadata, and prints limits and the NATS permissions an endpoint user needs.
|
Command mashctl administers a mash deployment: it creates the directory and lease buckets, provisions and deprovisions endpoints, sets their metadata, and prints limits and the NATS permissions an endpoint user needs. |
|
internal
|
|
|
admin
Package admin provisions mash endpoints: the permission template a NATS user needs, and the streams, consumer and directory record behind it.
|
Package admin provisions mash endpoints: the permission template a NATS user needs, and the streams, consumer and directory record behind it. |
|
adrindex
Package adrindex generates docs/decisions/INDEX.md from the records' front matter (ADR 0068).
|
Package adrindex generates docs/decisions/INDEX.md from the records' front matter (ADR 0068). |
|
apply
Package apply pushes a compiled policy to the MASH account (ADR 0052, 0053): one scoped signing key per zone in the account JWT.
|
Package apply pushes a compiled policy to the MASH account (ADR 0052, 0053): one scoped signing key per zone in the account JWT. |
|
bootstrap
Package bootstrap stands up the configuration of a local operator-mode NATS server with JetStream for one developer (`mashctl init --local`, ADR 0052): keys through the ctlkeys store, the operator, system account, MASH account and two user JWTs, a server.conf that preloads them, an open policy file and a config.json.
|
Package bootstrap stands up the configuration of a local operator-mode NATS server with JetStream for one developer (`mashctl init --local`, ADR 0052): keys through the ctlkeys store, the operator, system account, MASH account and two user JWTs, a server.conf that preloads them, an open policy file and a config.json. |
|
claudesettings
Package claudesettings reads Claude Code's managed settings, read-only, to say whether mash is on the channel allowlist.
|
Package claudesettings reads Claude Code's managed settings, read-only, to say whether mash is on the channel allowlist. |
|
config
Package config loads mash's settings: config.json in the config directory (see ConfigDir), then the environment, which wins.
|
Package config loads mash's settings: config.json in the config directory (see ConfigDir), then the environment, which wins. |
|
ctl
Package ctl is the admin verb set shared by mashctl and the deprecated `mash admin`.
|
Package ctl is the admin verb set shared by mashctl and the deprecated `mash admin`. |
|
ctlkeys
Package ctlkeys is the key store of mashctl: the account signing seed and the per-zone scoped signing seeds, kept as 0600 files in a 0700 directory (ADR 0052).
|
Package ctlkeys is the key store of mashctl: the account signing seed and the per-zone scoped signing seeds, kept as 0600 files in a 0700 directory (ADR 0052). |
|
endpoint
Package endpoint is one mash endpoint: its NATS connection, identity, lease, inbox and view of the directory.
|
Package endpoint is one mash endpoint: its NATS connection, identity, lease, inbox and view of the directory. |
|
host
Package host isolates what is specific to the agent host a mash session runs in (Claude Code today), so other hosts (Hermes, Pi) can plug in later.
|
Package host isolates what is specific to the agent host a mash session runs in (Claude Code today), so other hosts (Hermes, Pi) can plug in later. |
|
kind
Package kind is a message's kind: what the sender wants of the recipient, which decides whether it wakes an idle session.
|
Package kind is a message's kind: what the sender wants of the recipient, which decides whether it wakes an idle session. |
|
mcp
Package mcp is a minimal Model Context Protocol server over stdio, enough to be a Claude Code channel: initialize (declaring claude/channel), tools, ping, and notifications/claude/channel.
|
Package mcp is a minimal Model Context Protocol server over stdio, enough to be a Claude Code channel: initialize (declaring claude/channel), tools, ping, and notifications/claude/channel. |
|
mint
Package mint makes the NATS user JWT and creds of one policy endpoint: signed by the endpoint's zone scoped signing key, carrying the endpoint's compiled tags and nothing else (the zone key's template grants the permissions).
|
Package mint makes the NATS user JWT and creds of one policy endpoint: signed by the endpoint's zone scoped signing key, carrying the endpoint's compiled tags and nothing else (the zone key's template grants the permissions). |
|
natsauth
Package natsauth connects to NATS with a user creds file without turning the client into a signing oracle.
|
Package natsauth connects to NATS with a user creds file without turning the client into a signing oracle. |
|
policy
Package policy is mash's policy file: who may mail whom, as labels and rules, compiled into each endpoint's publish permissions.
|
Package policy is mash's policy file: who may mail whom, as labels and rules, compiled into each endpoint's publish permissions. |
|
policyfile
Package policyfile edits a policy file in place without disturbing it: comments, blank lines, key order and the author's flow or block style all survive, because an edit is a small splice into the file's text at positions the YAML node tree reports, not a re-encoding of the tree (which would drop blank lines and reflow comments).
|
Package policyfile edits a policy file in place without disturbing it: comments, blank lines, key order and the author's flow or block style all survive, because an edit is a small splice into the file's text at positions the YAML node tree reports, not a re-encoding of the tree (which would drop blank lines and reflow comments). |
|
portable
Package portable holds the portable-code lint: a plain go test that walks the source tree and counts places where product code carries a personal convention (a person's or machine's name, a home or temp path, a foreign GitHub org, an inline long timeout).
|
Package portable holds the portable-code lint: a plain go test that walks the source tree and counts places where product code carries a personal convention (a person's or machine's name, a home or temp path, a foreign GitHub org, an inline long timeout). |
|
render
Package render turns mail into the text a Claude session sees: a small batch in full, a large one as a digest of one line per message.
|
Package render turns mail into the text a Claude session sees: a small batch in full, a large one as a digest of one line per message. |
|
sap
Package sap implements the parts of the Synadia Agent Protocol 0.3 that mash uses: subjects (§2), and sender identity (§13).
|
Package sap implements the parts of the Synadia Agent Protocol 0.3 that mash uses: subjects (§2), and sender identity (§13). |
|
spool
Package spool is the hand-over between serve and a Claude Code session's hooks (hook delivery, mash v0.2.0).
|
Package spool is the hand-over between serve and a Claude Code session's hooks (hook delivery, mash v0.2.0). |
|
store
Package store holds mash's JetStream layout: per-endpoint inbox streams, their consumer, and the directory and lease KV buckets (spec section 5).
|
Package store holds mash's JetStream layout: per-endpoint inbox streams, their consumer, and the directory and lease KV buckets (spec section 5). |
|
testenv
Package testenv runs an in-process nats-server in operator mode for integration tests.
|
Package testenv runs an in-process nats-server in operator mode for integration tests. |
|
Package plugin embeds the Claude Code plugin (the files beside this one) so `mash plugin export` can write the exact plugin of this build.
|
Package plugin embeds the Claude Code plugin (the files beside this one) so `mash plugin export` can write the exact plugin of this build. |
|
scripts
|
|
|
adrlint
command
Command adrlint enforces the architecture decision records under docs/decisions (adr-lint.yml's checker).
|
Command adrlint enforces the architecture decision records under docs/decisions (adr-lint.yml's checker). |
|
buildrelease
command
Command buildrelease builds mash exactly as a release does and prints "<sha256> <path>".
|
Command buildrelease builds mash exactly as a release does and prints "<sha256> <path>". |
|
changelog
command
Command changelog keeps CHANGELOG.md out of pull requests (ADR 0068): a user-facing change adds a fragment file changelog.d/<slug>.<kind>.md, and release preparation folds the fragments into CHANGELOG.md.
|
Command changelog keeps CHANGELOG.md out of pull requests (ADR 0068): a user-facing change adds a fragment file changelog.d/<slug>.<kind>.md, and release preparation folds the fragments into CHANGELOG.md. |
|
dirbench
command
Command dirbench is a MEASUREMENT TOOL, not product code (bogworks/mash#43, "directory polling grows with the square of the endpoint count").
|
Command dirbench is a MEASUREMENT TOOL, not product code (bogworks/mash#43, "directory polling grows with the square of the endpoint count"). |
|
publishcheck
command
Command publishcheck is publish-check.yml's checker: "publishing must be deterministic".
|
Command publishcheck is publish-check.yml's checker: "publishing must be deterministic". |
|
releasecheck
command
Command release-check is mash's release gate.
|
Command release-check is mash's release gate. |
Click to show internal directories.
Click to hide internal directories.